body.is-checkout {
  background: rgb(var(--background)) !important;
  color: rgb(var(--foreground));
}

body.is-checkout #site-header {
  display: none !important;
}

body.is-checkout .checkout-main-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0.75rem 1.5rem;
  min-height: 100vh;
}

#checkout.checkout-page {
  --checkout-card-border: rgba(255, 255, 255, 0.07);
  --checkout-surface: rgba(0, 0, 0, 0.28);
  width: 100%;
  max-width: min(90vw, 60rem);
  margin-inline: auto;
}

#checkout .checkout-shell {
  width: 100%;
}

#checkout .checkout-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 29rem;
}

@media (min-width: 900px) {
  #checkout .checkout-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    min-height: 33rem;
  }
}

#checkout .checkout-form-col {
  padding: 1.25rem 1.25rem 1.5rem;
  background: transparent;
  color: rgb(var(--foreground));
  border-right: 1px solid var(--checkout-card-border);
}

@media (min-width: 900px) {
  #checkout .checkout-form-col {
    padding: 1.5rem 1.75rem 1.75rem;
  }
}

#checkout .checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 0.95rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgb(var(--muted-foreground));
  transition: color 0.15s ease;
}

#checkout .checkout-back:hover {
  color: rgb(var(--foreground));
}

#checkout .checkout-title {
  margin: 0 0 0.95rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgb(var(--foreground));
}

#checkout .checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--checkout-card-border);
}

#checkout .checkout-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding-bottom: 0.65rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgb(var(--muted-foreground));
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

#checkout .checkout-step__num {
  font-weight: 700;
}

#checkout .checkout-step.is-active {
  color: hsl(var(--primary));
  font-weight: 700;
  border-bottom-color: hsl(var(--primary));
}

#checkout .checkout-form-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#checkout .checkout-section__title {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgb(var(--foreground));
}

#checkout .checkout-field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 540px) {
  #checkout .checkout-field-row {
    grid-template-columns: 1fr 1fr;
  }

  #checkout .checkout-field-row--3 {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

#checkout .checkout-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

#checkout .checkout-field.hidden {
  display: none !important;
}

#checkout .checkout-field__label,
#checkout label.checkout-field__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgb(var(--foreground)) !important;
}

#checkout .checkout-field__lock {
  color: rgb(var(--muted-foreground));
}

#checkout .checkout-form-col input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
#checkout .checkout-form-col select {
  height: 2.25rem;
  padding-inline: 0.7rem;
  font-size: 0.9rem;
  border-radius: 0.4rem;
  background: var(--checkout-surface);
  border: 1px solid var(--checkout-card-border);
  color: rgb(var(--foreground));
}

#checkout .checkout-form-col input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"])::placeholder {
  color: rgb(var(--muted-foreground));
}

#checkout .checkout-form-col input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus-visible,
#checkout .checkout-form-col select:focus-visible {
  border-color: hsl(var(--primary) / 0.5);
  outline: none;
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12);
}

#checkout .checkout-gateway {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--checkout-card-border);
  border-radius: 0.45rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#checkout .checkout-gateway:hover {
  border-color: hsl(var(--primary) / 0.35);
}

#checkout .checkout-gateway[data-selected="true"] {
  border-color: hsl(var(--primary) / 0.55);
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.25);
  background: hsl(var(--primary) / 0.07);
}

#checkout .checkout-gateway__icon {
  border-radius: 0.35rem;
  background: var(--checkout-surface);
  border-color: var(--checkout-card-border);
}

#checkout .checkout-gateway__name {
  color: rgb(var(--foreground));
}

#checkout .checkout-gateway__radio {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--checkout-card-border);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

#checkout .checkout-gateway[data-selected="true"] .checkout-gateway__radio {
  border-color: hsl(var(--primary));
}

#checkout .checkout-gateway[data-selected="true"] .checkout-gateway__radio::after {
  content: '';
  display: block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: hsl(var(--primary));
}

#checkout .checkout-chip {
  display: inline-flex;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
}

#checkout .checkout-chip--success {
  background: hsl(var(--primary) / 0.1);
  color: rgb(var(--foreground));
  border: 1px solid hsl(var(--primary) / 0.2);
}

