/* Checkout flow — compact, aligned, polished */

.checkout-page {
  --checkout-input-border: rgba(24, 119, 242, 0.46);
  --checkout-input-border-focus: rgba(24, 119, 242, 0.68);
  --checkout-btn-border: rgba(24, 119, 242, 0.2);
  --checkout-btn-border-active: rgba(24, 119, 242, 0.38);
}

.checkout-page main.container {
  width: min(100% - 2rem, var(--max));
}

.checkout-page .site-footer {
  margin-top: 0;
  border-top: none;
}

.checkout-hub {
  padding: 1rem 0 2rem;
}

/* —— Steps —— */
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1rem;
  padding: 0.15rem;
  list-style: none;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
}

.checkout-step__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.checkout-step__dot img {
  width: 13px;
  height: 13px;
  filter: brightness(0) invert(1);
}

.checkout-step__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-step__line {
  flex: 1;
  height: 2px;
  min-width: 12px;
  margin: 0 0.35rem;
  background: var(--line);
  border-radius: 2px;
}

.checkout-step.is-active {
  color: var(--teal-deep);
}

.checkout-step.is-active .checkout-step__dot {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.32);
}

.checkout-step.is-done {
  color: var(--teal-deep);
}

.checkout-step.is-done .checkout-step__dot {
  background: rgba(24, 119, 242, 0.14);
  border-color: rgba(24, 119, 242, 0.35);
}

.checkout-step.is-done .checkout-step__dot img {
  filter: brightness(0) saturate(100%) invert(39%) sepia(98%) saturate(1800%) hue-rotate(198deg) brightness(97%) contrast(96%);
  opacity: 1;
  transform: none;
}

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

/* —— Layout —— */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1rem;
  align-items: start;
}

.checkout-panel,
.checkout-summary {
  background: #fff;
  border: 1px solid rgba(42, 54, 66, 0.07);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 36px rgba(42, 54, 66, 0.06);
}

.checkout-panel {
  padding: clamp(1.1rem, 2.5vw, 1.45rem);
}

.checkout-panel-head {
  margin-bottom: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.checkout-panel-head h1 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  line-height: 1.15;
}

.checkout-panel-head p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
  max-width: none;
}

/* —— Auth buttons —— */
.checkout-auth-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkout-auth-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.72rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--checkout-btn-border);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font: inherit;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.checkout-auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(42, 54, 66, 0.08);
}

.checkout-auth-btn__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.checkout-auth-btn__icon img {
  width: 20px;
  height: 20px;
}

.checkout-auth-btn__text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.checkout-auth-btn__text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

.checkout-auth-btn__text small {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.checkout-auth-btn__arrow {
  font-size: 1rem;
  color: var(--muted);
  opacity: 0.55;
  flex-shrink: 0;
}

.checkout-auth-btn--phone {
  border-color: rgba(24, 119, 242, 0.18);
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.06), rgba(187, 212, 252, 0.08));
}

.checkout-auth-btn--phone .checkout-auth-btn__icon {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.28);
}

.checkout-auth-btn--phone .checkout-auth-btn__icon img {
  filter: brightness(0) invert(1);
}

.checkout-auth-btn--fb {
  border-color: rgba(24, 119, 242, 0.16);
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.04), rgba(24, 119, 242, 0.08));
}

.checkout-auth-btn--fb .checkout-auth-btn__icon {
  background: #1877f2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.28);
}

.checkout-auth-btn--demo {
  margin-top: 0.35rem;
  padding: 0.58rem 0.85rem;
  border-style: dashed;
  background: rgba(245, 250, 253, 0.65);
}

.checkout-auth-btn--demo .checkout-auth-btn__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(24, 119, 242, 0.12);
}

.checkout-auth-btn--demo .checkout-auth-btn__icon img {
  width: 17px;
  height: 17px;
  opacity: 0.75;
}

.checkout-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(187, 212, 252, 0.14);
  border: 1px solid rgba(24, 119, 242, 0.12);
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.45;
}

.checkout-note img {
  width: 14px;
  height: 14px;
  margin-top: 0.1rem;
  flex-shrink: 0;
  opacity: 0.7;
}

/* —— Summary —— */
.checkout-summary {
  position: sticky;
  top: calc(var(--nav-h) + 0.75rem);
  overflow: hidden;
  min-width: 0;
}

.checkout-summary-body {
  padding: 0.85rem 1rem;
  min-width: 0;
}

.checkout-summary-head {
  padding: 0.95rem 1rem;
  background: linear-gradient(145deg, rgba(187, 212, 252, 0.2), rgba(24, 119, 242, 0.1));
  border-bottom: 1px solid var(--line);
}

.checkout-summary-head h2 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.checkout-summary-head h2 img {
  width: 16px;
  height: 16px;
  opacity: 0.72;
}

.checkout-mini-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.checkout-mini-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 0.55rem;
  align-items: center;
}

.checkout-mini-item img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.checkout-mini-item strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-mini-item span {
  font-size: 0.68rem;
  color: var(--muted);
}

.checkout-mini-item em {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 750;
  color: var(--teal-deep);
  font-variant-numeric: tabular-nums;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.checkout-summary-row.is-total {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.9rem;
}

.checkout-summary-row.is-total strong {
  font-size: 1.15rem;
  color: var(--teal-deep);
  font-variant-numeric: tabular-nums;
}

.checkout-summary-foot {
  padding: 0.75rem 1rem 0.95rem;
  border-top: 1px dashed rgba(42, 54, 66, 0.1);
  background: rgba(245, 250, 253, 0.55);
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.checkout-summary-foot span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.checkout-summary-foot img {
  width: 12px;
  height: 12px;
  filter: brightness(0) saturate(100%) invert(39%) sepia(98%) saturate(1800%) hue-rotate(198deg) brightness(97%) contrast(96%);
}

/* —— Promo / coupon —— */
.checkout-coupon {
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(24, 119, 242, 0.14);
  background: rgba(255, 255, 255, 0.85);
  min-width: 0;
}

.checkout-coupon__head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
}

.checkout-coupon__head img {
  width: 13px;
  height: 13px;
  opacity: 0.65;
  flex-shrink: 0;
}

.checkout-coupon__body {
  min-width: 0;
}

.checkout-coupon__form,
.checkout-coupon__applied {
  width: 100%;
  min-width: 0;
}

.checkout-coupon__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem;
  align-items: stretch;
}

