/* Checkout design "Vivori" — Shopify-style split checkout.
   White form column left, pale blue-gray order summary right, centered logo. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
.vv {
  min-height: 100vh;
  background: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px; line-height: 1.5; color: #1a1a1a;
}
/* Full-height split: the right half of the viewport is the summary color. */
@media (min-width: 901px) {
  .vv::before {
    content: ""; position: fixed; top: 0; bottom: 0; right: 0; left: 50%;
    background: #e8edf3; border-left: 1px solid #d9dfe7; z-index: -1;
  }
}

/* Layout: two viewport halves, content hugging the center line. */
.vv-grid { display: flex; min-height: 100vh; align-items: stretch; }
.vv-left { width: 50%; display: flex; justify-content: flex-end; }
.vv-inner { width: 100%; max-width: 580px; padding: 36px 44px 48px; display: flex; flex-direction: column; }
.vv-right { width: 50%; }
.vv-rinner { max-width: 480px; padding: 40px 44px; position: sticky; top: 0; }

.vv-logo {
  text-align: center; font-size: 26px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: #111; margin-bottom: 28px;
}

/* Sections */
.vv-section { margin-bottom: 26px; }
.vv-section h2 { font-size: 17px; font-weight: 600; color: #1a1a1a; margin: 0 0 12px; }
.vv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Fields */
.vv-field { margin-bottom: 12px; position: relative; }
.vv-field input, .vv-selbox select {
  width: 100%; border: 1px solid #d9dee6; border-radius: 8px; padding: 13px 12px;
  font-size: 14px; font-family: inherit; background: #fff; color: #1a1a1a; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.vv-field input::placeholder { color: #8b939e; }
.vv-field input:focus, .vv-selbox select:focus {
  border-color: #2563eb; box-shadow: 0 0 0 1px #2563eb;
}
.vv-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vv-row2 .vv-field { margin-bottom: 12px; }

/* Country select with a small inset label (Shopify style) */
.vv-selbox { position: relative; }
.vv-selbox select {
  appearance: none; -webkit-appearance: none; padding: 21px 34px 6px 12px; height: 52px;
}
.vv-selbox.plain select { padding: 13px 34px 13px 12px; height: auto; }
.vv-inlbl {
  position: absolute; top: 7px; left: 13px; font-size: 11px; color: #6b7280; pointer-events: none;
}
.vv-chev {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: #6b7280; pointer-events: none; font-size: 12px;
}

/* Address autocomplete dropdown */
.bf-geo {
  position: absolute; z-index: 1000; top: 100%; left: 0; right: 0; background: #fff;
  border: 1px solid #d9dee6; border-radius: 8px; box-shadow: 0 6px 20px 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: 10px 13px; font-size: 13.5px; color: #1a1a1a; cursor: pointer; }
.bf-geo li:hover { background: #f2f6fd; }

/* Shipping method */
.vv-ship {
  border: 2px solid #2563eb; background: #eff4fe; border-radius: 8px;
  padding: 14px 14px; display: flex; align-items: center; gap: 11px;
}
.vv-radio {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid #2563eb;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #fff;
}
.vv-radio span { width: 8px; height: 8px; border-radius: 50%; background: #2563eb; }
.vv-ship-title { font-size: 14px; font-weight: 500; color: #1a1a1a; }
.vv-ship-desc { font-size: 12.5px; color: #6b7280; }
.vv-ship-free { margin-left: auto; font-size: 13.5px; font-weight: 700; color: #1a1a1a; }

/* Payment */
.vv-secure-line { font-size: 13px; color: #6b7280; margin: 0 0 12px; }
.vv-loading { padding: 14px 0; font-size: 14px; color: #6b7280; }
.vv-loading:empty { display: none; padding: 0; }
#whop-embed iframe { display: block; }
.vv-pay-btn {
  display: none; margin-top: 16px; width: 100%; background: #2563eb; color: #fff;
  border: none; border-radius: 8px; padding: 15px; font-size: 15px; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: background .15s;
}
.vv-pay-btn:hover { background: #1d4fd7; }
.vv-pay-btn:disabled { opacity: .6; cursor: default; }
.vv-error { color: #b91c1c; font-size: 13.5px; margin-top: 10px; }

/* Footer badges */
.vv-foot { border-top: 1px solid #e5e8ee; margin-top: 10px; padding-top: 20px; text-align: center; }
.vv-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 12px; }
.vv-badge {
  border: 1px solid #d9dee6; border-radius: 5px; padding: 3px 9px;
  font-size: 11px; font-weight: 600; color: #4b5563; background: #fff;
}
.vv-powered { font-size: 12px; color: #9aa2ad; }

/* ── Order summary (right) ── */
.vv-sumhead { font-size: 18px; font-weight: 600; color: #1a1a1a; margin-bottom: 18px; }
.bf-summary { display: flex; flex-direction: column; gap: 14px; }
.bf-sum-item { display: flex; align-items: center; gap: 12px; }
.bf-sum-thumb {
  width: 62px; height: 62px; border-radius: 8px; background: #fff;
  border: 1px solid #d9dfe7; overflow: hidden; flex-shrink: 0;
}
.bf-sum-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bf-sum-info { flex: 1; min-width: 0; }
.bf-sum-name { font-size: 13.5px; font-weight: 500; color: #1a1a1a; line-height: 1.4; }
.bf-sum-qty { font-size: 12px; color: #6b7280; margin-top: 2px; }
.bf-sum-price { font-size: 14px; font-weight: 600; color: #1a1a1a; flex-shrink: 0; }

.bf-promo { display: flex; gap: 8px; margin-top: 4px; }
.bf-promo input {
  flex: 1; border: 1px solid #d9dee6; border-radius: 8px; padding: 11px 12px;
  font-size: 13.5px; font-family: inherit; outline: none; background: #fff;
}
.bf-promo button {
  background: #dfe5ec; color: #4b5563; border: none; border-radius: 8px; padding: 11px 18px;
  font-size: 13.5px; font-weight: 600; font-family: inherit; cursor: pointer;
}

.bf-totals { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.bf-total-row { display: flex; justify-content: space-between; font-size: 14px; }
.bf-total-row .lbl { color: #4b5563; }
.bf-total-row .val { font-weight: 500; }
.bf-total-row .free { font-weight: 600; }
.bf-grand {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; margin-top: 6px; border-top: 1px solid #d9dfe7;
  font-size: 19px; font-weight: 700; color: #1a1a1a;
}

/* ── Mobile summary toggle ── */
.vv-mobile-toggle {
  display: none; background: #e8edf3; border-bottom: 1px solid #d9dfe7;
  padding: 0 18px; cursor: pointer; user-select: none; position: sticky; top: 0; z-index: 100;
}
.vv-mobile-inner { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; }
.vv-mobile-left { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: #2563eb; }
.vv-cart-num {
  background: #2563eb; color: #fff; font-size: 10px; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 9px; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 4px;
}
.vv-chevron { font-size: 14px; display: inline-block; transition: transform .3s; }
.vv-chevron.open { transform: rotate(180deg); }
.vv-mobile-total { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.vv-mobile-panel { background: #f2f5f9; border-bottom: 1px solid #d9dfe7; padding: 18px; }

@media (max-width: 900px) {
  .vv-grid { flex-direction: column; }
  .vv-left { width: 100%; justify-content: center; }
  .vv-inner { max-width: 640px; padding: 24px 18px 40px; }
  .vv-right { display: none; }
  .vv-mobile-toggle { display: block; }
  .vv-logo { font-size: 21px; margin-bottom: 20px; }
}