#checkout .checkout-chip--accent {
  background: hsl(var(--primary) / 0.1);
  color: rgb(var(--foreground));
  border: 1px solid hsl(var(--primary) / 0.2);
}

#checkout .checkout-coupon-success {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0.4rem;
  border: 1px solid var(--checkout-card-border);
  background: var(--checkout-surface);
  color: rgb(var(--foreground));
  font-size: 0.85rem;
}

#checkout .checkout-coupon-success strong {
  font-weight: 700;
  color: #43db7f;
}

#checkout .checkout-coupon-success.hidden {
  display: none;
}

#checkout .checkout-actions {
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#checkout .checkout-pay-btn {
  width: 100%;
  min-height: 3rem;
  height: 3rem;
  padding-inline: 1.35rem;
  border-radius: 11px;
  font-size: 1.0625rem;
  font-weight: 800;
  gap: 0.5rem;
}

#checkout .checkout-pay-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

#checkout .checkout-pay-btn__price {
  font-size: 1.0625rem;
  font-weight: 800;
  opacity: 1;
}

#checkout .checkout-pay-btn__price::before {
  content: '·';
  margin-right: 0.25rem;
  opacity: 0.6;
}

#checkout .checkout-cart-col {
  padding: 1.25rem 1.25rem 1.5rem;
  background: rgba(0, 0, 0, 0.18);
  color: rgb(var(--foreground));
}

@media (min-width: 900px) {
  #checkout .checkout-cart-col {
    padding: 1.5rem 1.25rem 1.75rem;
  }
}

#checkout .checkout-cart-col__title {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

#checkout .checkout-cart-col__subtitle {
  margin: 0.95rem 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgb(var(--muted-foreground));
}

#checkout .checkout-cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 12rem;
  overflow-y: auto;
}

#checkout .checkout-cart-items.has-scroll {
  padding-right: 0.75rem;
}

#checkout .checkout-item__card {
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--checkout-card-border);
  background: rgba(0, 0, 0, 0.3);
}

#checkout .checkout-item__top {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

#checkout .checkout-item__media {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 0.35rem;
  overflow: hidden;
  border: 1px solid var(--checkout-card-border);
  background: rgb(0 0 0 / 0.25);
  display: grid;
  place-items: center;
}

#checkout .checkout-item__name {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgb(var(--foreground));
}

#checkout .checkout-item__unit {
  margin-top: 0.1rem;
  font-size: 0.75rem;
  color: rgb(var(--muted-foreground));
}

#checkout .checkout-item__remove {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 0.25rem;
  background: transparent;
  color: rgb(var(--muted-foreground));
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

#checkout .checkout-item__remove:hover {
  background: rgb(255 255 255 / 0.08);
  color: #fca5a5;
}

#checkout .checkout-item__controls {
  flex-shrink: 0;
}

#checkout .checkout-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

#checkout .checkout-item__price {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgb(var(--foreground));
}

#checkout .checkout-qty-btn {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 0.25rem;
  border: 1px solid var(--checkout-card-border);
  background: rgb(0 0 0 / 0.2);
  color: rgb(var(--foreground));
  cursor: pointer;
  transition: background 0.15s ease;
}

#checkout .checkout-qty-btn:hover {
  background: rgb(255 255 255 / 0.08);
}

#checkout .checkout-item input.checkout-qty-input[data-cart-action="input"] {
  width: 2rem;
  min-width: 2rem;
  height: 1.25rem;
  padding: 0 !important;
  flex-shrink: 0;
  text-align: center;
  color: rgb(var(--foreground));
  -webkit-text-fill-color: rgb(var(--foreground));
}

#checkout .checkout-qty-input {
  width: 2rem;
  min-width: 2rem;
  height: 1.25rem;
  flex-shrink: 0;
  padding: 0 !important;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25rem;
  border-radius: 0.25rem;
  border: 1px solid var(--checkout-card-border);
  background: rgb(0 0 0 / 0.2);
  color: rgb(var(--foreground));
  -webkit-text-fill-color: rgb(var(--foreground));
}

#checkout .checkout-upsell-section {
  margin-top: 0.85rem;
}

#checkout .checkout-upsell-section__title {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgb(var(--foreground));
}

#checkout .checkout-upsell-section__list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

