/* ==========================================================================
   EFLC Checkout – Consolidated Styles
   Single clean file version (merge of checkout/login/payment mocks)
   Notes:
   - Keep markup classnames the same as your mock pages.
   - Minimal bolding by default; reserve heavier weights for headings/CTAs.
   ========================================================================== */

:root{
  --bg:#f4f6f8;
  --card:#ffffff;
  --text:#111;
  --muted:#6b7280;
  --muted2:#666;
  --line:#e5e7eb;
  --border:#e6e6e6;

  --blue:#0b57d0;
  --blue2:#155ac7;
  --green:#137333;
  --red:#c40000;
  --yellow:#ffd400;

  --shadow:0 8px 24px rgba(0,0,0,.08);
  --shadow2:0 2px 6px rgba(0,0,0,.06);

  --radius:12px;
  --radius2:10px;
  --pad:18px;

  --max:1200px;

  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,Helvetica,sans-serif;

  /* Button tuning (subtle) */
  --btn-h:44px;
  --btn-radius:12px;
  --btn-border:#d1d5db;
  --btn-bg:#ffffff;
  --btn-text:#111;
  --btn-primary-bg:var(--blue);
  --btn-primary-text:#fff;

  /* Focus */
  --focus:#93c5fd;
  --focus-ring:0 0 0 4px rgba(59,130,246,.12);
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
}

/* ==========================================================================
   Header / Top bars (two variants used in mocks)
   ========================================================================== */

.header,
.hdr,
.topbar{
  background:#fff;
  border-bottom:1px solid var(--line);
}

.header-inner,
.hdr-inner,
.topbar .inner{
  max-width:var(--max);
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.header-inner img{height:44px;width:auto;display:block;}

.logo,
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.logo img{height:38px;width:auto;display:block;}
.brand img{height:34px;width:auto;display:block;}

.hdr-actions,
.secure,
.progress{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
}
.hdr-actions a{
  color:var(--blue);
  text-decoration:none;
  font-weight:600;
}
.hdr-actions a:hover{ text-decoration:underline; }

.lock{
  width:26px;height:26px;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;
  background:#eef2ff;color:#1d4ed8;
  border:1px solid #dbeafe;
  font-weight:700;
}

/* ==========================================================================
   Page containers / layout
   ========================================================================== */

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:18px 18px 34px;
}

/* Checkout layout (left content + right summary) */
.grid{
  display:grid;
  grid-template-columns: 1.65fr 1fr;
  gap:18px;
  align-items:start;
}

/* Login/guest split page */
.panel-grid{
  display: flex;
  justify-content: center;
  gap:32px;
  align-items:flex-start;
  margin:22px auto 0;
}
.or{
  align-self:center;
  color:#999;
  font-weight:600;
}

/* Responsive */
@media(max-width:980px){
  .grid{grid-template-columns:1fr;}
  .panel-grid{grid-template-columns:1fr;}
  .or{display:none;}  .hdr span {
      font-size: 8px;}
}

/* ==========================================================================
   Cards / Panels
   ========================================================================== */

.card,
.panel{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:20px!important;
}

.panel{
  padding:28px;
  box-shadow:var(--shadow2);
  border-color:var(--border);
}

.card + .card{margin-top:14px}

