/* =========================================================
   Aquabottle Việt Nam – Order & Checkout Page Styles
   ========================================================= */

.order-page {
  background-color: #f5f0e6;
  min-height: 100vh;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--cta);
}
.breadcrumb span {
  margin: 0 8px;
  color: #a0aec0;
}
.breadcrumb .current {
  color: var(--primary);
  font-weight: 600;
}

/* Page Header & Progress Steps */
.order-header {
  padding: 10px 0 28px;
  text-align: center;
}
.order-header h1 {
  font-size: clamp(24px, 4vw, 34px);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 8px;
}
.order-header p {
  color: var(--muted);
  font-size: 15px;
}

.checkout-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.step-item.is-active {
  color: var(--primary);
}
.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.step-item.is-active .step-num {
  background: var(--primary);
  color: var(--white);
}
.step-item.is-done .step-num {
  background: #0f766e;
  color: var(--white);
}
.step-divider {
  width: 32px;
  height: 2px;
  background: #e2e8f0;
}

/* Main Checkout Layout */
.checkout-layout {
  display: block;
  max-width: 740px;
  margin: 0 auto;
  padding-bottom: 64px;
}

@media (min-width: 1024px) {
  .checkout-layout {
    display: block;
    max-width: 740px;
    margin: 0 auto;
  }
}

@media (min-width: 880px) and (max-width: 1023px) {
  .checkout-layout {
    display: block;
    max-width: 740px;
    margin: 0 auto;
  }
}

@media (max-width: 879px) {
  .checkout-layout {
    display: block;
    max-width: 100%;
    margin: 0 auto;
  }
}

/* Card Section */
.checkout-card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid #e5ebe7;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(23, 33, 30, 0.04);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.checkout-card:hover {
  border-color: #d1ded7;
  box-shadow: 0 8px 24px rgba(23, 33, 30, 0.06);
}

.checkout-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2ef;
}
.checkout-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--tint);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

/* Option Groups & Radio Cards */
.variant-options {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.variant-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 2px solid #e5ebe7;
  border-radius: 14px;
  cursor: pointer;
  background: var(--white);
  transition: all 0.2s ease;
}
.variant-card:hover {
  border-color: #b5c7bf;
}
.variant-card.is-selected {
  border-color: var(--primary);
  background: #f4f8f6;
  box-shadow: 0 4px 12px rgba(31, 61, 52, 0.08);
}
.variant-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.variant-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.variant-thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  background: #edf2ee;
  border: 1px solid #e2e8f0;
}
.variant-details h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.variant-details p {
  font-size: 13px;
  color: var(--muted);
}
.variant-pricing {
  text-align: right;
}
.variant-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--cta);
}
.variant-old-price {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  display: block;
}
.variant-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--cta);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(242, 107, 58, 0.4);
}
.variant-badge--hot {
  background: #0f766e;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.3);
}

/* Color & Capacity Swatches */
.selector-group {
  margin-bottom: 20px;
}
.selector-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.selector-label .chosen-val {
  color: var(--cta);
  font-weight: 700;
}
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.color-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid #d9e2dd;
  border-radius: 999px;
  background: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.color-btn:hover {
  border-color: var(--primary);
}
.color-btn.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(31, 61, 52, 0.2);
}
.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
}
.color-dot--green {
  background-color: #2d5a4c;
}
.color-dot--gray {
  background-color: #8c979a;
}
.color-dot--black {
  background-color: #2b2b2b;
}
.color-dot--white {
  background-color: #f3f0e8;
}

.capacity-options {
  display: flex;
  gap: 12px;
}
.cap-btn {
  flex: 1;
  padding: 10px;
  border: 1.5px solid #d9e2dd;
  border-radius: 10px;
  background: var(--white);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.cap-btn:hover {
  border-color: var(--primary);
}
.cap-btn.is-active {
  border-color: var(--primary);
  background: #f0f6f3;
  font-weight: 700;
  color: var(--primary);
}
.cap-btn .cap-size {
  font-size: 15px;
  font-weight: 700;
  display: block;
}
.cap-btn .cap-note {
  font-size: 12px;
  color: var(--muted);
}

/* Quantity Row */
.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #edf2ef;
}
.qty-row-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #d5e2dc;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.qty:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 61, 52, 0.12);
}
.qty__btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7faf8;
  border: 0;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.1s;
  user-select: none;
}
.qty__btn:hover {
  background: #e9f2ed;
}
.qty__btn:active {
  background: #d6e8de;
  transform: scale(0.92);
}
.qty input {
  width: 48px;
  height: 42px;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  padding: 0;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Add-ons / Upsells */
.addons-list {
  display: grid;
  gap: 10px;
}
.addon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #fbfdfc;
  border: 1.5px dashed #d5e2dc;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.addon-item:hover {
  background: #f2f7f4;
  border-color: var(--primary);
}
.addon-item.is-checked {
  background: #f0f7f3;
  border-color: var(--primary);
  border-style: solid;
}
.addon-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.addon-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}
.addon-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.addon-desc {
  font-size: 12px;
  color: var(--muted);
}
.addon-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cta);
}