#checkout .checkout-upsell-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--checkout-card-border);
  background: rgba(0, 0, 0, 0.22);
}

#checkout .checkout-upsell-item__media {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--checkout-card-border);
  background: rgb(0 0 0 / 0.25);
}

#checkout .checkout-upsell-item__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgb(var(--foreground));
}

#checkout .checkout-upsell-item__price {
  margin-top: 0.1rem;
  font-size: 0.75rem;
}

#checkout .checkout-upsell-item__compare {
  margin-right: 0.25rem;
  text-decoration: line-through;
  color: rgb(var(--muted-foreground));
}

#checkout .checkout-upsell-item__value {
  font-weight: 700;
  color: #43db7f;
}

#checkout .checkout-upsell-item__add {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  background: #43db7f;
  color: #052e16;
  box-shadow: 0 6px 16px rgba(67, 219, 127, 0.2);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

#checkout .checkout-upsell-item__add:hover {
  background: #43db7f;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(67, 219, 127, 0.26);
}

#checkout .checkout-upsell-item__add--swap {
  background: rgba(67, 219, 127, 0.12);
  color: #43db7f;
  border: 1px solid rgba(67, 219, 127, 0.28);
  box-shadow: none;
}

#checkout .checkout-upsell-item__add--swap:hover {
  background: rgba(67, 219, 127, 0.18);
  color: #43db7f;
  box-shadow: none;
}

#checkout .checkout-upsell-alt {
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px dashed rgba(67, 219, 127, 0.35);
  background: rgba(67, 219, 127, 0.06);
}

#checkout .checkout-upsell-alt__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #43db7f;
}

#checkout .checkout-upsell-alt__body {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

#checkout .checkout-pricing {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--checkout-card-border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
}

#checkout .checkout-pricing__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: rgb(var(--muted-foreground));
}

#checkout .checkout-pricing .discount-value {
  color: #43db7f;
}

#checkout .checkout-coupon-wrap {
  margin-top: 0.75rem;
}

#checkout .checkout-coupon {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

#checkout .checkout-coupon input {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 2rem;
  padding-inline: 0.7rem;
  font-size: 0.85rem;
  border-radius: 0.4rem;
  border: 1px solid var(--checkout-card-border);
  background: rgb(0 0 0 / 0.25);
  color: rgb(var(--foreground));
}

#checkout .checkout-coupon input::placeholder {
  color: rgb(var(--muted-foreground));
}

#checkout .checkout-coupon__btn {
  flex-shrink: 0;
  width: auto;
  height: 2rem;
  padding-inline: 0.65rem;
  font-size: 0.7rem;
}

#checkout #phone-field-wrapper {
  position: relative;
  z-index: 2;
}

#checkout #phone-field-wrapper .flex {
  align-items: center;
  gap: 0;
  border: 1px solid var(--checkout-card-border);
  border-radius: 0.4rem;
  background: var(--checkout-surface);
  overflow: visible;
}

#checkout #phone-field-wrapper .flex > .relative {
  position: relative;
  z-index: 3;
  border-right: 1px solid var(--checkout-card-border);
}

#checkout #phone-field-wrapper .flex > .relative > #phone-country-button {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.25rem;
  padding-inline: 0.65rem;
  border: none !important;
  border-radius: 0 !important;
  border-top-left-radius: 0.4rem !important;
  border-bottom-left-radius: 0.4rem !important;
  background: transparent !important;
  cursor: pointer;
}

#checkout .phone-country-trigger__flag,
#checkout .phone-country-option__flag {
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
}

#checkout .phone-country-trigger__dial {
  flex-shrink: 0;
  min-width: 1.75rem;
}

#checkout .phone-country-trigger__chevron {
  flex-shrink: 0;
  margin-left: 0.1rem;
}

#checkout #phone-country-menu {
  z-index: 40;
  top: calc(100% + 0.2rem) !important;
  bottom: auto !important;
  transform-origin: top left !important;
  width: 11rem;
}

#checkout .phone-country-option {
  display: grid !important;
  grid-template-columns: 1.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  column-gap: 0.55rem;
}

#checkout .phone-country-option__name {
  min-width: 0;
  padding-right: 0.2rem;
}