.checkout-coupon__form[hidden],
.checkout-coupon__applied[hidden],
.checkout-coupon__error[hidden] {
  display: none !important;
}

.checkout-coupon__input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1.5px solid rgba(24, 119, 242, 0.42);
  border-radius: 10px;
  padding: 0.52rem 0.65rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.checkout-coupon__input::placeholder {
  font-weight: 500;
  letter-spacing: normal;
  color: rgba(92, 107, 120, 0.5);
}

.checkout-coupon__input:focus {
  outline: none;
  border-color: rgba(24, 119, 242, 0.65);
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.12);
}

.checkout-coupon__apply {
  flex-shrink: 0;
  min-height: 0;
  height: auto;
  align-self: stretch;
  padding: 0 0.7rem;
  border-radius: 10px;
  font-size: 0.76rem;
  white-space: nowrap;
  border-width: 1.5px;
}

.checkout-coupon__applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.48rem 0.55rem;
  border-radius: 10px;
  background: rgba(24, 119, 242, 0.08);
  border: 1.5px solid rgba(24, 119, 242, 0.22);
  box-sizing: border-box;
}

.checkout-coupon__applied-main {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-deep);
  line-height: 1.25;
}

.checkout-coupon__applied-main img {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(39%) sepia(98%) saturate(1800%) hue-rotate(198deg) brightness(97%) contrast(96%);
}

.checkout-coupon__applied-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-coupon__remove {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  padding: 0.15rem 0.25rem;
  border-radius: 6px;
  transition: color 0.12s ease, background 0.12s ease;
}

.checkout-coupon__remove:hover {
  color: #b44;
  background: rgba(196, 75, 75, 0.08);
}

.checkout-coupon__error {
  margin: 0.35rem 0 0;
  font-size: 0.7rem;
  font-weight: 650;
  color: #b44;
  line-height: 1.35;
}

/* Summary sidebar is narrow — stack field + button to avoid clip */
.checkout-summary .checkout-coupon__form {
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.checkout-summary .checkout-coupon__apply {
  width: 100%;
  min-height: 36px;
  justify-content: center;
}

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

  .checkout-coupon__apply {
    width: 100%;
    min-height: 36px;
  }
}

.checkout-summary-row--discount strong {
  color: #2e8b57;
  font-variant-numeric: tabular-nums;
}

.checkout-price-was {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  margin-right: 0.25rem;
  text-decoration: line-through;
}

/* —— Shipping form —— */
.checkout-form {
  display: grid;
  gap: 0.85rem;
}

.checkout-field {
  display: grid;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.checkout-field-row {
  display: flex;
  gap: 0.65rem;
  align-items: start;
}

.checkout-field-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.checkout-field-label .req,
.checkout-zone-label .req {
  color: #c46464;
  font-weight: 800;
  margin-left: 0.05em;
}

.checkout-required-note {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}

.checkout-field-label img {
  width: 14px;
  height: 14px;
  opacity: 0.72;
}

.checkout-input-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.checkout-input-wrap > img {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

.checkout-input-wrap.is-textarea > img {
  top: 0.95rem;
  transform: none;
}

.checkout-input-wrap .field {
  width: 100%;
  border: 2px solid var(--checkout-input-border);
  border-radius: 12px;
  padding: 0.68rem 0.85rem 0.68rem 2.45rem;
  background: #fff;
  font: inherit;
  font-size: 0.88rem;
  min-height: 44px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.checkout-input-wrap .field.is-invalid,
.checkout-field.is-invalid .checkout-input-wrap .field:not(.checkout-phone-input) {
  border-width: 2px;
  border-color: rgba(196, 75, 75, 0.65);
  box-shadow: 0 0 0 3px rgba(196, 75, 75, 0.1);
}

.checkout-input-wrap .field.is-invalid:focus,
.checkout-field.is-invalid .checkout-input-wrap .field:not(.checkout-phone-input):focus {
  border-color: rgba(196, 75, 75, 0.65);
  box-shadow: 0 0 0 3px rgba(196, 75, 75, 0.14);
}

.checkout-input-wrap .field:focus {
  outline: none;
  border-color: var(--checkout-input-border-focus);
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.12);
}

.checkout-input-wrap textarea.field {
  min-height: 88px;
  resize: vertical;
  line-height: 1.45;
}

/* —— Phone (+880) —— */
.checkout-phone-wrap {
  display: flex;
  align-items: stretch;
}

.checkout-phone-wrap > img {
  display: none;
}

.checkout-phone-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem;
  border: 2px solid var(--checkout-input-border);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: rgba(245, 250, 253, 0.95);
  color: var(--teal-deep);
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-height: 44px;
  box-sizing: border-box;
}

.checkout-phone-input {
  border-radius: 0 12px 12px 0 !important;
  padding-left: 0.85rem !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  min-height: 44px;
}

.checkout-field--phone.is-invalid .checkout-phone-prefix,
.checkout-field--phone.is-invalid .checkout-phone-input {
  border-color: rgba(196, 75, 75, 0.58);
}

.checkout-field--phone.is-invalid .checkout-phone-prefix {
  background: rgba(196, 75, 75, 0.06);
  color: #b44;
}

.checkout-field--phone.is-invalid .checkout-phone-input {
  box-shadow: 0 0 0 3px rgba(196, 75, 75, 0.1);
}

.checkout-field--phone.is-invalid .checkout-phone-input:focus {
  border-color: rgba(196, 75, 75, 0.65);
  box-shadow: 0 0 0 3px rgba(196, 75, 75, 0.14);
}

.checkout-phone-input.is-invalid {
  border-color: rgba(196, 75, 75, 0.58);
  box-shadow: 0 0 0 3px rgba(196, 75, 75, 0.1);
}

.checkout-phone-input.is-valid {
  border-color: rgba(24, 119, 242, 0.55);
}

.checkout-field-hint {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 0.2rem;
}

.checkout-zone-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.checkout-zone-label img {
  width: 14px;
  height: 14px;
  opacity: 0.72;
}

.checkout-zone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.checkout-received-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.checkout-received-grid .checkout-zone-card {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.42rem 0.5rem;
  gap: 0.38rem;
  border-radius: 999px;
  border-color: rgba(24, 119, 242, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

.checkout-received-grid .checkout-zone-card__icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  margin-bottom: 0;
  background: rgba(24, 119, 242, 0.07);
}

.checkout-received-grid .checkout-zone-card__icon img {
  width: 14px;
  height: 14px;
  opacity: 0.62;
}

.checkout-received-grid .checkout-zone-card strong {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
}

.checkout-received-grid .checkout-zone-card small {
  display: none;
}

.checkout-received-grid .checkout-zone-card:hover {
  transform: none;
  border-color: rgba(24, 119, 242, 0.22);
  background: rgba(245, 250, 253, 0.95);
}

.checkout-received-grid .checkout-zone-card:has(input:checked) {
  border-color: rgba(24, 119, 242, 0.28);
  background: rgba(24, 119, 242, 0.05);
  box-shadow: none;
}

.checkout-received-grid .checkout-zone-card:has(input:checked) strong {
  color: var(--teal-deep);
}

.checkout-received-grid .checkout-zone-card:has(input:checked) .checkout-zone-card__icon {
  background: rgba(24, 119, 242, 0.16);
  box-shadow: none;
}

.checkout-received-grid .checkout-zone-card:has(input:checked) .checkout-zone-card__icon img {
  filter: none;
  opacity: 0.78;
}

.checkout-zone-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.72rem 0.75rem;
  border-radius: 14px;
  border: 1.5px solid var(--checkout-btn-border);
  background: rgba(245, 250, 253, 0.65);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.checkout-zone-card:hover {
  border-color: rgba(24, 119, 242, 0.28);
  transform: translateY(-1px);
}

.checkout-zone-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-zone-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(24, 119, 242, 0.1);
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.checkout-zone-card__icon img {
  width: 17px;
  height: 17px;
  opacity: 0.75;
}

.checkout-zone-card strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

.checkout-zone-card small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.35;
}

.checkout-zone-card:has(input:checked) {
  border-color: var(--checkout-btn-border-active);
  background: rgba(24, 119, 242, 0.08);
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.checkout-zone-card:has(input:checked) .checkout-zone-card__icon {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  box-shadow: 0 3px 10px rgba(24, 119, 242, 0.25);
}

.checkout-zone-card:has(input:checked) .checkout-zone-card__icon img {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.checkout-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--muted);
  background: rgba(187, 212, 252, 0.16);
  border: 1px solid rgba(24, 119, 242, 0.14);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.checkout-tip.is-warn {
  background: rgba(233, 180, 76, 0.14);
  border-color: rgba(184, 134, 11, 0.22);
  color: #6b5520;
}

.checkout-tip__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(24, 119, 242, 0.14);
  flex-shrink: 0;
}

.checkout-tip.is-warn .checkout-tip__icon {
  background: rgba(184, 134, 11, 0.16);
}

.checkout-tip__icon img {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

.checkout-tip strong {
  display: block;
  margin-bottom: 0.12rem;
  font-size: 0.78rem;
  color: var(--text);
}

.checkout-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.checkout-actions .btn {
  min-height: 44px;
  font-size: 0.86rem;
}

.checkout-actions .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-color: var(--checkout-btn-border);
}

.checkout-actions .btn-ghost img {
  width: 14px;
  height: 14px;
  opacity: 0.65;
}

.checkout-actions .btn-primary {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 1.15rem;
  padding-right: 1.25rem;
}

.checkout-actions .btn-primary img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.checkout-actions #verifyLink {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.4rem;
  padding-left: 1.15rem;
  padding-right: 1.25rem;
}