.laser-input-box {
  margin-top: 8px;
  padding-left: 30px;
  display: none;
}
.laser-input-box.is-visible {
  display: block;
}
.laser-input-box input {
  width: 100%;
  font-size: 14px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid #d6ddd9;
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  box-sizing: border-box;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.laser-input-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 61, 52, 0.12);
}

/* Form Fields & Shipping Address */
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 16px;
}

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

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid #d6ddd9;
  border-radius: 10px;
  font: 15px var(--font);
  color: var(--text);
  background: var(--white);
  box-sizing: border-box;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.field select {
  cursor: pointer;
  appearance: auto;
}

.field textarea {
  resize: vertical;
  min-height: 72px;
  font-family: inherit;
  line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 61, 52, 0.12);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #c62828;
  background-color: #fffaf9;
}

.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

.error {
  display: block;
  min-height: 0;
  color: #c62828;
  font-size: 13px;
  margin-top: 5px;
  line-height: 1.3;
}

.error:empty {
  display: none;
}

/* Payment Method Cards */
.payment-methods {
  display: grid;
  gap: 12px;
}
.payment-method-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1.5px solid #e2e9e5;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.payment-method-card:hover {
  border-color: #b8c9c0;
}
.payment-method-card.is-selected {
  border-color: var(--primary);
  background: #f4f8f6;
}
.payment-method-card input[type="radio"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
}
.payment-method-details h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.payment-method-details p {
  font-size: 13px;
  color: var(--muted);
}
.payment-method-badge {
  font-size: 11px;
  font-weight: 700;
  color: #0f766e;
  background: #e6f7f5;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
}

/* Bank QR Box */
.bank-transfer-info {
  margin-top: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid #d5e2dc;
  border-radius: 12px;
  display: none;
}
.bank-transfer-info.is-visible {
  display: block;
}
.bank-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.bank-qr-code {
  width: 140px;
  height: 140px;
  background: #edf2ee;
  border-radius: 8px;
  padding: 6px;
  border: 1px solid #cbd5e1;
}

.bank-acc-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #d9e5df;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  width: 100%;
  max-width: 340px;
  box-sizing: border-box;
}
.bank-acc-label {
  color: var(--muted);
  font-size: 12px;
}
.bank-acc-badge--copyable {
  background: #edf6f2;
  border-color: #b7dcce;
  cursor: pointer;
  transition: all 0.2s;
}
.bank-acc-badge--copyable:hover {
  background: #e1efe9;
  border-color: var(--primary);
}
.copy-badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.2s;
}
.copy-badge.is-copied {
  background: #059669;
}

/* Summary Payment Section (Inside Summary Card) */
.summary-payment-box {
  margin-top: 18px;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid #edf2ef;
}

.summary-payment-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 12px;
}

.summary-payment-box .payment-methods {
  display: grid;
  gap: 10px;
}

.summary-payment-box .payment-method-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid #e2e9e5;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}

.summary-payment-box .payment-method-card:hover {
  border-color: #b8c9c0;
}

.summary-payment-box .payment-method-card.is-selected {
  border-color: var(--primary);
  background: #f4f8f6;
}

.summary-payment-box .payment-method-card input[type="radio"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.summary-payment-box .payment-method-details h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.summary-payment-box .payment-method-details p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  margin: 0;
}

.summary-payment-box .payment-method-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #0f766e;
  background: #e6f7f5;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 2px;
}

.summary-payment-box .bank-transfer-info {
  margin-top: 10px;
  padding: 12px 14px;
  background: #f4f8f6;
  border: 1px solid #d1ded7;
  border-radius: 10px;
}

/* Order Summary Container */
.order-summary-sidebar {
  position: relative;
}

@media (min-width: 1024px) {
  .order-summary-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}

.summary-card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid #e0e9e4;
  box-shadow: 0 10px 30px rgba(23, 33, 30, 0.06);
  padding: 26px;
  overflow: hidden;
}