#checkout .phone-country-option__dial {
  flex-shrink: 0;
  min-width: 2rem;
  text-align: right;
  color: rgb(var(--muted-foreground));
  white-space: nowrap;
}

#checkout #phone-field-wrapper .flex input[name="client_phone"] {
  border: none !important;
  border-radius: 0 !important;
  border-top-right-radius: 0.4rem !important;
  border-bottom-right-radius: 0.4rem !important;
  background: transparent !important;
  box-shadow: none !important;
}

#checkout #phone-field-wrapper .flex input[name="client_phone"]:focus-visible {
  box-shadow: none !important;
}

#checkout .checkout-coupon__error {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #fca5a5;
}

#checkout .checkout-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.95rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--checkout-card-border);
  font-size: 1rem;
  font-weight: 700;
  color: rgb(var(--foreground));
}

#checkout .checkout-total-row__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

#checkout .checkout-off-badge {
  display: inline-flex;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.25rem;
  border-radius: 999px;
  background: rgba(67, 219, 127, 0.12);
  color: #43db7f;
  border: 1px solid rgba(67, 219, 127, 0.28);
}

#checkout .checkout-off-badge.hidden {
  display: none;
}

#checkout .checkout-empty {
  padding: 1.25rem 0.4rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgb(var(--muted-foreground));
}

@media (max-width: 899px) {
  #checkout.checkout-page {
    max-width: min(95vw, 60rem);
  }

  #checkout .checkout-split {
    display: flex;
    flex-direction: column;
  }

  #checkout .checkout-form-col {
    border-right: none;
  }

  #checkout .checkout-cart-col {
    display: flex;
    flex-direction: column;
  }

  #checkout .checkout-cart-col .checkout-upsell-section {
    order: -1;
    margin-top: 0;
    margin-bottom: 0.85rem;
  }

  #checkout .checkout-step__label {
    font-size: 0.75rem;
  }
}

#checkout .text-sm {
  font-size: 0.85rem !important;
}

#checkout .text-base {
  font-size: 0.9rem !important;
}

/* Payment page (same shell as checkout) */
#checkout .payment-panel {
  position: relative;
  padding: 0.95rem;
  border: 1px solid var(--checkout-card-border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

#checkout .payment-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: hsl(var(--primary) / 0.12);
  overflow: hidden;
}

#checkout .payment-progress__bar {
  position: absolute;
  inset-block: 0;
  width: 25%;
  background: hsl(var(--primary));
  animation: payment-loading 2s ease-in-out infinite;
}

@keyframes payment-loading {
  0% { left: -25%; }
  100% { left: 100%; }
}

#checkout .payment-subtitle {
  margin: 0 0 0.95rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgb(var(--muted-foreground));
}

#checkout .payment-qr-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

#checkout .payment-qr {
  width: min(100%, 11rem);
  height: auto;
  aspect-ratio: 1;
  padding: 0.25rem;
  border-radius: 0.45rem;
  background: #fff;
}

#checkout .payment-copy {
  border-top: 1px solid var(--checkout-card-border);
  padding-top: 0.95rem;
}

#checkout .payment-copy__label {
  margin: 0 0 0.55rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgb(var(--muted-foreground));
}

#checkout .payment-copy__row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

#checkout .payment-copy__input {
  flex: 1;
  min-width: 0;
  height: 2rem;
  padding-inline: 0.7rem;
  font-size: 0.7rem;
  border-radius: 0.4rem;
  border: 1px solid var(--checkout-card-border);
  background: var(--checkout-surface);
  color: rgb(var(--foreground));
}

#checkout .payment-copy__btn {
  flex-shrink: 0;
  width: auto;
  height: 2rem;
  padding-inline: 0.75rem;
  gap: 0.25rem;
  font-size: 0.7rem;
}

#checkout .payment-go-order {
  margin-top: 0.95rem;
}

#checkout .payment-go-order__hint {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgb(var(--muted-foreground));
}

#checkout .payment-item-qty {
  font-size: 0.75rem;
  color: rgb(var(--muted-foreground));
}

#checkout .payment-instructions__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

#checkout .payment-instructions__item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: rgb(var(--muted-foreground));
}

#checkout .payment-instructions__item i {
  color: hsl(var(--primary));
  margin-top: 0.1rem;
}