.checkout-actions #verifyLink.is-visible {
  display: inline-flex;
}

.checkout-actions #verifyLink img {
  width: 16px;
  height: 16px;
}

.checkout-summary-row strong.is-pending {
  font-size: 0.78rem;
  color: #b8860b;
  font-weight: 700;
}

.checkout-summary-row.is-total strong.is-pending {
  font-size: 0.95rem;
}

.checkout-summary-row.is-shipping-updated strong {
  animation: checkoutFlash 0.45s ease;
}

@keyframes checkoutFlash {
  0% { color: var(--teal); transform: scale(1.04); }
  100% { color: var(--teal-deep); transform: scale(1); }
}

.checkout-step.is-done .checkout-step__dot {
  color: var(--teal-deep);
}

/* —— bKash advance payment —— */
.checkout-bkash-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(226, 19, 110, 0.1);
  border: 1px solid rgba(226, 19, 110, 0.22);
  color: #b01058;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checkout-advance-amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(226, 19, 110, 0.06), rgba(245, 250, 253, 0.9));
  border: 1px solid rgba(226, 19, 110, 0.14);
}

.checkout-advance-amount span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.checkout-advance-amount strong {
  font-size: 1.35rem;
  color: #c4126a;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.checkout-scanner {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.bkash-pay-card {
  margin: 0 auto;
  max-width: 280px;
  text-align: center;
}

.bkash-pay-card__qr {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow:
    0 16px 40px rgba(226, 19, 110, 0.16),
    0 2px 0 rgba(255, 255, 255, 0.8) inset;
}

.bkash-pay-card__caption {
  margin-top: 0.45rem;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.checkout-scanner-steps {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  color: var(--muted);
}

.checkout-scanner-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.checkout-scanner-steps em {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(226, 19, 110, 0.12);
  color: #c4126a;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
}

.checkout-trxid-field .field {
  padding-left: 0.85rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checkout-trxid-field .field::placeholder {
  text-transform: none;
  letter-spacing: normal;
}

.checkout-success-panel {
  display: none;
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}

.checkout-success-panel.is-visible {
  display: block;
}

.checkout-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(24, 119, 242, 0.14);
}

.checkout-success-icon img {
  width: 26px;
  height: 26px;
}

.checkout-success-panel h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0 0 0.45rem;
}

