/* =========================================================
   BeHome / InHome — Checkout & Order System
   Cart · Address · Payment · Success · Order badges
   Uses design tokens from site-layout-system.css
   ========================================================= */

/* ----- Progress steps (max 3 visual) ----- */
.bh-checkout-steps {
  background: var(--bh-paper, #fff);
  border-bottom: 1px solid var(--bh-line, #D7ECF6);
  padding: 14px 0 12px;
}
.bh-checkout-steps__inner {
  max-width: var(--bh-container-wide, 1320px);
  margin: 0 auto;
  padding: 0 var(--bh-gutter, 20px);
}
.bh-checkout-steps__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.bh-checkout-steps__item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
  color: var(--bh-muted, #6B7280);
  font-size: 0.82rem;
  font-weight: 600;
}
.bh-checkout-steps__item:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--bh-line, #D7ECF6);
  margin: 0 10px;
  min-width: 24px;
}
.bh-checkout-steps__item.is-done:not(:last-child)::after,
.bh-checkout-steps__item.is-active:not(:last-child)::after {
  background: var(--bh-brand, #69C2E7);
}
.bh-checkout-steps__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bh-line, #D7ECF6);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.bh-checkout-steps__item.is-active .bh-checkout-steps__num {
  border-color: var(--bh-brand, #69C2E7);
  background: var(--bh-brand, #69C2E7);
  color: #fff;
}
.bh-checkout-steps__item.is-done .bh-checkout-steps__num {
  border-color: var(--bh-brand, #69C2E7);
  background: var(--bh-brand-soft, rgba(105, 194, 231, 0.08));
  color: var(--bh-brand, #69C2E7);
}
.bh-checkout-steps__item.is-active .bh-checkout-steps__label,
.bh-checkout-steps__item.is-done .bh-checkout-steps__label {
  color: var(--bh-ink, #1F2937);
}
@media (max-width: 575px) {
  .bh-checkout-steps__label { font-size: 0.72rem; }
  .bh-checkout-steps__num { width: 24px; height: 24px; font-size: 0.7rem; }
}

/* ----- Page shell ----- */
.bh-checkout-page {
  background: var(--bh-mist, #F8FCFE);
  padding: 24px 0 64px;
  min-height: 50vh;
}
.bh-checkout-page__inner {
  max-width: var(--bh-container-wide, 1320px);
  margin: 0 auto;
  padding: 0 var(--bh-gutter, 20px);
}
.bh-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 991px) {
  .bh-checkout-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ----- Panels ----- */
.bh-checkout-panel {
  background: var(--bh-paper, #fff);
  border: 1px solid var(--bh-line, #D7ECF6);
  border-radius: var(--bh-radius, 12px);
  box-shadow: var(--bh-shadow);
  padding: 22px 22px 18px;
  margin-bottom: 16px;
}
.bh-checkout-panel--compact {
  padding: 16px 20px;
}
.bh-checkout-panel__head {
  margin-bottom: 18px;
}
.bh-checkout-panel__head--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}
.bh-checkout-panel__title {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bh-ink, #1F2937);
  letter-spacing: -0.02em;
}
.bh-checkout-panel__title--sm {
  font-size: 1.05rem;
  margin-bottom: 2px;
}
.bh-checkout-panel__sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--bh-muted, #6B7280);
}
.bh-checkout-panel__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--bh-line, #D7ECF6);
}
.bh-checkout-panel__foot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.bh-link-edit {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bh-brand, #69C2E7) !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.bh-link-edit:hover { text-decoration: underline !important; }

/* ----- Cart list ----- */
.bh-cart-list__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.bh-cart-list__title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bh-ink, #1F2937);
}
.bh-cart-list__count {
  font-size: 0.9rem;
  color: var(--bh-muted, #6B7280);
  font-weight: 600;
}
.bh-cart-list__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bh-cart-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  background: var(--bh-paper, #fff);
  border: 1px solid var(--bh-line, #D7ECF6);
  border-radius: var(--bh-radius, 12px);
  box-shadow: var(--bh-shadow);
  padding: 16px;
}
.bh-cart-item__media {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: var(--bh-radius-sm, 8px);
  overflow: hidden;
  background: var(--bh-mist, #F8FCFE);
  flex-shrink: 0;
}
.bh-cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bh-cart-item__body { min-width: 0; }
.bh-cart-item__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.bh-cart-item__brand {
  margin: 0 0 2px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bh-muted, #6B7280);
}
.bh-cart-item__name {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}
.bh-cart-item__name a {
  color: var(--bh-ink, #1F2937) !important;
  text-decoration: none !important;
}
.bh-cart-item__name a:hover { color: var(--bh-brand, #69C2E7) !important; }
.bh-cart-item__variant {
  margin: 0 0 4px;
  font-size: 0.82rem;
  color: var(--bh-muted, #6B7280);
}
.bh-cart-item__stock {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.bh-cart-item__stock.is-in { color: #15803d; }
.bh-cart-item__stock.is-out { color: #b91c1c; }
.bh-cart-item__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.78rem;
  color: var(--bh-muted, #6B7280);
}
.bh-cart-item__meta i { margin-right: 2px; }
.bh-cart-item__price-block {
  text-align: right;
  flex-shrink: 0;
  min-width: 100px;
}
.bh-cart-item__price {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bh-ink, #1F2937);
}
.bh-cart-item__mrp {
  display: block;
  font-size: 0.8rem;
  color: var(--bh-muted, #6B7280);
  text-decoration: line-through;
}
.bh-cart-item__off {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #15803d;
  background: #ecfdf5;
  padding: 1px 6px;
  border-radius: 4px;
}
.bh-cart-item__tax {
  display: block;
  font-size: 0.75rem;
  color: var(--bh-muted, #6B7280);
}
.bh-cart-item__line {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bh-brand, #69C2E7);
}
.bh-cart-item__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--bh-line, #D7ECF6);
}
.bh-cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--bh-line, #D7ECF6);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.bh-cart-qty__btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: var(--bh-mist, #F8FCFE);
  color: var(--bh-ink, #1F2937);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bh-cart-qty__btn:hover { background: var(--bh-brand-soft, rgba(105, 194, 231, 0.08)); color: var(--bh-brand, #69C2E7); }
.bh-cart-qty__input {
  width: 44px;
  height: 34px;
  border: 0;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  -moz-appearance: textfield;
}
.bh-cart-qty__input::-webkit-outer-spin-button,
.bh-cart-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bh-cart-item__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.bh-cart-link {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bh-muted, #6B7280);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bh-cart-link:hover { color: var(--bh-brand, #69C2E7); }
.bh-cart-link--danger:hover { color: #b91c1c; }
.bh-cart-list__foot { margin-top: 16px; }
.bh-cart-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bh-muted, #6B7280) !important;
  text-decoration: none !important;
}
.bh-cart-back:hover { color: var(--bh-brand, #69C2E7) !important; }
.bh-cart-empty {
  text-align: center;
  padding: 64px 20px;
  background: #fff;
  border-radius: var(--bh-radius, 12px);
  border: 1px solid var(--bh-line, #D7ECF6);
}
.bh-cart-empty i {
  font-size: 3rem;
  color: var(--bh-muted, #6B7280);
  opacity: 0.5;
}
.bh-cart-empty h2 {
  margin: 12px 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
}
.bh-cart-empty p {
  color: var(--bh-muted, #6B7280);
  margin-bottom: 20px;
}
.bh-checkout-help {
  margin-top: 28px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--bh-muted, #6B7280);
}
.bh-checkout-help a {
  color: var(--bh-brand, #69C2E7) !important;
  font-weight: 600;
}

@media (max-width: 640px) {
  .bh-cart-item {
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 12px;
    gap: 12px;
  }
  .bh-cart-item__media { width: 88px; height: 88px; }
  .bh-cart-item__top { flex-direction: column; }
  .bh-cart-item__price-block { text-align: left; }
  .bh-cart-item__actions { flex-direction: column; align-items: flex-start; }
}

/* ----- Order summary sticky ----- */
.bh-order-summary {
  position: sticky;
  top: 88px;
}
.bh-order-summary__card {
  background: var(--bh-paper, #fff);
  border: 1px solid var(--bh-line, #D7ECF6);
  border-radius: var(--bh-radius, 12px);
  box-shadow: var(--bh-shadow);
  padding: 20px;
}
.bh-order-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bh-line, #D7ECF6);
}
.bh-order-summary__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.bh-order-summary__badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bh-brand-soft, rgba(105, 194, 231, 0.08));
  color: var(--bh-brand, #69C2E7);
  padding: 3px 8px;
  border-radius: 999px;
}
.bh-order-summary__rows { margin: 0; }
.bh-order-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 0.9rem;
}
.bh-order-summary__row dt {
  margin: 0;
  color: var(--bh-muted, #6B7280);
  font-weight: 500;
}
.bh-order-summary__row dd {
  margin: 0;
  font-weight: 600;
  color: var(--bh-ink, #1F2937);
  text-align: right;
}
.bh-order-summary__row--save dt,
.bh-order-summary__row--save dd { color: #15803d; }
.bh-order-summary__row--total {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--bh-line, #D7ECF6);
  font-size: 1.05rem;
}
.bh-order-summary__row--total dt,
.bh-order-summary__row--total dd {
  color: var(--bh-ink, #1F2937);
  font-weight: 700;
}
.bh-order-summary__coupon { margin-top: 14px; }
.bh-coupon-row {
  display: flex;
  gap: 8px;
}
.bh-coupon-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 1px solid var(--bh-line, #D7ECF6);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 0.9rem;
}
.bh-coupon-input:focus {
  outline: none;
  border-color: var(--bh-brand, #69C2E7);
  box-shadow: 0 0 0 3px var(--bh-brand-soft, rgba(105, 194, 231, 0.12));
}
.bh-coupon-apply {
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--bh-ink, #1F2937);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.bh-coupon-apply:hover { opacity: 0.9; }
.bh-coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: #ecfdf5;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #15803d;
}
.bh-coupon-remove {
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}
.bh-order-summary__cta { margin-top: 16px; }
.bh-order-summary__trust {
  list-style: none;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--bh-line, #D7ECF6);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--bh-muted, #6B7280);
}
.bh-order-summary__trust i {
  color: var(--bh-brand, #69C2E7);
  margin-right: 4px;
}
.bh-order-summary__pay-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.bh-pay-pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--bh-mist, #F8FCFE);
  border: 1px solid var(--bh-line, #D7ECF6);
  color: var(--bh-ink, #1F2937);
}

/* Mobile sticky summary CTA bar */
@media (max-width: 991px) {
  .bh-order-summary { position: static; }
  .bh-checkout-layout__aside {
    position: sticky;
    bottom: 0;
    z-index: 40;
    margin: 0 -4px;
  }
  .bh-order-summary__card {
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.1);
  }
  .bh-order-summary__trust,
  .bh-order-summary__pay-icons { display: none; }
}

/* ----- Address cards ----- */
.bh-address-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bh-address-card {
  display: block;
  cursor: pointer;
  margin: 0;
}
.bh-address-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.bh-address-card__body {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--bh-line, #D7ECF6);
  border-radius: var(--bh-radius, 12px);
  background: #fff;
  transition: border-color var(--bh-ease, 0.2s), box-shadow var(--bh-ease, 0.2s);
}
.bh-address-card:hover .bh-address-card__body {
  border-color: var(--bh-brand-border, rgba(105, 194, 231, 0.3));
}
.bh-address-card input:checked + .bh-address-card__body {
  border-color: var(--bh-brand, #69C2E7);
  box-shadow: 0 0 0 3px var(--bh-brand-soft, rgba(105, 194, 231, 0.12));
  background: var(--bh-blush, #faf6f7);
}
.bh-address-card__radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  margin-top: 3px;
  flex-shrink: 0;
  position: relative;
}
.bh-address-card input:checked + .bh-address-card__body .bh-address-card__radio {
  border-color: var(--bh-brand, #69C2E7);
}
.bh-address-card input:checked + .bh-address-card__body .bh-address-card__radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bh-brand, #69C2E7);
}
.bh-address-card__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.bh-address-card__default {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bh-brand, #69C2E7);
  background: var(--bh-brand-soft, rgba(105, 194, 231, 0.1));
  padding: 2px 8px;
  border-radius: 4px;
}
.bh-address-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bh-ink, #1F2937);
}
.bh-address-card__text {
  font-size: 0.9rem;
  color: var(--bh-ink, #1F2937);
  line-height: 1.45;
}
.bh-address-card__phone {
  font-size: 0.85rem;
  color: var(--bh-muted, #6B7280);
}
.bh-address-card__actions {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}
.bh-address-card__actions a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bh-brand, #69C2E7) !important;
  text-decoration: none !important;
}
.bh-address-card__actions a:last-child { color: #b91c1c !important; }
.bh-address-empty {
  text-align: center;
  padding: 32px 16px;
  border: 1px dashed var(--bh-line, #D7ECF6);
  border-radius: var(--bh-radius, 12px);
  color: var(--bh-muted, #6B7280);
}
.bh-address-empty i { font-size: 2rem; opacity: 0.5; }
.bh-address-form .form-group { margin-bottom: 12px; }
.bh-address-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bh-ink, #1F2937);
  margin-bottom: 4px;
}
.bh-address-modal .modal-header {
  border-bottom: 1px solid var(--bh-line, #D7ECF6);
}
.bh-address-modal .modal-footer {
  border-top: 1px solid var(--bh-line, #D7ECF6);
  gap: 8px;
}

/* ----- Payment methods ----- */
.bh-pay-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bh-pay-method {
  display: block;
  margin: 0;
  cursor: pointer;
}
.bh-pay-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.bh-pay-method__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--bh-line, #D7ECF6);
  border-radius: var(--bh-radius, 12px);
  background: #fff;
  transition: border-color var(--bh-ease, 0.2s), box-shadow var(--bh-ease, 0.2s);
}
.bh-pay-method:hover .bh-pay-method__card {
  border-color: var(--bh-brand-border, rgba(105, 194, 231, 0.3));
}
.bh-pay-method input:checked + .bh-pay-method__card {
  border-color: var(--bh-brand, #69C2E7);
  box-shadow: 0 0 0 3px var(--bh-brand-soft, rgba(105, 194, 231, 0.12));
  background: var(--bh-blush, #faf6f7);
}
.bh-pay-method__icon {
  width: 52px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bh-pay-method__icon img {
  max-height: 32px;
  max-width: 52px;
  object-fit: contain;
}
.bh-pay-method__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bh-pay-method__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bh-ink, #1F2937);
}
.bh-pay-method__desc {
  font-size: 0.8rem;
  color: var(--bh-muted, #6B7280);
}
.bh-pay-method__check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  position: relative;
}
.bh-pay-method input:checked + .bh-pay-method__card .bh-pay-method__check {
  border-color: var(--bh-brand, #69C2E7);
}
.bh-pay-method input:checked + .bh-pay-method__card .bh-pay-method__check::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bh-brand, #69C2E7);
}
.bh-pay-secure-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 14px;
  background: #f0fdf4;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #166534;
}
.bh-pay-secure-note i { font-size: 1.1rem; margin-top: 1px; }
.bh-pay-agree {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--bh-muted, #6B7280);
}
.bh-pay-agree a {
  color: var(--bh-brand, #69C2E7) !important;
  font-weight: 600;
}
.bh-btn--pay {
  min-width: 200px;
  font-size: 0.95rem;
  padding: 12px 20px;
}
.bh-btn--pay i { margin-right: 4px; }

/* Pay item rows */
.bh-pay-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bh-pay-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bh-pay-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bh-mist, #F8FCFE);
  flex-shrink: 0;
}
.bh-pay-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bh-pay-item__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bh-ink, #1F2937) !important;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bh-pay-item__var,
.bh-pay-item__qty {
  font-size: 0.78rem;
  color: var(--bh-muted, #6B7280);
}
.bh-pay-item__price {
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ----- Order success ----- */
.bh-order-success__inner { max-width: 900px; }
.bh-success-hero {
  text-align: center;
  background: #fff;
  border: 1px solid var(--bh-line, #D7ECF6);
  border-radius: var(--bh-radius, 12px);
  box-shadow: var(--bh-shadow);
  padding: 40px 24px 32px;
  margin-bottom: 20px;
}
.bh-success-hero__icon { margin-bottom: 12px; }
.bh-success-check__circle {
  stroke: #16a34a;
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: bh-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.bh-success-check__mark {
  stroke: #16a34a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: bh-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}
@keyframes bh-stroke {
  to { stroke-dashoffset: 0; }
}
.bh-success-hero__title {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bh-ink, #1F2937);
}
.bh-success-hero__sub {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--bh-muted, #6B7280);
}
.bh-success-hero__code { color: var(--bh-brand, #69C2E7); }
.bh-success-hero__meta {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--bh-muted, #6B7280);
}
.bh-success-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.bh-success-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 4px;
}
@media (max-width: 767px) {
  .bh-success-grid { grid-template-columns: 1fr; }
  .bh-success-hero__title { font-size: 1.3rem; }
}
.bh-success-facts {
  display: grid;
  gap: 12px;
  margin: 0;
}
.bh-success-facts > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bh-success-facts dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bh-muted, #6B7280);
}
.bh-success-facts dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bh-ink, #1F2937);
}
.bh-success-facts__total {
  color: var(--bh-brand, #69C2E7) !important;
  font-size: 1.1rem !important;
}
.bh-success-address {
  font-size: 0.92rem;
  color: var(--bh-ink, #1F2937);
  line-height: 1.5;
}
.bh-success-address p { margin: 0 0 2px; }
.bh-success-address__name { font-weight: 700; margin-bottom: 6px !important; }
.bh-success-address__phone {
  margin-top: 8px !important;
  color: var(--bh-muted, #6B7280);
}
.bh-success-totals {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--bh-line, #D7ECF6);
  max-width: 320px;
  margin-left: auto;
}

/* ----- Status badges ----- */
.bh-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  white-space: nowrap;
  background: #f1f5f9;
  color: #475569;
}
.bh-status-badge--pending { background: #fef3c7; color: #b45309; }
.bh-status-badge--confirmed,
.bh-status-badge--processing { background: #dbeafe; color: #1d4ed8; }
.bh-status-badge--packed,
.bh-status-badge--picked-up,
.bh-status-badge--ready-to-ship { background: #e0e7ff; color: #4338ca; }
.bh-status-badge--shipped,
.bh-status-badge--on-the-way,
.bh-status-badge--on-delivery,
.bh-status-badge--out-for-delivery { background: #cffafe; color: #0e7490; }
.bh-status-badge--delivered { background: #dcfce7; color: #15803d; }
.bh-status-badge--cancelled { background: #fee2e2; color: #b91c1c; }
.bh-status-badge--refunded,
.bh-status-badge--refund-initiated,
.bh-status-badge--refund-completed { background: #fce7f3; color: #be185d; }
.bh-status-badge--returned,
.bh-status-badge--exchange { background: #f3e8ff; color: #7e22ce; }
.bh-status-badge--paid { background: #dcfce7; color: #15803d; }
.bh-status-badge--unpaid { background: #fee2e2; color: #b91c1c; }

/* ----- Order timeline (user order details modal) ----- */
.bh-order-timeline {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 8px 4px 4px;
  gap: 0;
  overflow-x: auto;
}
.bh-order-timeline li {
  flex: 1;
  min-width: 72px;
  text-align: center;
  position: relative;
  color: var(--bh-muted, #6B7280);
  font-size: 0.72rem;
  font-weight: 600;
}
.bh-order-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 9px;
  left: calc(50% + 12px);
  right: calc(-50% + 12px);
  height: 2px;
  background: var(--bh-line, #D7ECF6);
  z-index: 0;
}
.bh-order-timeline li.is-done:not(:last-child)::after,
.bh-order-timeline li.is-active:not(:last-child)::after {
  background: var(--bh-brand, #69C2E7);
}
.bh-order-timeline__dot {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin: 0 auto 6px;
  border: 2px solid #cbd5e1;
  background: #fff;
  position: relative;
  z-index: 1;
}
.bh-order-timeline li.is-done .bh-order-timeline__dot {
  border-color: var(--bh-brand, #69C2E7);
  background: var(--bh-brand, #69C2E7);
  box-shadow: inset 0 0 0 3px #fff;
}
.bh-order-timeline li.is-active .bh-order-timeline__dot {
  border-color: var(--bh-brand, #69C2E7);
  background: var(--bh-brand, #69C2E7);
  box-shadow: 0 0 0 4px var(--bh-brand-soft, rgba(105, 194, 231, 0.2));
}
.bh-order-timeline li.is-done .bh-order-timeline__label,
.bh-order-timeline li.is-active .bh-order-timeline__label {
  color: var(--bh-ink, #1F2937);
}
.bh-order-timeline--cancelled {
  padding: 12px 16px;
  background: #fef2f2;
  border-radius: 8px;
}

/* ----- Buttons (if not already from premium layer) ----- */
.bh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
  line-height: 1.2;
}
.bh-btn:active { transform: translateY(1px); }
.bh-btn--primary {
  background: var(--bh-brand, #69C2E7);
  color: var(--bh-on-brand, #fff) !important;
  border-color: var(--bh-brand, #69C2E7);
}
.bh-btn--primary:hover {
  background: var(--bh-brand-hover, #4DB5DF);
  color: var(--bh-on-brand, #fff) !important;
  box-shadow: 0 6px 16px rgba(77, 181, 223, 0.35);
}
.bh-btn--secondary {
  background: #fff;
  color: var(--bh-ink, #1F2937) !important;
  border-color: var(--bh-line, #D7ECF6);
}
.bh-btn--secondary:hover {
  border-color: #cbd5e1;
  background: var(--bh-mist, #F8FCFE);
}
.bh-btn--block { width: 100%; }
.bh-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Orders table polish */
.bh-orders-card .card-header {
  background: #fff;
  border-bottom: 1px solid var(--bh-line, #D7ECF6);
}
.bh-orders-table td { vertical-align: middle; }

/* Cart recently viewed */
.bh-cart-rail {
  margin-top: 32px;
  padding-top: 8px;
}
.bh-cart-rail[hidden] { display: none !important; }
.bh-cart-rail .bh-product-rail__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--bh-ink, #1F2937);
}