.summary-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2ef;
}

.summary-product-preview {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf2ef;
}
.summary-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  background: #f8faf9;
}
.summary-prod-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.summary-prod-variant {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.summary-prod-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--cta);
  margin-top: 4px;
}

/* Shipping Address Inside Summary Card */
.summary-shipping-box {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf2ef;
}

.summary-shipping-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.summary-shipping-box .field label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}

.summary-shipping-box .field input,
.summary-shipping-box .field select,
.summary-shipping-box .field textarea {
  min-height: 44px;
  font-size: 14px;
  padding: 8px 12px;
}

/* Coupon Box */
.coupon-box {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf2ef;
}
.coupon-input-group {
  display: flex;
  gap: 8px;
}
.coupon-input-group input {
  flex: 1;
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid #d5e2dc;
  border-radius: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.coupon-input-group .btn {
  min-height: 44px;
  padding: 0 16px;
  font-size: 13px;
}
.coupon-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.coupon-tag-btn {
  background: #eef5f1;
  border: 1px dashed #0f766e;
  color: #0f766e;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.coupon-tag-btn:hover {
  background: #0f766e;
  color: #fff;
}
.coupon-msg {
  font-size: 12.5px;
  margin-top: 6px;
  display: none;
}
.coupon-msg.is-success {
  display: block;
  color: #0f766e;
  font-weight: 600;
}
.coupon-msg.is-error {
  display: block;
  color: #c62828;
}

/* Cost Breakdown */
.cost-breakdown {
  display: grid;
  gap: 12px;
  font-size: 14.5px;
  margin-bottom: 22px;
}
.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}
.cost-row.cost-discount {
  color: #0f766e;
  font-weight: 600;
}
.cost-row.cost-total {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  padding-top: 14px;
  border-top: 2px dashed #e2ece6;
  margin-top: 4px;
}
.cost-total .cost-total-num {
  font-size: 24px;
  color: var(--cta);
}

/* Trust Badges in Sidebar */
.trust-points {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #edf2ef;
  display: grid;
  gap: 10px;
}
.trust-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.trust-point-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Order Success Box (Displayed Directly Under Order Summary) */
.order-success-card {
  margin-top: 24px;
  background: var(--white);
  border-radius: 20px;
  border: 1.5px solid #d4ece1;
  padding: 28px 22px;
  box-shadow: 0 12px 36px rgba(16, 185, 129, 0.12);
  text-align: left;
  animation: successFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.confirm-header {
  text-align: center;
  margin-bottom: 20px;
}

.confirm-success-icon {
  width: 68px;
  height: 68px;
  background: #dff6ed;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 14px;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.2);
}

.confirm-title {
  font-size: 22px;
  font-weight: 800;
  color: #172b25;
  margin-bottom: 6px;
}

.confirm-sub {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 10px;
}

.order-id-badge {
  display: inline-block;
  background: #f1f6f4;
  color: #1b3b32;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.confirm-body {
  background: #fbfdfc;
  border: 1px solid #e7efe9;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
  font-size: 13.5px;
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #edf2ee;
  color: #334155;
  gap: 12px;
}

.confirm-row--total {
  border-bottom: none;
  font-weight: 700;
  color: var(--cta) !important;
  font-size: 16px;
  padding-top: 12px;
}

.confirm-row--total span:last-child {
  font-size: 18px;
  font-weight: 800;
  color: var(--cta);
}

.confirm-note {
  font-size: 12.5px;
  color: #64748b;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 12px;
}

.btn-action-invoice {
  flex: 1;
  min-height: 48px;
  border: 2px solid #13251f;
  background: #ffffff;
  color: #13251f;
  font-weight: 800;
  font-size: 14px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-action-invoice:hover {
  background: #f1f5f3;
}

.btn-action-home {
  flex: 1;
  min-height: 48px;
  border: none;
  background: #13251f;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-action-home:hover {
  background: #1f3d34;
  color: #ffffff;
}

/* Button placed state */
.btn--success-placed {
  background: #059669 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  cursor: default !important;
}

@media print {
  body * {
    visibility: hidden;
  }
  .order-success-card,
  .order-success-card * {
    visibility: visible;
  }
  .order-success-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    box-shadow: none;
  }
  .confirm-actions {
    display: none;
  }
}

/* =========================================================
   Auth Requirement Banners & Modals on Order Page
   ========================================================= */
.auth-required-banner {
  background: #fff8f0;
  border: 1.5px solid #fed7aa;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.08);
  animation: slideDownBanner 0.3s ease;
}

@keyframes slideDownBanner {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffedd5;
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.auth-banner-left strong {
  display: block;
  font-size: 15px;
  color: #9a3412;
  margin-bottom: 2px;
}

.auth-banner-left p {
  font-size: 13px;
  color: #7c2d12;
  margin: 0;
  line-height: 1.4;
}

.auth-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-sm {
  min-height: 38px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .auth-required-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .auth-banner-actions {
    width: 100%;
    margin-top: 8px;
  }
  .auth-banner-actions .btn {
    flex: 1;
  }
}

.auth-user-notice {
  margin-bottom: 24px;
}

.auth-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #edf5f1;
  border: 1px solid #b7dcce;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13.5px;
  color: var(--primary);
}

.auth-switch-user-link {
  font-size: 12.5px;
  color: var(--cta);
  text-decoration: underline;
  font-weight: 600;
}

.auth-switch-user-link:hover {
  color: #c2410c;
}

/* Auth required modal box */
.auth-req-modal-box {
  position: relative;
  max-width: 440px !important;
  padding: 32px 26px 24px !important;
  text-align: center;
}

.modal-close-corner {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: 0;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-close-corner:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.shipping-auth-hint {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.4;
}

.shipping-auth-hint a {
  color: #b45309;
  font-weight: 700;
  text-decoration: underline;
}

/* =========================================================
   Mobile Sticky Checkout Bar
   ========================================================= */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #e0eae4;
  box-shadow: 0 -6px 26px rgba(15, 35, 28, 0.1);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
}

.mobile-sticky-bar.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.mobile-sticky-bar__inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-sticky-bar__info {
  display: flex;
  flex-direction: column;
}

.mobile-sticky-bar__label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mobile-sticky-bar__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--cta);
  line-height: 1.2;
}