/* Order page (same shell as checkout) */
#checkout .order-details-panel {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: 0.75rem;
  border: 1px solid var(--checkout-card-border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
}

#checkout .order-status {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--checkout-card-border);
}

#checkout .order-status__label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgb(var(--foreground));
}

#checkout .order-status__date {
  margin: 0.15rem 0 0;
  font-size: 0.7rem;
  color: rgb(var(--muted-foreground));
}

#checkout .order-status--pending i { color: #facc15; }
#checkout .order-status--approved i { color: #43db7f; }
#checkout .order-status--rejected i { color: #f87171; }
#checkout .order-status--refunded i { color: #facc15; }
#checkout .order-status--chargedback i { color: #c084fc; }

#checkout .order-details-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--checkout-card-border);
}

#checkout .order-details-group:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

#checkout .checkout-cart-col input[readonly] {
  height: 2.25rem;
  padding-inline: 0.7rem;
  font-size: 0.75rem;
  border-radius: 0.4rem;
  background: var(--checkout-surface);
  border: 1px solid var(--checkout-card-border);
  color: rgb(var(--foreground));
  opacity: 0.85;
  cursor: default;
}

#checkout .order-details-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.2rem;
}

#checkout .order-details-summary__label {
  display: block;
  font-size: 0.7rem;
  color: rgb(var(--muted-foreground));
}

#checkout .order-details-summary__value {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgb(var(--foreground));
}

#checkout .order-details-summary__value--total {
  font-size: 1rem;
}

#checkout .order-delivery-badge {
  flex-shrink: 0;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 600;
  color: #43db7f;
  background: rgba(67, 219, 127, 0.1);
  border: 1px solid rgba(67, 219, 127, 0.28);
}

#checkout .order-redeem-btn {
  width: auto;
  height: 1.5rem;
  padding-inline: 0.65rem;
  font-size: 0.65rem;
}

.order-redeem-guide {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.22);
}

.order-redeem-guide__mobile-alert {
  display: none;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 0.9rem;
  padding: 0.75rem 0.8rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  font-size: 0.85rem;
  line-height: 1.45;
}

.order-redeem-guide__mobile-alert p {
  margin: 0;
}

.order-redeem-guide__mobile-alert strong {
  color: #fde68a;
}

.order-redeem-guide__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgb(var(--foreground));
}

.order-redeem-guide__text {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgb(var(--muted-foreground));
}

.order-redeem-guide__media {
  margin: 0 0 0.95rem;
  overflow: hidden;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
}

.order-redeem-guide__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.order-redeem-guide__steps {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgb(var(--foreground));
}

.order-redeem-guide__steps li + li {
  margin-top: 0.3rem;
}

.order-redeem-guide__steps-break {
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.order-redeem-guide__steps code {
  font-size: 0.85rem;
  padding: 0.05rem 0.3rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.06);
}

.order-redeem-guide__btn {
  width: 100%;
  min-height: 2.75rem;
}

.order-license-group {
  max-width: 100%;
  overflow-x: clip;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.18);
}

.order-license-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.order-license-group__label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgb(var(--muted-foreground));
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.order-license-group__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  max-width: 100%;
}

.order-license-group__list {
  max-width: 100%;
  overflow: hidden;
}

.order-license-group__row {
  max-width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.order-license-group__row:first-child {
  border-top: 0;
}

.order-license-group__row .license-key {
  min-width: 0;
  max-width: 100%;
  flex: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .order-redeem-guide {
    padding: 0.9rem;
  }

  .order-redeem-guide__mobile-alert {
    display: flex;
  }

  .order-redeem-guide__btn {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.35);
  }

  .order-license-group__head {
    flex-wrap: wrap;
  }

  .order-license-group__actions {
    width: 100%;
  }

  .order-license-group__actions .btn-secondary[data-action="copy-all-keys"] {
    flex: 1;
  }
}

#checkout .order-panel {
  padding: 0.75rem;
  border: 1px solid var(--checkout-card-border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

#checkout .order-feedback-wrap .border {
  border-color: var(--checkout-card-border) !important;
  background: rgba(0, 0, 0, 0.18) !important;
}

#checkout .order-feedback-wrap h2 {
  font-size: 0.85rem;
  font-weight: 700;
}