/* Card header/body (payment page mock) */
.card-h{
  padding:16px 18px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.card-b{ padding:16px 18px; }

.card-h h1, .card-h h2{
  margin:0;
  font-size:18px;
  letter-spacing:.1px;
  font-weight:650;
}

/* Titles (reduced bold usage) */
.page-title{
  font-size:22px;
  font-weight:650;
  margin:0 0 12px;
}
.panel h2{
  margin:0 0 6px;
  font-size:20px;
  font-weight:650;
}
.panel .sub{
  font-size:13px;
  color:var(--muted2);
  margin:0 0 18px;
  line-height:1.35;
}
.subtle{
  font-size:13px;
  color:var(--muted2);
  margin:0 0;
  line-height:1.35;
}
.h,
.section-title{
  font-size:13px;
  font-weight:650;
  letter-spacing:.2px;
  margin:0 0 10px;
  color:#111;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.label{font-size:13px;color:#444;margin-bottom:6px}

label{
  display:block;
  font-size:12.5px;
  color:#374151;
  margin:0 0 6px;
  font-weight:600;
}

/* Inputs used in older and newer mocks */
input, select, .field{
  width:100%;
  border:1px solid #d1d5db;
  border-radius:10px;
  padding:12px 12px;
  font-size:14px;
  outline:none;
  background:#fff;
  color:#111;
  margin:0;
}

input{ margin-bottom:0; border-radius:4px; border-color:#ccc; padding:12px; font-size:15px; }
select{ background:#fff; }

input:focus, select:focus, .field:focus{
  border-color:var(--focus) !important;
  box-shadow:var(--focus-ring) !important;
}

/* Form grid blocks */
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media(max-width:680px){
  .form-grid{grid-template-columns:1fr}
}

/* Payment page rows */
.row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.row3{
  display:grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap:14px;
}
@media(max-width:680px){
  .row, .row3{ grid-template-columns:1fr; }
}

/* Notes / disclaimers */
.note{
  font-size:12px;
  color:var(--muted2);
  margin:0 0 14px;
  line-height:1.4;
}
.note a,
.terms a,
.mini-link{
  color:var(--blue);
  text-decoration:none;
  font-weight:600;
}
.note a:hover,
.terms a:hover,
.mini-link:hover{ text-decoration:underline; }

.terms{
  color:var(--muted);
  font-size:12.5px;
  line-height:1.35;
  margin:0 0 12px;
}

/* Errors */
.err{
  margin-top:6px;
  font-size:12px;
  color:var(--red);
  display:flex;
  gap:6px;
  align-items:center;
}

/* Checkbox rows */
.chk{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size:12px;
  color:var(--muted);
  line-height:1.3;
}
.chk input{width:auto;margin-top:2px}

/* ==========================================================================
   Buttons (subtle defaults)
   ========================================================================== */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:var(--btn-radius);
  border:1px solid var(--btn-border);
  background:var(--btn-bg);
  color:var(--btn-text);
  padding:12px 14px;
  font-weight:650;
  cursor:pointer;
  text-decoration:none;
  height:var(--btn-h);
  min-width:190px;
  white-space:nowrap;
  transition:transform .08s ease, box-shadow .08s ease, border-color .08s ease, filter .08s ease;
}
.btn:hover{
  border-color:#cbd5e1;
  box-shadow:0 10px 22px rgba(0,0,0,.06);
}
.btn:active{ transform:translateY(1px); }

/* Full-width legacy button usage */
.btn[style], /* harmless, but keep behavior stable */
.btn.block,
.btn-full{
  width:100%;
  min-width:0;
}

/* Legacy login page button classes */
.btn-primary{
  background:var(--btn-primary-bg);
  color:var(--btn-primary-text);
  border-color:var(--btn-primary-bg);
  width: 100%;
    border-radius: 4px;
}
.btn-secondary,
.btn.secondary{
  background:#fff;
  color:#111;
  border-color:#d1d5db;
  min-width:140px;
}

/* Big “Place order” style (kept, but slightly less aggressive) */
.btn-primary.place-order,
.btn-primary.btn-place,
.btn-primary--yellow{
  background:var(--yellow);
  color:#111;
  border:none;
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}
.btn-primary.place-order:hover,
.btn-primary.btn-place:hover,
.btn-primary--yellow:hover{ filter:brightness(.98); }

/* Social buttons */
.social{ margin-top:14px; }
.social button{
  width:100%;
  padding:12px;
  border:1px solid #ccc;
  border-radius:10px;
  background:#fff;
  margin-bottom:10px;
  font-size:14px;
  cursor:pointer;
}
.social button:hover{
  border-color:#cbd5e1;
  box-shadow:0 10px 22px rgba(0,0,0,.06);
}

/* Small action rows */
.row-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:12px;
  flex-wrap:wrap;
}

/* ==========================================================================
   Small UI pieces
   ========================================================================== */

.divider{ height:1px; background:var(--line); margin:16px 0; }

.pay-icons{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:8px;
  color:var(--muted);
  font-size:12px;
}

/* Pills (used in shipping + payment mock) */
.pill{
  border:1px solid var(--line);
  background:#fafafa;
  padding:6px 10px;
  border-radius:999px;
  font-weight:600;
  font-size:12px;
  color:#111;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.pill.free{ color:var(--green); background:#fff; }
.pill.oos{ color:#888; background:#fafafa; }

/* Address box */
.addr-box{
  border:1px solid #c7d2fe;
  background:#eef2ff;
  border-radius:12px;
  padding:12px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.addr-box .left{
  font-size:13px;
  color:#111;
  line-height:1.35;
  font-weight:600;
}
.addr-box .sub{
  font-weight:600;
  color:#374151;
}
.addr-box .badge{
  color:var(--green);
  font-size:12px;
  font-weight:650;
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
  margin-top:2px;
}
.dot{
  width:8px;height:8px;border-radius:999px;background:var(--green);
  display:inline-block;
}

/* ==========================================================================
   Shipping details list (address page)
   ========================================================================== */

.ship-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:10px 0;
  border-top:1px solid var(--border);
}
.ship-row:first-of-type{border-top:0;padding-top:0}
.ship-left{display:flex; gap:12px; align-items:flex-start; min-width:0}
.ship-thumb{
  width:44px;height:44px;border-radius:10px;
  border:1px solid #eee;background:#fff;
  object-fit:contain;
  flex:0 0 auto;
}
.ship-txt{min-width:0}
.ship-title{
  font-size:13px;
  font-weight:650;
  margin:0 0 4px;
  line-height:1.2;
}
.ship-meta{
  font-size:12px;
  color:var(--muted);
  line-height:1.25;
}
.ship-right{
  text-align:right;
  font-size:12px;
  white-space:nowrap;
}

/* ==========================================================================
   Nudges / reassurance blocks
   ========================================================================== */

.nudge{
  border:1px solid #dbe7db;
  background:#f0fbf1;
  color:#234b26;
  border-radius:12px;
  padding:12px 14px;
  font-size:12.5px;
  line-height:1.35;
}
.nudge strong{font-weight:650}
.nudge .tiny{margin-top:6px;color:#2b5b2e;font-size:12px}

/* ==========================================================================
   Collapsible warranty tile (details)
   ========================================================================== */

details.warranty{
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}
details.warranty summary{
  list-style:none;
  cursor:pointer;
  padding:14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-weight:650;
}
details.warranty summary::-webkit-details-marker{display:none}
.sum-sub{font-size:12px;color:var(--muted);font-weight:600}
.sum-right{font-size:12px;color:var(--muted);white-space:nowrap}
.w-body{
  border-top:1px solid var(--border);
  padding:14px;
  display:grid;
  gap:10px;
}
.w-list{display:grid;gap:8px}
.w-bullet{
  font-size:12.5px;
  color:#333;
  display:flex;
  gap:8px;
  align-items:flex-start;
  line-height:1.35
}
.w-dot{width:8px;height:8px;border-radius:999px;background:var(--green);margin-top:5px;flex:0 0 auto}
.w-cta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:4px;
}
.w-price{font-weight:650;white-space:nowrap}
.w-price .was{color:#9a9a9a;text-decoration:line-through;margin-right:8px;font-weight:600}
.w-price .now{color:var(--red);font-size:18px;font-weight:650}
.w-cta .mini{font-size:12px;color:var(--muted)}

/* ==========================================================================
   Better Together tile
   ========================================================================== */

.bt-kicker{
  font-size:12px;
  font-weight:650;
  color:#666;
  text-transform:uppercase;
  letter-spacing:.35px;
  margin-bottom:4px;
}
.bt-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:12px;
}
.bt-h{
  margin:0;
  font-size:18px;
  line-height:1.2;
  font-weight:650;
}
.bt-pr{
  text-align:right;
  white-space:nowrap;
}
.bt-was{
  color:#9a9a9a;
  text-decoration:line-through;
  font-weight:600;
  margin-right:8px;
}
.bt-now{
  color:var(--red);
  font-size:20px;
  font-weight:650;
}
.bt-save{
  display:inline-block;
  margin-left:10px;
  font-size:12px;
  font-weight:650;
  color:var(--green);
  background:#eff9f1;
  border:1px solid #cfe7d3;
  border-radius:999px;
  padding:4px 8px;
}
.bt-copy{
  color:#555;
  font-size:13px;
  line-height:1.45;
  margin:0 0 12px;
  font-weight:400;
}
.bt-product{
  display:flex;
  gap:12px;
  align-items:center;
  border:1px solid #e8e8e8;
  border-radius:12px;
  padding:12px;
  background:#fff;
}
.bt-thumb{
  width:64px;height:64px;border-radius:10px;border:1px solid #eee;background:#fff;
  object-fit:contain;flex:0 0 auto;
}
.bt-meta{flex:1;min-width:0}
.bt-name{font-weight:650;font-size:14px;margin:0 0 4px}
.bt-note{font-size:12px;color:#666;line-height:1.35;font-weight:400}

.bt-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-end;
}
.bt-btn{
  border-radius:4px;
  border:1px solid #d8d8d8;
  background:#fff;
  padding:9px 12px;
  font-weight:650;
  font-size:13px;
  cursor:pointer;
  min-width:96px;
  transition:transform .08s ease, box-shadow .08s ease, border-color .08s ease, filter .08s ease;
}
.bt-btn:hover{
  border-color:#cbd5e1;
  box-shadow:0 10px 22px rgba(0,0,0,.06);
}
.bt-btn:active{ transform:translateY(1px); }
.bt-btn.primary{background:#111;color:#fff;border-color:#111}
.bt-btn.ghost{background:#f6f6f6}
.bt-btn[disabled]{opacity:.45;cursor:not-allowed}

.bt-added{
  font-size:12px;
  font-weight:650;
  color:var(--green);
  border:1px solid #cfe7d3;
  background:#eff9f1;
  border-radius:999px;
  padding:4px 10px;
}
.bt-trust{
  margin-top:10px;
  font-size:12px;
  color:#666;
  font-weight:400;
}

@media(max-width:640px){
  .bt-head{flex-direction:column;align-items:flex-start}
  .bt-pr{text-align:left}
  .bt-actions{align-items:flex-start}
}

/* ==========================================================================
   Wallet tiles
   ========================================================================== */

.wallets{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media(max-width:680px){
  .wallets{ grid-template-columns:1fr; }

}
.wallet{
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  padding:12px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  cursor:pointer;
  user-select:none;
  transition:transform .08s ease, border-color .08s ease, box-shadow .08s ease;
}
.wallet:hover{
  transform: translateY(-1px);
  border-color:#cbd5e1;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}
.w-left{display:flex;align-items:center;gap:10px;min-width:0}
.w-logo{
  width:36px;height:36px;border-radius:10px;
  border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  font-weight:700;
  background:#fafafa;
  flex:0 0 auto;
}
.w-name{
  font-weight:650;
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.w-note{font-size:12px;color:var(--muted);margin-top:2px}
.w-right{color:var(--muted);font-size:12px;font-weight:650;white-space:nowrap}

/* ==========================================================================
   Order summary (right rail)
   ========================================================================== */

.sum-card{position:sticky;top:14px}
@media(max-width:980px){ .sum-card{position:static} }

.sum-title{
  font-size:16px;
  font-weight:650;
  margin:0 0 12px;
}
.sum-addr{
  font-size:12px;
  color:var(--muted);
  line-height:1.35;
  margin:0 0 12px;
}

.summary-items{ padding:0; margin:0; list-style:none; }

.sum-items{
  border-top:1px solid var(--border);
  padding-top:12px;
  display:grid;
  gap:12px
}

.sum-item{
  display:flex;
  gap:10px;
  align-items:flex-start;
  justify-content:space-between;
}

.sum-left{display:flex;gap:10px;align-items:flex-start;min-width:0}
.sum-thumb,
.thumb{
  width:38px;height:38px;border-radius:10px;border:1px solid #eee;background:#fff;
  object-fit:contain;flex:0 0 auto;
}
.thumb{ width:46px; height:46px; padding:2px; border-color:var(--line); }

.sum-txt{min-width:0}
.sum-name,
.sum-title{
  font-size:12.5px;
  font-weight:650;
  margin:0 0 4px;
  line-height:1.2;
}
.sum-meta{
  font-size:11.5px;
  color:var(--muted);
  line-height:1.25;
  margin:0;
}

.sum-right{text-align:right;white-space:nowrap}
.sum-price{font-size:12.5px;font-weight:650}
.sum-qty{font-size:12px;color:var(--muted);margin-top:2px}

.sum-remove,
.sum-action{
  display:inline-block;
  margin-top:6px;
  font-size:12px;
  color:var(--blue);
  text-decoration:none;
  font-weight:600;
  cursor:pointer;
}
.sum-remove:hover,
.sum-action:hover{ text-decoration:underline; }

.totals{
  border-top:1px solid var(--border);
  margin-top:14px;
  padding-top:12px;
  display:grid;
  gap:8px;
}
.trow{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:12.5px;
  color:#333;
}
.trow .k{ color:#374151; font-weight:600; }
.trow .v{ font-weight:650; }
.trow strong{ font-weight:650; }

.trow.muted .k, .trow.muted .v{ color:var(--muted); font-weight:600; }
.trow.discount .v{ color:#0f766e; }

.grand,
.total{
  margin-top:8px;
  font-size:22px;
  font-weight:650;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:10px;
}
.total .k{ font-size:16px; font-weight:650; }
.total .v{ font-size:22px; font-weight:700; letter-spacing:.2px; }

.save,
.savebar{
  margin-top:10px;
  color:var(--green);
  font-size:12px;
  font-weight:650;
}
.savebar{
  border-radius:12px;
  background:#ecfdf5;
  border:1px solid #a7f3d0;
  padding:10px 12px;
  color:#065f46;
  font-size:13px;
}

/* Place order block */
.place{
  margin-top:16px;
  border-top:1px solid var(--line);
  padding-top:16px;
}

.btn-primary.btn-primary--yellow,
.btn-primary.btn-primary-yellow,
.btn-primary.place-order,
.btn-primary{
  /* keep btn-primary as blue in general; yellow “Place order” uses a custom class */
}
.btn-primary-yellow,
.btn-primary--yellow{
  background:var(--yellow);
  color:#111;
  border:none;
  border-radius:12px;
  padding:14px 14px;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  width:100%;
  box-shadow:0 10px 22px rgba(0,0,0,.10);
}
.btn-primary-yellow:hover,
.btn-primary--yellow:hover{ filter:brightness(.98); }
.btn-primary-yellow:active,
.btn-primary--yellow:active{ transform:translateY(1px); }

.hint{
  margin-top:10px;
  font-size:12px;
  color:var(--muted);
  text-align:center;
  font-weight:600;
}

/* ==========================================================================
   Misc helpers
   ========================================================================== */

.fineprint{
  margin-top:10px;
  font-size:11px;
  color:#777;
  line-height:1.35;
}

.is-hidden{display:none !important;}

/* ── Hide chat bubble on mobile for cart & checkout pages ── */
@media (max-width:980px){
  #woot-widget-bubble-icon,
  button.woot-widget-bubble.woot-elements--right,
  .woot--close img{
    display:none !important;
  }
}
