/* ===== Checkout – καθαρό και εύκολο ===== */
:root {
  --checkout-pink: #e91e8c;
  --checkout-pink-hover: #c2187a;
  --checkout-border: #e5e5e5;
  --checkout-bg: #fafafa;
}

.checkout-page {
  min-height: 100vh;
  background: #fff;
  font-family: Averta, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #1a1a1a;
}

/* Header */
.checkout-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--checkout-border);
  background: #fff;
}

.checkout-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
}

.checkout-logo .logo-img {
  height: 32px;
  width: auto;
}

.checkout-logo:hover {
  color: var(--checkout-pink);
}

/* Main */
.checkout-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

/* Progress steps */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  padding: 0 16px;
}

.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 200px;
  position: relative;
}

.checkout-step::after {
  content: '';
  position: absolute;
  top: 11px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: var(--checkout-border);
  z-index: 0;
}

.checkout-step:last-child::after {
  display: none;
}

.checkout-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--checkout-border);
  background: #fff;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s, background 0.2s;
}

.checkout-step.completed .checkout-step-dot {
  border-color: var(--checkout-pink);
  background: var(--checkout-pink);
}

.checkout-step.completed .checkout-step-dot::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.checkout-step.active .checkout-step-dot {
  border-color: var(--checkout-pink);
  background: var(--checkout-pink);
  border-width: 2px;
}

.checkout-step-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #888;
  text-align: center;
  line-height: 1.2;
}

.checkout-step.active .checkout-step-label,
.checkout-step.completed .checkout-step-label {
  color: var(--checkout-pink);
}

/* Layout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    order: -1;
  }
}

/* Form wrap */
.checkout-form-wrap {
  background: #fff;
  border: 1px solid var(--checkout-border);
  border-radius: 8px;
  padding: 32px;
}

.checkout-step-panel {
  display: none;
}

.checkout-step-panel.active {
  display: block;
}

.checkout-panel-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
}

.checkout-panel-desc {
  margin: 0 0 24px;
  font-size: 14px;
  color: #666;
}

.checkout-block {
  margin-bottom: 24px;
}

.checkout-block-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkout-row .checkout-field-sm {
  max-width: 120px;
}

.checkout-field {
  margin-bottom: 16px;
}

.checkout-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

.checkout-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea,
.checkout-block textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid var(--checkout-border);
  border-radius: 6px;
  transition: border-color 0.2s;
}

.checkout-field input:focus,
.checkout-field select:focus,
.checkout-block textarea:focus {
  outline: none;
  border-color: var(--checkout-pink);
}

.checkout-block textarea {
  margin-top: 6px;
  resize: vertical;
  min-height: 80px;
}

/* Radio & Checkbox */
.checkout-field-radio-group {
  margin-top: 16px;
}

.checkout-radio-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

.checkout-radio,
.checkout-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}

.checkout-radio input,
.checkout-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkout-radio-box,
.checkout-checkbox-box {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--checkout-border);
  border-radius: 50%;
  transition: border-color 0.2s, background 0.2s;
}

.checkout-checkbox-box {
  border-radius: 4px;
}

.checkout-radio input:checked + .checkout-radio-box,
.checkout-checkbox input:checked + .checkout-checkbox-box {
  border-color: var(--checkout-pink);
  background: var(--checkout-pink);
}

.checkout-radio input:checked + .checkout-radio-box::after,
.checkout-checkbox input:checked + .checkout-checkbox-box::after {
  content: '';
  display: block;
  width: 6px;
  height: 10px;
  margin: 2px 0 0 5px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkout-radio-box::after {
  margin: 2px 0 0 5px;
}

/* Τύπος παραστατικού – κύκλοι χωρίς checkmark, επιλεγμένο = ροζ */
.checkout-doc-type {
  margin-top: 24px;
}

.checkout-doc-type-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 14px;
}

.checkout-doc-type-options {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.checkout-radio-doc .checkout-radio-box {
  border-radius: 50%;
}

.checkout-radio-doc input:checked + .checkout-radio-box::after {
  display: none;
}

.checkout-radio-doc input:checked + .checkout-radio-box {
  border-color: var(--checkout-pink);
  background: var(--checkout-pink);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--checkout-pink);
}

/* Στοιχεία τιμολόγιου – 2 στήλες, ανοιχτό γκρι πεδία */
.checkout-invoice-fields {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--checkout-border);
}

.checkout-invoice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.checkout-invoice-row:last-child {
  margin-bottom: 0;
}

.checkout-field-invoice label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.checkout-field-invoice input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  background: #f5f5f5;
  border: none;
  border-radius: 0;
  transition: background 0.2s;
}

.checkout-field-invoice input::placeholder {
  color: #999;
}

.checkout-field-invoice input:focus {
  outline: none;
  background: #eee;
}

@media (max-width: 500px) {
  .checkout-invoice-row {
    grid-template-columns: 1fr;
  }
}

.checkout-checkbox-box::after {
  margin: 1px 0 0 5px;
  width: 5px;
  height: 9px;
}

.checkout-radio-full {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.checkout-radio-full:last-of-type {
  border-bottom: none;
}

.checkout-price-free {
  color: var(--checkout-pink);
  margin-left: auto;
}

.checkout-price-extra {
  color: #dc2626;
  margin-left: auto;
  font-size: 13px;
}

.checkout-terms {
  margin: 24px 0;
}

.checkout-link {
  color: var(--checkout-pink);
  font-weight: 600;
  text-decoration: underline;
}

.checkout-link:hover {
  color: var(--checkout-pink-hover);
}

/* Buttons */
.checkout-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--checkout-border);
}