.checkout-success-panel p {
  margin: 0 auto 1rem;
  max-width: 42ch;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.checkout-success-meta {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: rgba(245, 250, 253, 0.9);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  text-align: left;
}

.checkout-success-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.checkout-success-actions .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.checkout-success-actions .btn-primary {
  margin-left: 0;
}

.checkout-success-actions .btn-ico {
  width: 16px;
  height: 16px;
}

.checkout-success-actions .btn-primary .btn-ico {
  filter: brightness(0) invert(1);
}

.checkout-pay-form.is-submitted {
  display: none;
}

.checkout-actions .btn-bkash {
  background: linear-gradient(135deg, #e2136e, #c4126a);
  color: #fff;
  box-shadow: 0 10px 24px rgba(226, 19, 110, 0.28);
}

.checkout-actions .btn-bkash:hover {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

  .checkout-summary {
    position: static;
  }

  .checkout-step__label {
    display: none;
  }

  .checkout-step__line {
    min-width: 8px;
  }

  .checkout-actions .btn-primary,
  .checkout-actions #verifyLink.is-visible {
    margin-left: 0;
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .checkout-auth-btn {
    padding: 0.65rem 0.75rem;
    gap: 0.6rem;
  }

  .checkout-auth-btn__icon {
    width: 36px;
    height: 36px;
  }

  .checkout-zone-grid {
    grid-template-columns: 1fr;
  }

  .checkout-field-row {
    flex-direction: column;
    gap: 0.85rem;
  }
}

.checkout-shell.is-leaving > :not(.checkout-leave):not(.checkout-shell-bg) {
  filter: blur(2px);
  opacity: 0.55;
  transition: opacity 0.55s ease, filter 0.55s ease;
  pointer-events: none;
}

.checkout-leave {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(255, 255, 255, 0.55), transparent 70%),
    rgba(244, 250, 252, 0.72);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  animation: checkoutLeaveIn 0.7s ease both;
}

.checkout-leave-panel {
  width: min(100%, 360px);
  text-align: center;
  padding: 1.75rem 1.4rem 1.5rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(54, 179, 126, 0.2);
  box-shadow: 0 18px 40px rgba(31, 143, 95, 0.12);
  animation: checkoutLeavePanel 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.checkout-leave-mark {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 0.95rem;
  display: grid;
  place-items: center;
}

.checkout-leave-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(54, 179, 126, 0.28);
  animation: orderSuccessPulse 1.8s ease-out 0.35s both;
}

.checkout-leave-svg {
  width: 72px;
  height: 72px;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(31, 143, 95, 0.2));
}

.checkout-leave-circle {
  fill: rgba(54, 179, 126, 0.12);
  stroke: #1f8f5f;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: orderSuccessDraw 0.7s ease forwards;
}

.checkout-leave-tick {
  stroke: #1f8f5f;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: orderSuccessDraw 0.45s ease 0.4s forwards;
}

.checkout-leave-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-weight: 700;
  color: var(--teal-deep, #0c63d4);
}

.checkout-leave-brand img {
  width: 16px;
  height: 16px;
}

.checkout-leave-panel strong {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.checkout-leave-panel > span {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
}

@keyframes checkoutLeaveIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes checkoutLeavePanel {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* —— Split checkout (form + order summary) —— */
.checkout-with-ad {
  overflow: visible;
}

.checkout-ad-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 0;
}

.checkout-ad-wrap:not(:has(*)) {
  display: none;
}

.checkout-ad-wrap:has(*) {
  padding-top: 0.65rem;
  padding-bottom: 0.25rem;
}

.checkout-shell {
  position: relative;
  min-height: 0;
  overflow: visible;
  padding-bottom: 0;
  margin-bottom: 0;
}

.checkout-shell > .container.section {
  padding-top: 0.45rem;
  padding-bottom: 3.25rem;
}

.checkout-shell-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #f4fafc;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.15) 72%,
      rgba(255, 255, 255, 0.72) 90%,
      #ffffff 100%
    ),
    linear-gradient(
      90deg,
      rgba(244, 250, 252, 0.2) 0%,
      rgba(255, 255, 255, 0.55) 30%,
      rgba(255, 255, 255, 0.72) 50%,
      rgba(255, 255, 255, 0.55) 70%,
      rgba(244, 250, 252, 0.2) 100%
    );
}

.checkout-shell-bg::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  background-image: url("/assets/images/ui/checkout-bg.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: blur(2.5px);
  transform: scale(1.01);
  opacity: 0.78;
}

.checkout-shell-bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.75) 55%,
    #ffffff 100%
  );
  pointer-events: none;
}

.checkout-shell > .container {
  position: relative;
  z-index: 1;
}

/* Pull footer flush with checkout blend */
main:has(.checkout-shell) + #site-footer .site-footer,
main:has(.checkout-with-ad) + #site-footer .site-footer {
  margin-top: 0;
  border-top: none;
  padding-top: 1.35rem;
  background: #fff;
}

.checkout-page--split {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  /* Header row (~76px) + catbar (~44px) — keep summary below sticky chrome */
  --checkout-sticky-top: 7.75rem;
}

.checkout-page-head {
  margin-bottom: 1.15rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(24, 119, 242, 0.14);
  box-shadow: 0 10px 28px rgba(42, 54, 66, 0.06);
  backdrop-filter: blur(8px);
}

.checkout-page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-deep, #0c63d4);
}

.checkout-page-eyebrow img {
  width: 14px;
  height: 14px;
  opacity: 0.9;
}

.checkout-page-head h1 {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  letter-spacing: -0.02em;
}

.checkout-page-head p {
  margin: 0;
  font-size: 0.88rem;
}

.checkout-split {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1.25rem;
}

.checkout-unified-card {
  padding: 1.15rem 1.2rem 1.25rem;
  height: auto;
  max-height: none;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(24, 119, 242, 0.16);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 36px rgba(24, 119, 242, 0.08);
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
}

.checkout-unified-card .checkout-split {
  gap: 1.35rem;
  align-items: flex-start;
}

.checkout-unified-card .checkout-block {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}

.checkout-unified-card .checkout-block--payment {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(24, 119, 242, 0.12);
}

.checkout-unified-card .checkout-split-aside {
  padding-left: 1.15rem;
  border-left: 1px solid rgba(24, 119, 242, 0.12);
}

.checkout-unified-card .checkout-place-btn {
  margin-top: 0.85rem;
}

.checkout-split-main {
  flex: 1 1 52%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkout-split-aside {
  flex: 0 0 min(38%, 380px);
  width: min(38%, 380px);
  min-width: 300px;
  max-width: 400px;
  position: sticky;
  top: var(--checkout-sticky-top, 7.75rem);
  align-self: flex-start;
  z-index: 5;
  height: auto;
  max-height: none;
  overflow: visible;
}

.checkout-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  height: auto;
  max-height: none;
  overflow: visible;
}

.checkout-summary-card .checkout-bag-panel {
  flex: 0 1 auto;
  min-height: 0;
  overflow: auto;
  max-height: min(42vh, 360px);
  padding-right: 0.15rem;
}

.checkout-summary-note {
  margin: 0;
  font-size: 0.8rem;
}

.checkout-coupon {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.checkout-coupon-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text);
}

.checkout-coupon-row {
  display: flex;
  gap: 0.45rem;
  align-items: stretch;
}

.checkout-coupon-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.checkout-coupon-btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding-inline: 0.9rem;
  white-space: nowrap;
}

