/* CP Figma Cart Page — v1.3.3 */
#cp-figma-cart, #cp-figma-cart *{ box-sizing:border-box; }
#cp-figma-cart{
  --primary:#003355;
  --accent:#02B7A8;
  --bg-soft:#F5F7F7;
  --border:#E6E9ED;
  --text:#0F172A;
  --muted:#6B7280;
  --radius-lg:25px;
  --shadow:0 10px 30px rgba(15,23,42,0.08);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
}
/* Kill underlines + theme underline tricks (scoped) */
#cp-figma-cart a,
#cp-figma-cart a:visited,
#cp-figma-cart a:hover,
#cp-figma-cart a:focus,
#cp-figma-cart a:active,
#cp-figma-cart a:focus-visible,
#cp-figma-cart a *,
#cp-figma-cart button,
#cp-figma-cart button *{
  text-decoration:none !important;
  text-decoration-line:none !important;
  -webkit-text-decoration:none !important;
  border-bottom:0 !important;
  background-image:none !important;
  box-shadow:none !important;
}
#cp-figma-cart a::before,
#cp-figma-cart a::after{
  content:none !important;
  border:0 !important;
  background:none !important;
  box-shadow:none !important;
}
.cpfc-wrap{ max-width:1180px; margin:0 auto; padding:40px 16px 80px; overflow:visible; }
.cpfc-title{ text-align:center; font-size:36px; line-height:1.15; font-weight:600; margin:18px 0 10px; letter-spacing:-0.02em; }
@media (max-width:768px){ .cpfc-title{ font-size:28px; margin:14px 0 10px; } }
/* Stepper removed per spec (keep defensive hide in case cached markup exists) */
.cpfc-stepper{ display:none !important; }
.cpfc-step{ display:none !important; }
.cpfc-grid{ display:grid; gap:34px; grid-template-columns:1fr 420px; align-items:start; }
/* Pull the summary panel up closer on tablet/mobile (requested: totals move up a bit) */
@media (max-width:1024px){
  .cpfc-grid{ grid-template-columns:1fr; gap:18px; }
}
.cpfc-panel{ background:var(--bg-soft); border-radius:var(--radius-lg); overflow:hidden; }
.cpfc-panel-inner{ padding:22px; }
.cpfc-item{ position:relative; display:flex; gap:14px; padding:18px; border-radius:18px; background:#fff; box-shadow:0 6px 16px rgba(15,23,42,0.06); margin-bottom:18px; }
.cpfc-item:last-child{ margin-bottom:0; }
.cpfc-price{ display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.cpfc-price-val{ font-size:12px; font-weight:700; color:#0B1F3A; white-space:nowrap; }
.cpfc-remove{
  position:static;
  width:26px;
  height:26px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#94A3B8;
  line-height:1;
}
.cpfc-remove:hover{ background:rgba(148,163,184,0.15); color:#475569; }
.cpfc-trash{ width:16px; height:16px; display:block; fill:currentColor; }
.cpfc-remove-text{ position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.cpfc-media img{ width:92px; height:92px; object-fit:contain; border-radius:12px; background:#fff; display:block; }
.cpfc-body{ flex:1; min-width:0; }
.cpfc-row{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.cpfc-name{ font-size:12px; font-weight:700; }
/* price styles moved to .cpfc-price-val to allow remove button under it */
.cpfc-meta{ margin-top:6px; font-size:11px; color:var(--muted); line-height:1.35; }
.cpfc-meta dl{ margin:0; } .cpfc-meta dt, .cpfc-meta dd{ display:inline; margin:0; } .cpfc-meta dt{ font-weight:600; } .cpfc-meta dd{ margin-right:10px; }
.cpfc-actions{ margin-top:10px; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.cpfc-qty{ display:flex; align-items:center; gap:10px; }
.cpfc-qty-label{ font-size:11px; color:var(--muted); }
.cpfc-qty-controls{ display:flex; align-items:center; gap:8px; flex:0 0 auto; }
.cpfc-qty-btn{ display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:999px; border:1px solid var(--border); background:#fff; color:var(--primary); font-weight:800; line-height:1; cursor:pointer; user-select:none; }
.cpfc-qty-btn:hover{ background:rgba(148,163,184,0.12); }
.cpfc-qty-btn:active{ transform:translateY(1px); }
.cpfc-qty-input{
  /* Theme CSS was blowing this out into a giant bar on some installs */
  width:52px !important;
  min-width:52px !important;
  max-width:52px !important;
  flex:0 0 52px !important;
  height:34px !important;
  border-radius:999px;
  border:1px solid var(--border) !important;
  padding:0 10px !important;
  font-size:13px !important;
  outline:none;
  background:#fff !important;
  box-shadow:none !important;
}
.cpfc-qty-input:focus{ border-color:rgba(2,183,168,0.7); box-shadow:0 0 0 3px rgba(2,183,168,0.15); }
.cpfc-summary-card{
  /* Footer-like vibe: deep teal base + subtle geometric overlays */
  position:relative;
  background:
    radial-gradient(1200px 620px at 20% 12%, rgba(2,183,168,0.22) 0%, rgba(2,183,168,0) 58%),
    radial-gradient(900px 520px at 86% 36%, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 62%),
    linear-gradient(135deg, #0E3D55 0%, #0B344C 38%, #073147 100%);
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,0.08);
}
.cpfc-summary-card::before{
  content:"";
  position:absolute;
  inset:-40px;
  pointer-events:none;
  /* geometric / diagonal shapes (no images, fast) */
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(225deg, rgba(0,0,0,0.16) 0%, rgba(0,0,0,0) 46%),
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.06) 0px,
      rgba(255,255,255,0.06) 1px,
      rgba(255,255,255,0) 1px,
      rgba(255,255,255,0) 16px
    );
  opacity:0.55;
}
.cpfc-summary-head{
  position:relative;
  padding:20px 24px 10px;
  text-align:center;
  font-size:14px;
  font-weight:650;
  color:rgba(255,255,255,0.92);
}
.cpfc-summary-body{ position:relative; padding:16px 24px 22px; }
.cpfc-total-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
  color:rgba(255,255,255,0.86);
  padding:6px 0;
}
.cpfc-total-row span:last-child,
.cpfc-total-row strong:last-child{
  color:rgba(255,255,255,0.92);
}
.cpfc-total-row.grand{
  padding-top:10px;
  margin-top:8px;
  border-top:1px solid rgba(255,255,255,0.14);
  font-weight:800;
}
.cpfc-total-row.grand span:last-child,
.cpfc-total-row.grand strong:last-child{
  color:var(--accent);
}
.cpfc-btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; height:44px; padding:0 18px; border-radius:999px; border:1px solid transparent; font-weight:600; font-size:12px; cursor:pointer; user-select:none; white-space:nowrap; }
.cpfc-btn--full{ width:100%; height:48px; font-size:13px; }
.cpfc-btn--primary{ background:var(--primary); color:#fff; } .cpfc-btn--primary:hover{ filter:brightness(1.05); }
.cpfc-btn--accent{ background:var(--accent); color:#083a38; } .cpfc-btn--accent:hover{ filter:brightness(1.02); }
.cpfc-btn--ghost{ background:#fff; color:var(--primary); border-color:#D7DEE6; } .cpfc-btn--ghost:hover{ background:#F8FAFC; }
.cpfc-btn--ghost{ border-width:2px; }
.cpfc-continue-row{
  margin-top:18px;
  margin-bottom:10px;
  display:flex;
  justify-content:flex-start;
  position:relative;
  z-index:5;
  overflow:visible;
}
@media (max-width:1024px){ .cpfc-continue-row{ justify-content:center; } }
.cpfc-help{
  margin-top:28px;
  border-radius:var(--radius-lg);
  background:linear-gradient(120deg, #003355 0%, #003355 55%, #003355 100%);
  color:#fff;
  overflow:hidden;
  position:relative;
  z-index:1;
}
.cpfc-help-inner{ display:flex; align-items:center; justify-content:space-between; gap:20px; padding:28px 32px; }
.cpfc-help-copy{ max-width:520px; }
.cpfc-help-title{ margin:0 0 10px; font-size:20px; font-weight:700; color:#fff; }
.cpfc-help-text{ margin:0 0 18px; font-size:12px; color:rgba(255,255,255,0.9); line-height:1.45; }
.cpfc-help-media{ width:300px; height:150px; background-repeat:no-repeat; background-position:right center; background-size:contain; background-image:var(--cpfc-help-img, none); }
@media (max-width:1024px){ .cpfc-help-inner{ padding:26px 22px; } .cpfc-help-media{ width:180px; height:140px; } }
@media (max-width:768px){ .cpfc-help-inner{ flex-direction:column; align-items:flex-start; padding:26px 20px; } .cpfc-help-media{ width:100%; height:120px; background-position:right bottom; } }
.cpfc-empty{ padding:24px; background:#fff; border-radius:18px; text-align:center; color:var(--muted); }
.cpfc-empty strong{ color:var(--text); }
.cpfc-empty-actions{ margin-top:14px; display:flex; justify-content:center; gap:10px; flex-wrap:wrap; }
.cpfc-hidden-update{ position:absolute !important; left:-9999px !important; width:1px !important; height:1px !important; overflow:hidden !important; }


/* =========================================================
   CPFC — NEED HELP (HEIGHT + COLOR TUNE ONLY)
   ✅ Shorter height
   ✅ Cooler teal fill (distinct from totals)
   ❌ Nothing else touched
========================================================= */
.cpfc-help{
  background:
    linear-gradient(135deg,
      #0F4E63 0%,
      #0D5F6E 55%,
      #0B6E73 100%
    ) !important;
}

.cpfc-help-inner{
  padding:24px 26px !important; /* was taller */
}

.cpfc-help h3{
  font-size:16px !important;
  margin-bottom:8px !important;
}

.cpfc-help p{
  font-size:13px !important;
  line-height:1.45 !important;
}

.cpfc-help-media{
  height:120px !important; /* shorter visual block */
}

@media (max-width:768px){
  .cpfc-help-inner{
    padding:20px 18px !important;
  }
  .cpfc-help-media{
    height:96px !important;
  }
}


/* =========================================================
   CPFC — CART TITLE COLOR (THEME ACCENT ONLY)
   ❌ No other changes
========================================================= */
.cpfc-title,
.cpfc-cart-title,
#cp-figma-cart h1,
#cp-figma-cart h2{
  color:#0A6E7D !important; /* Certified-Pep teal */
}