#panel-1 .checkout-actions {
  justify-content: space-between;
  border-top: none;
  padding-top: 0;
}

.checkout-actions--cart-top {
  margin-top: 0;
  margin-bottom: 20px;
  padding-top: 0;
  border-top: none;
}

.btn-chevron-left,
.btn-chevron-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-outline.btn-chevron-left {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  color: var(--checkout-pink);
}

.btn-outline.btn-chevron-left:hover {
  background: #eee;
}

.btn-chevron-right .btn-chevron {
  color: inherit;
}

.btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--checkout-pink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--checkout-pink-hover);
}

.btn-outline {
  background: #fff;
  color: var(--checkout-pink);
  border: 2px solid var(--checkout-pink);
}

.btn-outline:hover {
  background: #fdf2f8;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* Cart table (step 1) */
.checkout-cart-table {
  margin-bottom: 20px;
  border-top: 1px solid var(--checkout-border);
}

.checkout-cart-head {
  display: grid;
  grid-template-columns: 1fr 80px 120px 60px 80px;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--checkout-border);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #666;
  text-transform: uppercase;
}

.checkout-cart-list {
  /* rows inside use same grid as .checkout-cart-head for alignment */
}

.checkout-cart-row {
  display: grid;
  grid-template-columns: 1fr 80px 120px 60px 80px;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--checkout-border);
}

.checkout-cart-row:last-child {
  border-bottom: none;
}

.checkout-cart-cell {
  min-width: 0;
}

.checkout-cart-cell-product {
  display: flex;
  gap: 16px;
  align-items: center;
}

.checkout-cart-item-image {
  width: 80px;
  height: 100px;
  flex-shrink: 0;
  background: #f5f5f5;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
}

.checkout-cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-no-img {
  padding: 8px;
  font-size: 11px;
}

.checkout-cart-item-info {
  min-width: 0;
}

.checkout-cart-item-name {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.checkout-cart-item-code,
.checkout-cart-item-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 2px;
}

.checkout-cart-cell-price {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 14px;
}

.checkout-cart-cell-qty {
  display: flex;
  align-items: center;
  gap: 4px;
}

.checkout-qty-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid var(--checkout-border);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.checkout-qty-btn:hover {
  background: #f5f5f5;
  color: var(--checkout-pink);
}

.checkout-qty-value {
  min-width: 36px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 4px;
  border: 1px solid var(--checkout-border);
  background: #fff;
}

.checkout-cart-cell-remove {
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-cart-remove {
  display: inline-flex;
  padding: 8px;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.checkout-cart-remove:hover {
  color: var(--checkout-pink);
}

.checkout-cart-remove svg {
  display: block;
}

.checkout-cart-cell-total {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 14px;
}

@media (max-width: 768px) {
  .checkout-cart-head {
    grid-template-columns: 1fr 70px 100px 44px 70px;
    gap: 8px;
    font-size: 10px;
  }

  .checkout-cart-row {
    grid-template-columns: 1fr 70px 100px 44px 70px;
    gap: 8px;
    padding: 14px 0;
  }

  .checkout-cart-item-image {
    width: 60px;
    height: 75px;
  }

  .checkout-cart-cell-product {
    gap: 10px;
  }
}

.checkout-empty {
  margin: 0 0 20px;
  color: #666;
}

.checkout-empty a {
  color: var(--checkout-pink);
  font-weight: 500;
}

.checkout-empty a:hover {
  text-decoration: underline;
}

/* Summary sidebar */
.checkout-summary {
  position: sticky;
  top: 24px;
  background: var(--checkout-bg);
  border: 1px solid var(--checkout-border);
  border-radius: 8px;
  padding: 24px;
}

.checkout-summary-title {
  margin: 0 0 20px;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
}

.checkout-summary-items {
  margin-bottom: 16px;
  max-height: 280px;
  overflow-y: auto;
}

.checkout-summary-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--checkout-border);
  font-size: 13px;
}

.checkout-summary-item:last-child {
  border-bottom: none;
}

.checkout-summary-item-image {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 10px;
}

.checkout-summary-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-summary-item-details {
  flex: 1;
  min-width: 0;
}

.checkout-summary-item-name {
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.checkout-summary-item-meta {
  font-size: 13px;
  margin-bottom: 2px;
}

.checkout-summary-item-meta-label {
  color: #888;
}

.checkout-summary-item-meta-value {
  color: #1a1a1a;
}

.checkout-summary-item-qty {
  color: #666;
  font-size: 12px;
}

.checkout-summary-item-price {
  font-weight: 600;
  color: #1a1a1a;
}

.checkout-summary-subtotal,
.checkout-summary-discount,
.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
}

.checkout-summary-discount {
  color: var(--checkout-pink);
  font-weight: 500;
}

.checkout-summary-total {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 2px solid var(--checkout-border);
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.checkout-summary-total span:last-child {
  color: var(--checkout-pink);
}

.checkout-coupon {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.checkout-coupon input {
  flex: 1;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--checkout-border);
  border-radius: 6px;
}

.checkout-coupon input:focus {
  outline: none;
  border-color: var(--checkout-pink);
}