.checkout-coupon-msg {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
}

.checkout-coupon-msg.is-ok {
  color: #1f8f5f;
}

.checkout-coupon-msg.is-bad {
  color: #c46464;
}

.checkout-totals-discount dt,
.checkout-totals-discount dd {
  color: #1f8f5f;
}
.checkout-totals-regular dd {
  color: #8a94a6;
  text-decoration: line-through;
}
.checkout-totals-offer dt,
.checkout-totals-offer dd {
  color: #c81e1e;
  font-weight: 700;
}

.checkout-totals-coupon {
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

.checkout-quote-status {
  margin: 0;
  font-size: 0.8rem;
}

.checkout-totals {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 119, 242, 0.06), rgba(245, 200, 74, 0.08));
  border: 1px solid rgba(24, 119, 242, 0.14);
  min-height: 9.5rem;
  transition: opacity 0.2s ease;
}

.checkout-totals-stage {
  position: relative;
  margin: 0.35rem 0 0;
  min-height: 9.5rem;
}

.checkout-calc {
  margin: 0;
  padding: 0.8rem 0.9rem 0.75rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(24, 119, 242, 0.07), rgba(245, 200, 74, 0.09));
  border: 1px solid rgba(24, 119, 242, 0.18);
  color: #163a66;
  min-height: 9.5rem;
  font-family: "Cascadia Code", "Fira Code", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  transform-origin: top center;
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.42s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.checkout-calc.is-finishing {
  border-color: rgba(31, 143, 95, 0.28);
  background: linear-gradient(180deg, rgba(31, 143, 95, 0.08), rgba(24, 119, 242, 0.05));
}

.checkout-calc.is-exit {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1;
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  filter: blur(2px);
  pointer-events: none;
}

.checkout-calc-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.checkout-calc-head strong {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: #0b5cab;
  font-family: inherit;
}

.checkout-calc-pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #1f8f5f;
  box-shadow: 0 0 0 0 rgba(31, 143, 95, 0.45);
  animation: checkout-calc-pulse 1.2s ease-out infinite;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.35s ease;
}

.checkout-calc-pulse.is-done {
  animation: none;
  background: #1f8f5f;
  box-shadow: 0 0 0 4px rgba(31, 143, 95, 0.18);
  transform: scale(1.08);
}

@keyframes checkout-calc-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 143, 95, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(31, 143, 95, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31, 143, 95, 0);
  }
}

.checkout-calc-log {
  display: grid;
  gap: 0.28rem;
  min-height: 5.6rem;
}

.checkout-calc-line {
  display: flex;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(22, 58, 102, 0.55);
}

.checkout-calc-line.is-active {
  color: #0f2f55;
}

.checkout-calc-line.is-done {
  color: rgba(22, 58, 102, 0.72);
}

.checkout-calc-prompt {
  flex-shrink: 0;
  color: #1f8f5f;
  font-weight: 700;
}

.checkout-calc-text {
  min-width: 0;
  word-break: break-word;
}

.checkout-calc-caret {
  display: inline-block;
  width: 0.45rem;
  height: 0.85em;
  margin-left: 1px;
  vertical-align: -0.1em;
  background: #1877f2;
  animation: checkout-calc-blink 0.85s step-end infinite;
}

@keyframes checkout-calc-blink {
  50% {
    opacity: 0;
  }
}

.checkout-calc-footnote {
  margin: 0.65rem 0 0;
  font-size: 0.68rem;
  color: var(--muted) !important;
  font-family: var(--font-body, system-ui, sans-serif);
  transition: opacity 0.3s ease, color 0.3s ease;
}

.checkout-calc-line--ready {
  color: #1f8f5f !important;
  animation: checkout-calc-ready-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes checkout-calc-ready-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.checkout-totals.is-quoting {
  position: relative;
}

.checkout-totals.is-enter {
  animation: checkout-totals-enter 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes checkout-totals-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.checkout-totals > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.88rem;
  min-height: 1.35rem;
}

.checkout-ship-policy {
  margin: -0.15rem 0 0.15rem;
  font-size: 0.72rem;
  text-align: right;
  min-height: 1.1rem;
  line-height: 1.1rem;
}

.checkout-ship-breakdown {
  margin: -0.2rem 0 0.1rem;
  font-size: 0.7rem;
  text-align: right;
  line-height: 1.2;
}

.checkout-zone-block {
  margin-top: 0.75rem;
}

.checkout-zone-block-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.checkout-zone-block-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(180, 83, 9, 0.18);
  font-size: 0.82rem;
}

.checkout-zone-uncheck {
  flex-shrink: 0;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.checkout-ship-policy.is-quoting {
  opacity: 0.85;
}

.checkout-totals-fade {
  opacity: 0.55;
  transition: opacity 0.18s ease;
}

.checkout-skel {
  display: inline-block;
  width: 4.2rem;
  height: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(24, 119, 242, 0.1) 0%,
    rgba(24, 119, 242, 0.22) 45%,
    rgba(24, 119, 242, 0.1) 90%
  );
  background-size: 200% 100%;
  animation: checkout-skel-shine 1.05s ease-in-out infinite;
  vertical-align: middle;
}

.checkout-skel--wide {
  width: 5.4rem;
}

.checkout-skel--grand {
  width: 6.2rem;
  height: 1rem;
}

.checkout-skel--policy {
  width: 9.5rem;
  height: 0.65rem;
}