.mobile-sticky-bar__tag {
  font-size: 11px;
  color: #0f766e;
  font-weight: 700;
}

.mobile-sticky-bar__btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(242, 107, 58, 0.38);
}
.mobile-sticky-bar__btn:active {
  transform: scale(0.96);
}

/* =========================================================
   RESPONSIVE DESIGN SYSTEM (Desktop / Tablet / Mobile)
   ========================================================= */

/* 1. TABLET LANDSCAPE & MID SCREENS (880px - 1023px) */
@media (min-width: 880px) and (max-width: 1023px) {
  .checkout-card {
    padding: 20px;
    border-radius: 16px;
  }
  .summary-card {
    padding: 20px;
    border-radius: 16px;
  }
  .variant-details h4 {
    font-size: 14px;
  }
  .variant-details p {
    font-size: 12px;
  }
  .variant-price {
    font-size: 15px;
  }
}

/* 2. TABLET PORTRAIT (768px - 879px) */
@media (min-width: 768px) and (max-width: 879px) {
  .mobile-sticky-bar {
    display: block;
  }
  .checkout-card {
    padding: 22px;
  }
  .summary-card {
    padding: 22px;
  }
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* 3. MOBILE & SMALL TABLET (max-width: 767px) */
@media (max-width: 767px) {
  .mobile-sticky-bar {
    display: block;
  }

  .breadcrumb {
    padding: 10px 0 6px;
    font-size: 12.5px;
  }

  .order-header {
    padding: 8px 0 16px;
  }
  .order-header h1 {
    font-size: clamp(20px, 5.5vw, 25px);
    margin-bottom: 6px;
  }
  .order-header p {
    font-size: 13px;
  }

  /* Steps - Smooth 1-row fit without wrapping */
  .checkout-steps {
    gap: 6px;
    margin-top: 14px;
  }
  .step-item {
    font-size: 11.5px;
    gap: 5px;
  }
  .step-num {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  .step-divider {
    width: 14px;
  }

  /* Cards - Compact 16px padding */
  .checkout-card {
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 16px;
  }
  .checkout-card__title {
    font-size: 16px;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }
  .checkout-card__icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
    border-radius: 7px;
  }

  /* Variant Cards - Refined touch and badges */
  .variant-options {
    gap: 10px;
  }
  .variant-card {
    padding: 12px;
    border-radius: 12px;
  }
  .variant-thumb {
    width: 46px;
    height: 46px;
    border-radius: 8px;
  }
  .variant-info {
    gap: 10px;
  }
  .variant-details h4 {
    font-size: 13.5px;
    margin-bottom: 2px;
  }
  .variant-details p {
    font-size: 11.5px;
    line-height: 1.35;
  }
  .variant-price {
    font-size: 14.5px;
  }
  .variant-old-price {
    font-size: 11.5px;
  }
  .variant-badge {
    top: -8px;
    right: 10px;
    font-size: 9.5px;
    padding: 2px 7px;
  }

  /* Swatches & capacity */
  .color-swatches {
    gap: 7px;
  }
  .color-btn {
    padding: 6px 11px;
    font-size: 12px;
    min-height: 38px;
    gap: 6px;
  }
  .capacity-options {
    gap: 8px;
  }
  .cap-btn {
    padding: 8px 6px;
    border-radius: 8px;
  }
  .cap-btn .cap-size {
    font-size: 13px;
  }
  .cap-btn .cap-note {
    font-size: 10.5px;
  }

  /* Quantity */
  .qty-row {
    padding-top: 12px;
  }
  .qty-row-label {
    font-size: 13.5px;
  }
  .qty__btn {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .qty input {
    width: 42px;
    height: 38px;
    font-size: 15px;
  }

  /* Addon Items */
  .addon-item {
    padding: 10px 12px;
    border-radius: 10px;
    align-items: flex-start;
  }
  .addon-left {
    gap: 10px;
    align-items: flex-start;
  }
  .addon-title {
    font-size: 13px;
    line-height: 1.35;
  }
  .addon-desc {
    font-size: 11.5px;
    margin-top: 2px;
    line-height: 1.35;
  }
  .addon-price {
    font-size: 13px;
    margin-top: 2px;
  }
  .laser-input-box {
    padding-left: 28px;
  }

  /* Inputs - 16px font-size to 100% prevent iOS Safari auto-zoom on focus */
  .field input,
  .field select,
  .field textarea {
    font-size: 16px !important;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 10px;
  }
  .field label {
    font-size: 13.5px;
    margin-bottom: 5px;
  }

  /* Summary Card */
  .summary-card {
    padding: 18px 16px;
    border-radius: 16px;
  }
  .summary-title {
    font-size: 17px;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }
  .summary-product-preview {
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
  }
  .summary-img {
    width: 62px;
    height: 62px;
    border-radius: 10px;
  }
  .summary-prod-name {
    font-size: 14px;
  }
  .summary-prod-variant {
    font-size: 12px;
  }
  .summary-prod-price {
    font-size: 14px;
  }

  /* Coupon input group */
  .coupon-input-group input {
    min-height: 42px;
    font-size: 13px;
  }
  .coupon-input-group .btn {
    min-height: 42px;
    padding: 0 14px;
    font-size: 12.5px;
  }

  /* Cost Breakdown */
  .cost-breakdown {
    font-size: 13.5px;
    gap: 10px;
    margin-bottom: 16px;
  }
  .cost-row.cost-total {
    font-size: 16px;
    padding-top: 12px;
  }
  .cost-total .cost-total-num {
    font-size: 21px;
  }

  /* Payment methods */
  .summary-payment-box .payment-method-card {
    padding: 10px 12px;
  }
  .bank-acc-badge {
    max-width: 100%;
  }

  /* Order Submit Button */
  #btnSubmitOrder {
    min-height: 50px;
    font-size: 15px;
    border-radius: 12px;
  }

  /* Order Success Card */
  .order-success-card {
    padding: 22px 16px;
    border-radius: 16px;
  }
  .confirm-success-icon {
    width: 54px;
    height: 54px;
    font-size: 24px;
  }
  .confirm-title {
    font-size: 18px;
  }
  .confirm-actions {
    flex-direction: column;
    gap: 10px;
  }
  .btn-action-invoice,
  .btn-action-home {
    min-height: 46px;
    width: 100%;
    font-size: 13.5px;
  }
}

/* 4. COMPACT MOBILE (max-width: 380px) */
@media (max-width: 380px) {
  .checkout-steps {
    gap: 4px;
  }
  .step-divider {
    width: 8px;
  }
  .step-item span:not(.step-num) {
    font-size: 10px;
  }
  .variant-card {
    padding: 10px 8px;
  }
  .variant-info {
    gap: 8px;
  }
  .variant-thumb {
    width: 40px;
    height: 40px;
  }
  .variant-details h4 {
    font-size: 12.5px;
  }
  .variant-price {
    font-size: 13.5px;
  }
  .mobile-sticky-bar__price {
    font-size: 16px;
  }
  .mobile-sticky-bar__btn {
    padding: 0 14px;
    font-size: 13px;
  }
}
