body.ecommerce .checkout-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 15px 24px;
}

body.ecommerce main.page-main--checkout {
  padding-top: 12px;
  padding-bottom: 28px;
}

body.ecommerce .checkout-panel--empty.cart-empty {
  text-align: center;
  padding: 36px 28px 32px;
}

body.ecommerce .cart-empty__icon {
  margin: 0 0 12px;
  color: #94a3b8;
  display: flex;
  justify-content: center;
}

body.ecommerce .checkout-panel--empty .lead {
  margin-bottom: 0;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

body.ecommerce .cart-empty__actions {
  margin-top: 22px;
}

body.ecommerce .cart-empty__actions .btn-checkout {
  display: inline-block;
  width: auto;
  min-width: 200px;
  padding-left: 28px;
  padding-right: 28px;
}

body.ecommerce .checkout-page--order {
  max-width: 1100px;
}

body.ecommerce .checkout-stepper {
  margin-bottom: 24px;
}

body.ecommerce .checkout-stepper__list {
  list-style: none;
  margin: 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

body.ecommerce .checkout-stepper__item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #94a3b8;
}

body.ecommerce .checkout-stepper__item--current {
  color: #0f172a;
}

body.ecommerce .checkout-stepper__item--done {
  color: #003ca6;
}

body.ecommerce .checkout-stepper__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
}

body.ecommerce .checkout-stepper__item--current .checkout-stepper__icon {
  border-color: #003ca6;
  background: #003ca6;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 60, 166, 0.35);
}

body.ecommerce .checkout-stepper__item--done .checkout-stepper__icon {
  border-color: #003ca6;
  background: #003ca6;
  color: #fff;
}

body.ecommerce .checkout-stepper__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

body.ecommerce .checkout-stepper__text strong {
  font-size: 13px;
}

body.ecommerce .checkout-stepper__text small {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

body.ecommerce .checkout-stepper__line {
  flex: 1;
  height: 2px;
  min-width: 24px;
  margin: 0 12px;
  background: #cbd5e1;
  border-radius: 1px;
  list-style: none;
}

body.ecommerce .checkout-stepper__item--done + .checkout-stepper__line {
  background: #003ca6;
}

body.ecommerce .checkout-stepper--complete .checkout-stepper__line {
  background: #003ca6;
}

body.ecommerce .checkout-stepper--complete .checkout-stepper__item {
  color: #003ca6;
}

body.ecommerce .checkout-steps {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
}

body.ecommerce .checkout-steps span:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: #cbd5e1;
  font-weight: 400;
}

body.ecommerce .checkout-steps .done {
  color: #003ca6;
}

body.ecommerce .checkout-steps .current {
  color: #0f172a;
}

body.ecommerce .checkout-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

body.ecommerce .checkout-field select {
  width: 100%;
  border: 1px solid #d5dde3;
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  background: #fff;
}

body.ecommerce .checkout-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #64748b;
}

body.ecommerce .checkout-place-wrap {
  position: relative;
}

body.ecommerce .district-search__results {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #d5dde3;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  max-height: 240px;
  overflow: auto;
}

body.ecommerce .district-search__results li button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  color: #0f172a;
}

body.ecommerce .district-search__results li button:hover {
  background: #eff6ff;
  color: #003ca6;
}

body.ecommerce .district-search__empty-item {
  padding: 10px 14px;
  font-size: 13px;
  color: #64748b;
}

body.ecommerce .btn-checkout-whatsapp {
  background: #128c7e;
  margin-top: 8px;
}

body.ecommerce .btn-checkout-whatsapp:hover {
  background: #0d7368;
}

body.ecommerce .checkout-trust {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #475569;
  margin-bottom: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
}

body.ecommerce .checkout-trust span::before {
  content: "✓ ";
  color: #128c7e;
  font-weight: 700;
}

body.ecommerce .checkout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

body.ecommerce .checkout-grid.checkout-grid--single {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}

body.ecommerce .checkout-panel {
  background: #fff;
  border: 1px solid #e2e7e9;
  border-radius: 10px;
  padding: 22px 24px;
}

body.ecommerce .checkout-panel h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

body.ecommerce .checkout-panel .lead {
  margin: 0 0 20px;
  color: #5c6670;
  font-size: 14px;
  line-height: 1.5;
}

body.ecommerce .checkout-field {
  margin-bottom: 14px;
}

body.ecommerce .checkout-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

body.ecommerce .checkout-field input,
body.ecommerce .checkout-field textarea {
  width: 100%;
  border: 1px solid #d5dde3;
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  background: #fff;
}