@keyframes checkout-skel-shine {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.checkout-totals dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.checkout-totals dd {
  margin: 0;
  font-weight: 700;
  min-width: 4.5rem;
  text-align: right;
}

.checkout-totals-advance dt,
.checkout-totals-advance dd {
  color: var(--teal-deep, #0b5cab);
}

.checkout-totals-grand {
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(24, 119, 242, 0.22);
  font-size: 1rem;
}

.checkout-totals-grand dt,
.checkout-totals-grand dd {
  color: var(--text);
  font-weight: 800;
}

.checkout-ship-lines {
  display: none;
}

.checkout-place-btn {
  margin-top: 0.15rem;
  min-height: 52px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: linear-gradient(180deg, #36b37e 0%, #1f8f5f 100%);
  color: #fff;
  border: 1px solid rgba(18, 110, 70, 0.35);
  box-shadow: 0 10px 22px rgba(31, 143, 95, 0.28);
  transition: filter 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.checkout-place-btn:hover:not(:disabled) {
  filter: brightness(1.04);
}

.checkout-place-btn:disabled {
  opacity: 0.65;
  filter: none;
  cursor: not-allowed;
}

.checkout-place-ico {
  flex-shrink: 0;
  display: block;
}

.checkout-page--split .checkout-block.comm-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.checkout-block--delivery {
  border-top: 0;
}

.checkout-saved-addresses {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem 0.85rem;
  border: 1px solid rgba(24, 119, 242, 0.14);
  border-radius: 14px;
  background: rgba(231, 240, 254, 0.35);
}

.checkout-saved-addresses-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.checkout-saved-addresses-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-deep, #0c63d4);
}

.checkout-saved-addresses-manage {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-deep, #0c63d4);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkout-saved-addresses-loading {
  margin: 0;
  font-size: 0.84rem;
}

.checkout-saved-address-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.checkout-saved-address {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(42, 54, 66, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.checkout-saved-address.is-selected {
  border-color: rgba(24, 119, 242, 0.4);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.checkout-saved-address-body {
  flex: 1;
  min-width: 0;
}

.checkout-saved-address-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.15rem;
}

.checkout-saved-address-top strong {
  font-size: 0.88rem;
}

.checkout-saved-address-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  background: rgba(24, 119, 242, 0.12);
  color: var(--teal-deep, #0c63d4);
}

.checkout-saved-address-badge.is-active {
  background: rgba(46, 139, 87, 0.14);
  color: #1f8f5f;
}

.checkout-saved-address-meta {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 650;
}

.checkout-saved-address-sum {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

.checkout-block--payment {
  border-top: 0;
}

.checkout-summary-card.checkout-block {
  border-top: 0;
}

.checkout-block h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--teal-deep, #0c63d4);
}

.checkout-block h2 img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.9;
}

.checkout-block .checkout-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  flex: 1;
  min-width: 0;
}

.checkout-block .checkout-field-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text);
}

.checkout-block .checkout-field-label .req {
  color: #c46464;
  font-weight: 800;
}

.checkout-page--split .checkout-input-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.checkout-page--split .checkout-input-wrap > img {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

.checkout-page--split .checkout-input-wrap.is-textarea > img {
  top: 0.95rem;
  transform: none;
}

.checkout-page--split .checkout-input-wrap .field {
  width: 100%;
  border: 2px solid rgba(24, 119, 242, 0.28);
  border-radius: 12px;
  padding: 0.72rem 0.9rem 0.72rem 2.45rem;
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
  min-height: 48px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.checkout-page--split .checkout-input-wrap textarea.field {
  min-height: 96px;
  resize: vertical;
  line-height: 1.45;
}

.checkout-page--split .checkout-input-wrap .field::placeholder {
  color: rgba(42, 54, 66, 0.42);
}

.checkout-page--split .checkout-input-wrap .field:focus {
  outline: none;
  border-color: rgba(24, 119, 242, 0.7);
  box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.14);
}

.checkout-page--split .checkout-input-wrap .field.is-invalid,
.checkout-page--split .checkout-field.is-invalid .checkout-input-wrap .field {
  border-color: rgba(196, 75, 75, 0.7);
  box-shadow: 0 0 0 4px rgba(196, 75, 75, 0.12);
}

.checkout-field-error {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 600;
  color: #b42318;
  line-height: 1.35;
}

.checkout-block .checkout-field-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.checkout-geo-row {
  width: 100%;
}

.checkout-geo-row > .checkout-field {
  flex: 1 1 0;
  min-width: 0;
  width: 50%;
}

.checkout-geo-row .checkout-input-wrap,
.checkout-geo-row .checkout-input-wrap .field,
.checkout-geo-row select.field {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Payment method cards — match checkout input system */
.pay-grid {
  display: grid;
  gap: 0.55rem;
}

.pay-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  border: 2px solid rgba(24, 119, 242, 0.28);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 48px;
  box-sizing: border-box;
}

.pay-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-option-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(24, 119, 242, 0.08);
  border: 1px solid rgba(24, 119, 242, 0.14);
  font-size: 1rem;
}

.pay-option-body {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  flex: 1 1 auto;
}

.pay-option-body strong {
  font-size: 0.9rem;
  font-weight: 750;
  color: var(--text);
}

.pay-option-body .muted {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--muted);
}

.pay-option::after {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  flex-shrink: 0;
  border: 2px solid rgba(24, 119, 242, 0.35);
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.pay-option:hover {
  border-color: rgba(24, 119, 242, 0.7);
  box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.1);
}

.pay-option.is-selected {
  border-color: rgba(24, 119, 242, 0.7);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.14);
}

.pay-option--skel {
  pointer-events: none;
  min-height: 4.35rem;
  cursor: default;
}

.pay-option--skel .pay-option-body {
  gap: 0.45rem;
  width: 100%;
}

.pay-option--skel::after {
  opacity: 0.35;
}

.checkout-skel--ico {
  width: 1.65rem !important;
  height: 1.65rem !important;
  border-radius: 8px !important;
  flex-shrink: 0;
}

.checkout-skel--label {
  display: block;
  width: 8.5rem;
  height: 0.9rem;
}

.checkout-skel--hint {
  display: block;
  width: 11.5rem;
  height: 0.7rem;
}

.pay-option.is-selected::after {
  border-color: rgba(24, 119, 242, 0.85);
  background: #1877f2;
  box-shadow: inset 0 0 0 3px #fff;
}

.pay-grid.is-invalid .pay-option {
  border-color: rgba(196, 75, 75, 0.7);
  box-shadow: 0 0 0 4px rgba(196, 75, 75, 0.12);
}

/* —— You may also like (compact auto-slider) —— */
.checkout-like {
  margin-top: 1.5rem;
  padding: 1rem 1rem 1.15rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(24, 119, 242, 0.14);
  box-shadow: 0 12px 28px rgba(24, 119, 242, 0.06);
  backdrop-filter: blur(8px);
}

.checkout-like-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.75rem;
}

.checkout-like-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--teal-deep, #0c63d4);
}

.checkout-like-head .muted {
  margin: 0;
  font-size: 0.78rem;
}

.checkout-like-loading {
  margin: 0;
  font-size: 0.85rem;
}

.checkout-like-slider {
  position: relative;
  padding: 0 1.65rem;
}

.checkout-like-viewport {
  overflow: hidden;
}

