/* ============================================================
   GCI pricing configurator — 2026 catalogue
   Two-column layout: configurator (left) + sticky summary (right)
   ============================================================ */

.gci-cfg{max-width:1200px;margin:0 auto;font-family:inherit;color:#042F53}

/* ── Two-column layout ─────────────────────────────────────── */
.gci-cfg-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:28px;align-items:start}
.gci-cfg-panel{background:#fff;border-radius:20px;padding:32px 36px;box-shadow:0 4px 20px rgba(4,47,83,.09)}

/* ── Existing-account banner ───────────────────────────────── */
.gci-cfg-existing-account{margin:0 0 24px;padding:14px 20px;background:#fff;border:1px solid #dce8f0;border-radius:8px;color:#042F53;font-size:13.5px;line-height:1.6}
.gci-cfg-existing-account a{color:#21B9E0;font-weight:500;text-decoration:none}
.gci-cfg-existing-account a:hover{text-decoration:underline}

/* ── Section title ─────────────────────────────────────────── */
.gci-cfg-section{margin-bottom:28px}
.gci-cfg-section h3{font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:#21B9E0;margin-bottom:18px;display:flex;align-items:center;gap:10px}
.gci-cfg-section h3::after{content:'';flex:1;height:1px;background:#dce8f0}
.gci-cfg-section-subtitle{font-size:13px;color:#5a7a96;margin:-8px 0 18px;line-height:1.5}

/* ── Top controls (audience / cadence button group) ───────── */
.gci-cfg-controls{display:flex;gap:20px;flex-wrap:wrap;margin-bottom:24px}
.gci-cfg-control{flex:1;min-width:180px}
.gci-cfg-control .ctrl-label{display:block;font-size:13px;font-weight:600;color:#042F53;margin-bottom:8px}

/* Button group (org type + cadence) */
.gci-cfg-btngroup{display:flex;gap:4px;border-radius:12px;background:#f0f5f9;padding:4px}
.gci-cfg-btngroup button{flex:1;padding:11px 16px;font-size:13px;font-weight:700;border:none;border-radius:9px;background:transparent;color:#5a7a96;cursor:pointer;transition:all .22s cubic-bezier(.4,0,.2,1);white-space:nowrap;min-width:0;position:relative}
.gci-cfg-btngroup.wide button{padding:12px 16px;font-size:14px}
.gci-cfg-btngroup button:hover{color:#042F53}
.gci-cfg-btngroup button.active{background:#042F53;color:#fff;box-shadow:0 2px 12px rgba(4,47,83,.2)}
.gci-cfg-btngroup button:disabled,.gci-cfg-btngroup button.disabled{color:#bbb;cursor:not-allowed;opacity:.6}
.gci-cfg-btngroup button:disabled:hover,.gci-cfg-btngroup button.disabled:hover{background:transparent}

/* ── Slider (size + seats) ─────────────────────────────────── */
.gci-cfg-slider-wrap{position:relative;padding-top:4px}
.gci-cfg-slider{-webkit-appearance:none;appearance:none;width:100%;height:6px;border-radius:3px;background:linear-gradient(to right,#042F53,#21B9E0);outline:none;cursor:pointer}
.gci-cfg-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:24px;height:24px;border-radius:50%;background:#042F53;border:3px solid #21B9E0;box-shadow:0 2px 10px rgba(4,47,83,.25);cursor:pointer;transition:transform .15s}
.gci-cfg-slider::-webkit-slider-thumb:hover{transform:scale(1.15)}
.gci-cfg-slider::-moz-range-thumb{width:24px;height:24px;border-radius:50%;background:#042F53;border:3px solid #21B9E0;box-shadow:0 2px 10px rgba(4,47,83,.25);cursor:pointer}
.gci-cfg-slider-label{text-align:center;font-size:14px;font-weight:700;color:#042F53;margin-top:8px}
.gci-cfg-slider-ticks{display:flex;justify-content:space-between;margin-top:6px;font-size:11px;font-weight:600;color:#5a7a96}

/* ── Size box (replaces a card-shaped slot for the global size slider).
      Reserves the same column structure as a module card so the slider is
      flush with the seats slider that lives inside the addon card. ── */
.gci-cfg-size-box{display:flex;align-items:center;gap:14px;padding:18px 20px;border:1.5px solid transparent;border-radius:12px;background:#fff;cursor:default}
.gci-cfg-size-box:hover{border-color:transparent;background:#fff}
.gci-cfg-size-cb-spacer{display:inline-block;width:22px;height:22px;flex:0 0 22px}
/* Tiny right gutter only — the size slider has no per-card price, so the
   right column collapses to a sliver and the slider can stretch wide. */
.gci-cfg-size-price-spacer{flex:0 0 40px;visibility:hidden}
.gci-cfg-size-box .gci-cfg-module-info{flex:1;min-width:0}

/* Saving badge attached to cadence buttons */
.gci-cfg-saving{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:999px;background:#dcfce7;color:#15803d;font-size:11px;font-weight:700;vertical-align:middle}
.gci-cfg-btngroup button.active .gci-cfg-saving{background:#fff;color:#15803d}

/* ── Module cards ──────────────────────────────────────────── */
.gci-cfg-modules{display:flex;flex-direction:column;gap:10px}
.gci-cfg-module{display:flex;align-items:flex-start;gap:14px;background:#fff;border:1.5px solid #dce8f0;border-radius:12px;padding:16px 20px;cursor:pointer;transition:all .22s cubic-bezier(.4,0,.2,1);position:relative}
.gci-cfg-module:hover{border-color:#21B9E0;box-shadow:0 2px 14px rgba(33,185,224,.09)}
.gci-cfg-module.checked{border-color:#21B9E0;background:linear-gradient(135deg,rgba(17,189,227,.05),rgba(4,47,83,.02));box-shadow:0 4px 20px rgba(33,185,224,.12)}
.gci-cfg-module.gci-cfg-na{opacity:.45;cursor:not-allowed;background:#f7f8fa}
.gci-cfg-module.gci-cfg-na:hover{border-color:#dce8f0;box-shadow:none}
/* Locked = mutually-exclusive lock (Pack BC vs subscriptions). Looks similar
   to .gci-cfg-na but the cursor hint communicates "selectable once you free
   the other category" rather than "out of catalog". */
.gci-cfg-module.gci-cfg-locked{opacity:.4;cursor:not-allowed;pointer-events:none;filter:grayscale(.5)}
.gci-cfg-module.gci-cfg-locked:hover{border-color:#dce8f0;box-shadow:none}
.gci-cfg-pack.gci-cfg-locked{filter:grayscale(.7);opacity:.45}
.gci-cfg-module input[type="checkbox"]{width:22px;height:22px;accent-color:#21B9E0;flex-shrink:0;margin-top:2px;cursor:pointer}
.gci-cfg-module input[type="checkbox"]:disabled{cursor:not-allowed}
.gci-cfg-module-info{flex:1;min-width:0}
.gci-cfg-module-name{font-size:15px;font-weight:800;color:#042F53;margin-bottom:3px}
.gci-cfg-module-desc{font-size:12.5px;color:#5a7a96;line-height:1.45}
.gci-cfg-module-desc p{margin:0 0 4px}
.gci-cfg-module-desc p:last-child{margin-bottom:0}
.gci-cfg-module-desc strong{color:#042F53}

/* Fixed-width price column so the left side never gets squeezed by long
   numbers (e.g. 10 × Inventory at tier T8 = "54 000 €/an HT"). */
.gci-cfg-module-price{flex:0 0 240px;text-align:right;font-size:18px;font-weight:900;color:#042F53;white-space:nowrap}
/* Per-seat (USE07) — slider fills the info column, so the price column is
   narrower to give the slider more breathing room. */
.gci-cfg-module[data-pricing-mode="per_seat"] .gci-cfg-module-price{flex:0 0 170px;font-size:16px}
.gci-cfg-module-price small{font-size:11px;font-weight:500;color:#5a7a96;display:block;margin-top:2px}
.gci-cfg-module-annual{font-size:12px;color:#5a7a96;font-weight:500;margin-top:2px}

/* ── Quantity / seats area — collapsed by default, revealed on .checked ── */
.gci-cfg-qty-area{margin-top:11px;padding-top:11px;border-top:1px solid #dce8f0;display:none}
.gci-cfg-module.checked .gci-cfg-qty-area{display:block}

.gci-cfg-qty-row{display:flex;align-items:center;gap:10px}
.gci-cfg-qty-label{font-size:12px;color:#5a7a96;font-weight:500;flex:1}

/* Stepper (− N +) — used for inventory licence count and any per-product quantity. */
.gci-cfg-stepper{display:inline-flex;align-items:center;gap:8px}
.gci-cfg-step-btn{width:28px;height:28px;border-radius:50%;border:1.5px solid #dce8f0;background:#fff;color:#042F53;font-size:16px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s;line-height:1;padding:0}
.gci-cfg-step-btn:hover{border-color:#21B9E0;color:#21B9E0}
.gci-cfg-step-val{font-size:16px;font-weight:800;min-width:22px;text-align:center;color:#042F53}

/* Per-seat addon — the slider is stacked under its label */
.gci-cfg-seats{padding-top:6px}
.gci-cfg-seats-ticks{display:flex;justify-content:space-between;font-size:11px;font-weight:600;color:#5a7a96;margin-top:6px}

/* ── Pack Bilan Carbone — dark hero card with embedded checkbox.
      Same logical structure as a module card (label > checkbox + body + price)
      so the existing toggle/select code keeps working. ── */
.gci-cfg-pack{display:flex;align-items:center;gap:24px;padding:28px;border-radius:20px;background:#042F53;color:#fff;border:none;cursor:pointer;transition:all .22s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;margin-top:4px}
.gci-cfg-pack::before{content:'';position:absolute;right:-40px;top:-40px;width:180px;height:180px;border-radius:50%;border:40px solid rgba(33,185,224,.08);pointer-events:none}
.gci-cfg-pack:hover{box-shadow:0 6px 24px rgba(4,47,83,.25)}
.gci-cfg-pack.checked{box-shadow:0 0 0 3px #21B9E0,0 6px 24px rgba(33,185,224,.3);background:#042F53}
.gci-cfg-pack.gci-cfg-na{opacity:.55}
.gci-cfg-pack input[type="checkbox"]{width:24px;height:24px;accent-color:#21B9E0;flex-shrink:0;margin-top:2px;cursor:pointer;position:relative;z-index:1}
.gci-cfg-pack-tag{display:inline-flex;align-items:center;gap:6px;background:rgba(33,185,224,.18);border:1px solid rgba(33,185,224,.35);color:#21B9E0;font-size:10px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;padding:4px 12px;border-radius:100px;margin-bottom:10px}
.gci-cfg-pack .gci-cfg-module-info{position:relative;z-index:1}
.gci-cfg-pack .gci-cfg-module-name{font-size:18px;font-weight:900;color:#fff;margin-bottom:6px}
.gci-cfg-pack .gci-cfg-module-desc{font-size:12.5px;color:rgba(255,255,255,.72);line-height:1.55;max-width:480px}
.gci-cfg-pack .gci-cfg-module-desc strong{color:#fff}
.gci-cfg-pack .gci-cfg-module-desc a{color:#21B9E0;text-decoration:underline}
.gci-cfg-pack .gci-cfg-module-price{flex:0 0 200px;text-align:center;color:#fff;position:relative;z-index:1}
.gci-cfg-pack .gci-cfg-module-price .price-tag{display:block;font-size:10px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:rgba(255,255,255,.42);margin-bottom:6px}
.gci-cfg-pack .gci-cfg-module-price .price-amt{font-size:34px;font-weight:900;color:#fff;line-height:1;display:block}
.gci-cfg-pack .gci-cfg-module-price .price-suffix{font-size:12px;color:rgba(255,255,255,.5);margin-top:4px;display:block}

/* ── Right column: summary / cart panel ────────────────────── */
/* min-width:0 lets the flex/grid track stay at its allocated 380px even
   when an inner long price (e.g. 12 480 €) would otherwise stretch it. */
.gci-cfg-summary{background:#042F53;color:#fff;border-radius:20px;padding:28px 26px;position:sticky;top:20px;box-shadow:0 10px 40px rgba(4,47,83,.16);min-width:0;overflow:hidden}
.gci-cfg-summary-head{font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:rgba(255,255,255,.42);margin-bottom:18px}
.gci-cfg-summary-items{list-style:none;padding:0;margin:0 0 14px;min-height:60px}
.gci-cfg-summary-item{display:flex;justify-content:space-between;align-items:flex-start;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.08);font-size:12.5px;gap:10px}
.gci-cfg-summary-item:last-child{border-bottom:none}
.gci-cfg-summary-item-name{color:rgba(255,255,255,.82);font-weight:500;flex:1;min-width:0;word-break:break-word}
.gci-cfg-summary-item-meta{display:block;color:rgba(255,255,255,.4);font-size:11px;font-weight:400;margin-top:2px}
.gci-cfg-summary-item-price{color:#fff;font-weight:700;white-space:nowrap;flex-shrink:0;text-align:right}
.gci-cfg-summary-item-period{display:block;color:rgba(255,255,255,.4);font-size:11px;font-weight:400;margin-top:2px;text-align:right}
.gci-cfg-summary-empty{font-size:12.5px;color:rgba(255,255,255,.32);text-align:center;padding:18px 0;font-style:italic}
.gci-cfg-summary-sep{height:1px;background:rgba(255,255,255,.1);margin:12px 0}
.gci-cfg-summary-total-box{background:rgba(255,255,255,.08);border-radius:10px;padding:18px;text-align:center;margin-bottom:14px;min-width:0;overflow:hidden}
.gci-cfg-summary-total-lbl{font-size:10px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:rgba(255,255,255,.42);margin-bottom:5px}
.gci-cfg-summary-total-price{font-size:32px;font-weight:900;color:#fff;line-height:1.05;white-space:normal;word-break:break-word}
.gci-cfg-summary-total-period{font-size:11.5px;color:rgba(255,255,255,.5);margin-top:6px;line-height:1.4}
.gci-cfg-summary-oneshot{font-size:12px;color:rgba(255,255,255,.7);margin-top:8px;padding-top:8px;border-top:1px dashed rgba(255,255,255,.12)}
.gci-cfg-summary-oneshot strong{color:#21B9E0}
.gci-cfg-submit{width:100%;padding:15px;background:#21B9E0;color:#042F53;font-size:14px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;border:none;border-radius:10px;cursor:pointer;transition:all .22s cubic-bezier(.4,0,.2,1)}
.gci-cfg-submit:hover:not(:disabled){background:#0dafd0;box-shadow:0 6px 22px rgba(33,185,224,.38);transform:translateY(-1px)}
.gci-cfg-submit:disabled{background:rgba(255,255,255,.1);color:rgba(255,255,255,.32);cursor:not-allowed}
.gci-cfg-summary-note{text-align:center;font-size:10.5px;color:rgba(255,255,255,.32);margin:12px 0 0;line-height:1.5}

/* ── Responsive ────────────────────────────────────────────── */
@media(max-width:1024px){
    .gci-cfg-layout{grid-template-columns:1fr}
    .gci-cfg-summary{position:static}
}
@media(max-width:768px){
    .gci-cfg-panel{padding:24px 18px}
    .gci-cfg-pack{flex-direction:column;text-align:center;gap:16px}
    .gci-cfg-pack .gci-cfg-module-desc{max-width:none}
    .gci-cfg-module{flex-wrap:wrap}
    .gci-cfg-module-price{flex:1 1 100%;text-align:left}
}