body.ecommerce .checkout-field input:focus,
body.ecommerce .checkout-field textarea:focus {
  outline: none;
  border-color: #003ca6;
  box-shadow: 0 0 0 3px rgba(0, 60, 166, 0.12);
}

body.ecommerce .checkout-summary {
  position: sticky;
  top: 16px;
}

body.ecommerce .checkout-summary h2 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
}

body.ecommerce .checkout-lines {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border-top: 1px solid #eef1f4;
}

body.ecommerce .checkout-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eef1f4;
  font-size: 14px;
}

body.ecommerce .checkout-lines .name {
  color: #111;
  font-weight: 500;
}

body.ecommerce .checkout-lines .meta {
  color: #6b7280;
  font-size: 12px;
  margin-top: 2px;
}

body.ecommerce .checkout-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  padding-top: 4px;
  margin-bottom: 16px;
}

body.ecommerce .checkout-note {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.45;
  margin-bottom: 16px;
}

body.ecommerce .btn-checkout {
  display: block;
  width: 100%;
  text-align: center;
  border: 0;
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: #003ca6;
  color: #fff;
  text-decoration: none;
}

body.ecommerce .btn-checkout:hover {
  background: #002f80;
  color: #fff;
}

body.ecommerce .btn-checkout-secondary {
  background: #fff;
  color: #003ca6;
  border: 1px solid #c5d4ef;
  margin-top: 10px;
}

body.ecommerce .cart-table.checkout-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6b7280;
}

body.ecommerce a.checkout-remove {
  color: #b42318;
  font-size: 13px;
  text-decoration: none;
}

body.ecommerce a.checkout-remove:hover {
  text-decoration: underline;
}

body.ecommerce .havale-card {
  background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 100%);
  color: #f8fafc;
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 20px;
}

body.ecommerce .havale-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.ecommerce .havale-card__row:last-of-type {
  border-bottom: 0;
}

body.ecommerce .havale-card__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  min-width: 72px;
}

body.ecommerce .havale-card__value {
  font-size: 15px;
  font-weight: 600;
  flex: 1;
}

body.ecommerce .havale-card__value--amount {
  font-size: 20px;
  color: #fde68a;
}

body.ecommerce .havale-card__row--iban {
  align-items: center;
}

body.ecommerce .havale-copy {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

body.ecommerce .havale-copy:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.ecommerce .havale-card__hint {
  margin: 14px 0 0;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.45;
}

body.ecommerce .checkout-alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

body.ecommerce .checkout-alert--err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

body.ecommerce .checkout-page--success {
  max-width: 720px;
}

body.ecommerce .checkout-panel--success {
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 32px 28px 28px;
}

body.ecommerce .checkout-panel--success h1 {
  margin-bottom: 16px;
}

body.ecommerce .checkout-panel--success .lead {
  margin-bottom: 12px;
}

body.ecommerce .checkout-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e8f5ec;
  color: #15803d;
  display: grid;
  place-items: center;
}

body.ecommerce .checkout-order-id {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  padding: 16px 20px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
}

body.ecommerce .checkout-order-id__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #166534;
}

body.ecommerce .checkout-order-id__value {
  font-size: 20px;
  font-weight: 800;
  color: #14532d;
  letter-spacing: 0.02em;
}

body.ecommerce .checkout-success-notes {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  text-align: left;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

body.ecommerce .checkout-success-notes li {
  position: relative;
  padding: 0 0 10px 22px;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}

body.ecommerce .checkout-success-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

body.ecommerce .checkout-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 440px;
  margin: 0 auto;
}

body.ecommerce .checkout-success-actions .btn-checkout {
  flex: 1 1 180px;
  margin: 0;
}

body.ecommerce .btn-checkout--wa {
  border-color: #128c7e;
  color: #128c7e;
}

body.ecommerce .btn-checkout--wa:hover {
  background: #ecfdf5;
  color: #0d7368;
}

body.ecommerce .checkout-field input[type="file"] {
  padding: 8px;
  font-size: 14px;
}

@media (max-width: 820px) {
  body.ecommerce .checkout-grid {
    grid-template-columns: 1fr;
  }

  body.ecommerce .checkout-summary {
    position: static;
  }

  body.ecommerce .checkout-field-row {
    grid-template-columns: 1fr;
  }

  body.ecommerce .checkout-stepper__text small {
    display: none;
  }

  body.ecommerce .checkout-stepper__line {
    min-width: 12px;
    margin: 0 6px;
  }
}