.checkout-like-track {
  display: flex;
  gap: 0.65rem;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.checkout-like-card {
  flex: 0 0 calc((100% - 3.25rem) / 6);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.45rem;
  border-radius: 12px;
  border: 1px solid rgba(42, 54, 66, 0.08);
  background: #fafbfd;
}

.checkout-like-thumb {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(24, 119, 242, 0.08);
}

.checkout-like-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.checkout-like-meta {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.checkout-like-meta a {
  color: inherit;
  text-decoration: none;
}

.checkout-like-meta strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 750;
  color: #163a66;
  min-height: 1.8em;
}

.checkout-like-cat {
  font-size: 0.62rem;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-like-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.checkout-like-price {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--teal-deep, #0c63d4);
}

.checkout-like-add {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--action-border, #e8b83a);
  background: linear-gradient(180deg, var(--action, #ffe28a), var(--action-deep, #f5c84a));
  color: var(--action-text, #3a3420);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
}

.checkout-like-add:hover {
  filter: brightness(0.97);
}

.checkout-like-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(24, 119, 242, 0.2);
  background: #fff;
  color: var(--teal-deep, #0c63d4);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(42, 54, 66, 0.08);
}

.checkout-like-nav:hover {
  border-color: rgba(24, 119, 242, 0.4);
}

.checkout-like-prev { left: 0; }
.checkout-like-next { right: 0; }

@media (max-width: 1200px) {
  .checkout-like-card { flex-basis: calc((100% - 2.6rem) / 5); }
}

@media (max-width: 980px) {
  .checkout-like-card { flex-basis: calc((100% - 1.95rem) / 4); }
}

@media (max-width: 720px) {
  .checkout-like-card { flex-basis: calc((100% - 1.3rem) / 3); }
}

@media (max-width: 480px) {
  .checkout-like-slider { padding: 0 1.4rem; }
  .checkout-like-card { flex-basis: calc((100% - 0.65rem) / 2); }
}

@media (max-width: 860px) {
  .checkout-shell-bg {
    background-position: center center;
    opacity: 0.85;
  }

  .checkout-split {
    flex-wrap: wrap;
    flex-direction: column-reverse;
  }

  .checkout-split-aside {
    position: static;
    width: 100%;
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .checkout-unified-card .checkout-split-aside {
    padding-left: 0;
    border-left: 0;
    padding-bottom: 1rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid rgba(24, 119, 242, 0.12);
  }

  .checkout-summary-card {
    max-height: none;
  }

  .checkout-summary-card .checkout-bag-panel {
    max-height: min(50vh, 420px);
  }

  .checkout-split-main {
    flex: 1 1 100%;
  }

  .checkout-block .checkout-field-row {
    flex-direction: column;
    gap: 0;
  }

  .checkout-geo-row > .checkout-field {
    width: 100%;
  }
}

/* —— Order success —— */
/* —— Order success —— */
.order-success-enter {
  min-height: inherit;
}

.order-success-enter.is-soft .order-success-shell {
  animation: orderSuccessSoftIn 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.order-success-enter.is-soft .order-success-panel,
.order-success-enter.is-soft .order-success-card {
  animation: orderSuccessCardSoft 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.order-success-enter.is-soft .order-success-tick {
  animation-delay: 0.55s;
}

@keyframes orderSuccessSoftIn {
  from {
    opacity: 0.35;
    filter: blur(6px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes orderSuccessCardSoft {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.checkout-leave--handoff .checkout-leave-panel {
  padding: 1.35rem 1.5rem;
}

.checkout-leave--handoff .checkout-leave-mark {
  display: none;
}

.order-success-shell {
  position: relative;
  min-height: calc(100svh - 8.5rem);
  display: block;
  padding: 1.25rem 0 2.5rem;
  overflow-x: clip;
  overflow-y: visible;
}

.order-success-page {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max, 1180px));
  max-width: var(--max, 1180px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding-block: 0.5rem 1.5rem;
  box-sizing: border-box;
  min-width: 0;
  overflow-x: clip;
}

.order-success-panel {
  display: block;
  width: min(100%, 520px);
  border-radius: 24px;
  background: #fff;
  border: 1.5px solid rgba(24, 119, 242, 0.14);
  box-shadow: 0 18px 42px rgba(24, 119, 242, 0.08);
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
  animation: orderSuccessCardIn 0.55s ease both;
}

.order-success-enter.is-ready .order-success-panel {
  animation: none;
}

.order-success-enter.is-ready .order-success-tick,
.order-success-enter.is-ready .order-success-circle,
.order-success-enter.is-ready .order-success-ring {
  animation: none;
  opacity: 1;
  stroke-dashoffset: 0;
}

.order-success-panel-main {
  text-align: center;
  padding: 1.85rem 1.4rem 1.6rem;
  min-width: 0;
}

.order-success-card {
  /* legacy alias kept for older selectors */
  text-align: center;
}

.order-success-extras {
  width: 100%;
  min-width: 0;
}

.order-success-items {
  display: none !important;
}

.order-success-items-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.order-success-items-head h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 750;
  color: #163a5c;
}

.order-success-items-head .muted,
.order-success-items-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.order-success-items-stage {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.order-success-items-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  container-type: inline-size;
  container-name: success-items;
}

.order-success-items-track {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.order-success-items.is-count-1 .order-success-items-track {
  grid-template-columns: minmax(0, 220px);
  justify-content: center;
}

.order-success-items.is-count-2 .order-success-items-track {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-success-items.is-slider .order-success-items-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  align-items: stretch;
}

.order-success-items.is-slider .order-success-pcard {
  flex: 0 0 calc((100cqi - 0.75rem) / 2);
  width: calc((100cqi - 0.75rem) / 2);
  max-width: none;
}

.order-success-pcard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(24, 119, 242, 0.12);
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(15, 55, 100, 0.045);
}

.order-success-pcard-media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 160px;
  background: #f4f8fc;
  overflow: hidden;
}

.order-success-pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.order-success-pcard-body {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.7rem 0.75rem;
}

.order-success-pcard-name {
  font-size: 0.88rem;
  font-weight: 750;
  color: #163a5c;
  text-decoration: none;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.order-success-pcard-name:hover {
  color: var(--teal-deep, #0c63d4);
}

.order-success-pcard-meta {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.order-success-pcard-total {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--teal-deep, #0c63d4);
}

.order-success-items-nav {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(24, 119, 242, 0.18);
  background: rgba(255, 255, 255, 0.95);
  color: var(--teal-deep, #0c63d4);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 55, 100, 0.1);
}

.order-success-items-nav.is-prev { left: 0.2rem; }
.order-success-items-nav.is-next { right: 0.2rem; }

.order-success-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #f4fafc;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.15) 72%,
      rgba(255, 255, 255, 0.72) 90%,
      #ffffff 100%
    ),
    linear-gradient(
      90deg,
      rgba(244, 250, 252, 0.2) 0%,
      rgba(255, 255, 255, 0.55) 30%,
      rgba(255, 255, 255, 0.72) 50%,
      rgba(255, 255, 255, 0.55) 70%,
      rgba(244, 250, 252, 0.2) 100%
    );
}

.order-success-bg::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  background-image: url("/assets/images/ui/checkout-bg.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: blur(2.5px);
  transform: scale(1.01);
  opacity: 0.78;
}

.order-success-bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.75) 55%,
    #ffffff 100%
  );
  pointer-events: none;
}

.order-success-shell.is-failed .order-success-bg {
  background-color: #faf6f5;
}

.order-success-extras .checkout-like {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.order-success-extras .checkout-like-head {
  gap: 0.35rem 0.75rem;
  min-width: 0;
  flex-wrap: wrap;
}

.order-success-extras .checkout-like-head .muted {
  max-width: 100%;
  white-space: normal;
  text-align: right;
}

.order-success-extras .checkout-like-slider {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.order-success-extras .checkout-like-viewport {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.order-success-extras .checkout-like-track {
  width: 100%;
  min-width: 0;
}

.order-success-extras .checkout-like-card {
  flex: 0 0 calc((100% - 1.95rem) / 4);
  max-width: calc((100% - 1.95rem) / 4);
}

@media (min-width: 900px) {
  .order-success-panel-main {
    padding: 2rem 1.65rem 1.8rem;
  }

  .order-success-extras .checkout-like-card {
    flex: 0 0 calc((100% - 2.6rem) / 5);
    max-width: calc((100% - 2.6rem) / 5);
  }
}

@media (max-width: 899px) {
  .order-success-page {
    width: min(100% - 2rem, var(--max, 1180px));
  }

  .order-success-extras .checkout-like-card {
    flex: 0 0 calc((100% - 0.65rem) / 2);
    max-width: calc((100% - 0.65rem) / 2);
  }
}

.order-success-shell.is-failed .order-success-panel {
  border-color: rgba(196, 100, 100, 0.2);
}

.order-success-mark {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 1.15rem;
  display: grid;
  place-items: center;
}

.order-success-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(54, 179, 126, 0.28);
  animation: orderSuccessPulse 1.8s ease-out 0.45s both;
}

.order-success-ring--delay {
  animation-delay: 0.85s;
}

.order-success-shell.is-failed .order-success-ring {
  border-color: rgba(196, 100, 100, 0.3);
}

.order-success-svg {
  width: 76px;
  height: 76px;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(31, 143, 95, 0.22));
}

.order-success-shell.is-failed .order-success-svg {
  filter: drop-shadow(0 8px 16px rgba(180, 70, 70, 0.18));
}

.order-success-circle {
  fill: rgba(54, 179, 126, 0.12);
  stroke: #1f8f5f;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: orderSuccessDraw 0.7s ease forwards;
}

.order-success-shell.is-failed .order-success-circle {
  fill: rgba(196, 100, 100, 0.1);
  stroke: #c46464;
}

.order-success-tick {
  stroke: #1f8f5f;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: orderSuccessDraw 0.45s ease 0.45s forwards;
}

.order-success-bang,
.order-success-dot {
  stroke: #c46464;
  stroke-width: 4;
  stroke-linecap: round;
  fill: #c46464;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: orderSuccessDraw 0.4s ease 0.4s forwards;
}

.order-success-dot {
  stroke: none;
  opacity: 0;
  animation: orderSuccessFade 0.3s ease 0.7s forwards;
}

.order-success-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal-deep, #0c63d4);
  letter-spacing: -0.02em;
}

.order-success-brand img {
  width: 18px;
  height: 18px;
}

.order-success-panel-main h1,
.order-success-card h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  color: var(--text);
}

.order-success-lead {
  margin: 0 auto 1.15rem;
  max-width: 38ch;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

.order-success-meta {
  display: grid;
  gap: 0.55rem;
  margin: 0 auto 1.25rem;
  padding: 0.85rem 1rem;
  width: 100%;
  max-width: 100%;
  border-radius: 14px;
  background: #f5f8fb;
  border: 1px solid rgba(24, 119, 242, 0.1);
  text-align: left;
  box-sizing: border-box;
}

.order-success-shell.is-failed .order-success-meta {
  background: #faf5f5;
  border-color: rgba(196, 100, 100, 0.14);
}

.order-success-meta > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1rem;
  min-width: 0;
  flex-wrap: wrap;
}

.order-success-meta dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.order-success-meta dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 750;
  color: var(--text);
  text-align: right;
  flex: 1 1 10rem;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.order-success-meta dd.is-ok {
  color: #1f8f5f;
  text-transform: capitalize;
}

.order-success-meta dd.is-bad {
  color: #c46464;
  text-transform: capitalize;
}

.order-success-meta dd.is-due {
  color: var(--teal-deep, #0c63d4);
  font-variant-numeric: tabular-nums;
}

.order-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.order-success-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding-inline: 1.15rem;
}

.order-success-btn img {
  width: 16px;
  height: 16px;
}

.order-success-btn.btn-primary img {
  filter: brightness(0) invert(1);
}

main:has(.order-success-shell) + #site-footer .site-footer {
  margin-top: 0;
  border-top: none;
  padding-top: 1.5rem;
}

@keyframes orderSuccessDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes orderSuccessFade {
  to { opacity: 1; }
}

@keyframes orderSuccessPulse {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.45); opacity: 0; }
}

@keyframes orderSuccessCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 560px) {
  .order-success-shell {
    min-height: calc(100svh - 7.5rem);
    padding: 0.85rem 0 1.75rem;
    align-items: flex-start;
  }

  .order-success-panel-main,
  .order-success-card {
    padding: 1.5rem 1.15rem 1.35rem;
  }

  .order-success-actions {
    flex-direction: column;
  }

  .order-success-btn {
    width: 100%;
  }
}

/* Order notifications: email typo hint + confirmation note */
.checkout-field-hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}
.checkout-field-hint .link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand, #0f766e);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.checkout-field-label .muted {
  font-weight: 500;
  font-size: 0.78em;
}
.order-success-note {
  margin: -0.4rem auto 1rem;
  max-width: 38ch;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}