/* Checkout — ported from bliss-forge-logic design */
* { box-sizing: border-box; }
.bf {
  margin: 0;
  min-height: 100vh;
  background: #f7f8fc;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.6; color: #0d1526;
}

/* Trust marquee */
.bf-trust { background: #0d1f38; color: #93afd4; font-size: 12px; font-weight: 500; padding: 8px 0; overflow: hidden; white-space: nowrap; }
.bf-trust-track { display: inline-flex; animation: bf-scroll 20s linear infinite; }
.bf-trust-track:hover { animation-play-state: paused; }
.bf-trust-inner { display: inline-flex; align-items: center; padding-right: 60px; }
.bf-trust-item { margin-right: 40px; display: inline-flex; align-items: center; gap: 5px; }
.bf-trust-item .dot { width: 5px; height: 5px; border-radius: 50%; background: #4ade80; display: inline-block; }
@keyframes bf-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Header */
.bf-header { background: #fff; border-bottom: 1px solid #dde1ed; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; animation: bf-slide .5s ease-out forwards; }
@keyframes bf-slide { 0% { opacity: 0; transform: translateY(-100%); } 100% { opacity: 1; transform: translateY(0); } }
.bf-store { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; color: #0d1f38; }
.bf-secure { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #0c9a5d; background: #e6f7ef; padding: 5px 12px; border-radius: 20px; }

/* Steps */
.bf-steps { background: #fff; border-bottom: 1px solid #dde1ed; padding: 12px 28px; display: flex; align-items: center; justify-content: center; }
.bf-step { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: #bcc3d6; }
.bf-step.done { color: #0c9a5d; }
.bf-step.active { color: #1a66a6; }
.bf-step-dot { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: #eef0f6; color: #bcc3d6; }
.bf-step.done .bf-step-dot { background: #0c9a5d; color: #fff; }
.bf-step.active .bf-step-dot { background: #1a66a6; color: #fff; }
.bf-step-line { width: 40px; height: 2px; background: #dde1ed; margin: 0 6px; }
.bf-step-line.active { background: #0c9a5d; }

/* Grid */
.bf-grid { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1fr 390px; gap: 28px; align-items: start; padding: 28px 24px 60px; }
.bf-left { display: flex; flex-direction: column; gap: 18px; }
.bf-left form { display: flex; flex-direction: column; gap: 18px; }

/* Cards */
.bf-card { background: #fff; border: 1px solid #dde1ed; border-radius: 14px; padding: 22px; box-shadow: 0 1px 4px rgba(13,31,56,.08), 0 2px 8px rgba(13,31,56,.05); }
.bf-card-head { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 700; color: #0d1f38; margin-bottom: 18px; }
.bf-ico { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.bf-ico.blue { background: #e8f2fb; }
.bf-ico.green { background: #e6f7ef; }

/* Fields */
.bf-field { margin-bottom: 12px; position: relative; }
.bf-field label { display: block; font-size: 12px; font-weight: 600; color: #7a85a0; letter-spacing: .03em; text-transform: uppercase; margin-bottom: 5px; }
.bf-field label .opt { text-transform: none; font-weight: 400; color: #bcc3d6; }
.bf-field input, .bf-select-wrap select {
  width: 100%; border: 1.5px solid #dde1ed; border-radius: 9px; padding: 11px 14px;
  font-size: 14.5px; font-family: inherit; background: #fff; color: #0d1526; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.bf-field input:focus, .bf-select-wrap select:focus { border-color: #1a66a6; box-shadow: 0 0 0 3px rgba(26,102,166,.13); }
.bf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bf-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.bf-select-wrap { position: relative; }
.bf-select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 36px; }
.bf-chev { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #7a85a0; pointer-events: none; font-size: 12px; }

.bf-input-ico { position: relative; }
.bf-input-ico input { padding-right: 40px; }
.bf-search { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: #bcc3d6; pointer-events: none; }

.bf-instock { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #0c9a5d; font-weight: 600; }

/* Autocomplete dropdown */
.bf-geo { position: absolute; z-index: 1000; top: 100%; left: 0; right: 0; background: #fff; border: 1.5px solid #dde1ed; border-radius: 9px; box-shadow: 0 4px 16px rgba(0,0,0,.10); margin: 4px 0 0; padding: 4px 0; list-style: none; max-height: 220px; overflow-y: auto; }
.bf-geo li { padding: 9px 14px; font-size: 13.5px; color: #0d1526; cursor: pointer; }
.bf-geo li:hover { background: #f4f7fc; }

/* Shipping method */
.bf-ship-option { border: 1.5px solid #1a66a6; border-radius: 10px; padding: 13px 15px; display: flex; align-items: center; gap: 11px; background: #e8f2fb; }
.bf-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #1a66a6; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bf-radio span { width: 8px; height: 8px; border-radius: 50%; background: #1a66a6; }
.bf-ship-title { font-size: 13.5px; font-weight: 600; color: #0d1f38; }
.bf-ship-desc { font-size: 12px; color: #7a85a0; }
.bf-free { margin-left: auto; background: #e6f7ef; color: #0c9a5d; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }

/* Payment */
.bf-secure-line { font-size: 13px; color: #7a85a0; margin: 0 0 10px; }
.bf-loading { padding: 16px 0; text-align: center; font-size: 14px; color: #7a85a0; }
.bf-loading:empty { display: none; padding: 0; }
#whop-embed { min-height: 0; }
#whop-embed iframe { display: block; }
.bf-powered { text-align: center; font-size: 12px; color: #bcc3d6; }

/* Order summary (right) */
.bf-summary { background: #fff; border: 1px solid #dde1ed; border-radius: 14px; padding: 22px; box-shadow: 0 1px 4px rgba(13,31,56,.08), 0 2px 8px rgba(13,31,56,.05); position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.bf-sum-item { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #eef0f6; }
.bf-sum-thumb { position: relative; width: 58px; height: 58px; border-radius: 10px; background: #eef0f6; border: 1px solid #dde1ed; overflow: hidden; flex-shrink: 0; }
.bf-sum-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bf-sum-info { flex: 1; }
.bf-sum-name { font-size: 13.5px; font-weight: 700; color: #0d1f38; line-height: 1.4; }
.bf-sum-qty { display: inline-block; background: #eef0f6; color: #7a85a0; font-size: 11.5px; padding: 2px 8px; border-radius: 20px; margin-top: 4px; }
.bf-sum-price { font-size: 15px; font-weight: 700; color: #0d1f38; flex-shrink: 0; }
.bf-promo { display: flex; gap: 8px; }
.bf-promo input { flex: 1; border: 1.5px solid #dde1ed; border-radius: 9px; padding: 10px 13px; font-size: 13.5px; font-family: inherit; outline: none; }
.bf-promo button { background: #0d1f38; color: #fff; border: none; border-radius: 9px; padding: 10px 18px; font-size: 13.5px; font-weight: 700; font-family: inherit; cursor: pointer; }
.bf-totals { display: flex; flex-direction: column; gap: 9px; }
.bf-total-row { display: flex; justify-content: space-between; font-size: 14px; }
.bf-total-row .lbl { color: #7a85a0; }
.bf-total-row .val { font-weight: 600; }
.bf-total-row .free { color: #0c9a5d; }
.bf-grand { display: flex; justify-content: space-between; align-items: center; border-top: 2px solid #dde1ed; padding-top: 12px; margin-top: 4px; font-size: 18px; font-weight: 700; color: #0d1f38; }

/* Mobile summary toggle */
.bf-mobile-toggle { background: #1a66a6; color: #fff; padding: 0 20px; cursor: pointer; user-select: none; position: sticky; top: 0; z-index: 100; display: none; }
.bf-mobile-toggle-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.bf-mobile-left { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.bf-cart-ico { position: relative; font-size: 18px; }
.bf-cart-num { position: absolute; top: -6px; right: -8px; background: #ef4444; color: #fff; font-size: 9px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.bf-chevron { font-size: 18px; display: inline-block; transition: transform .3s; }
.bf-chevron.open { transform: rotate(180deg); }
.bf-mobile-total { font-size: 16px; font-weight: 700; }
.bf-mobile-panel { background: #fff; border-bottom: 3px solid #1a66a6; padding: 20px; }

@media (max-width: 900px) {
  .bf-grid { grid-template-columns: 1fr; padding: 16px 16px 60px; }
  .bf-right { display: none; }
  .bf-mobile-toggle { display: block; }
}
@media (max-width: 500px) {
  .bf-step-label { display: none; }
  .bf-store { font-size: 17px; }
}
