/* GrinHub BECE cart pop-up. Uses the page's own colour tokens so light and dark themes both work. */
.bece-cart-dialog{width:min(620px,calc(100% - 24px));max-height:92vh;padding:0;border:1px solid var(--bece-line);border-radius:14px;background:var(--panel,var(--bg));color:var(--ink);overflow:hidden}
.bece-cart-dialog::backdrop{background:#0d192399;backdrop-filter:blur(3px)}
.bece-cart-sheet{position:relative;max-height:92vh;overflow-y:auto;padding:32px 32px 26px;-webkit-overflow-scrolling:touch}
.bece-cart-sheet h2{font-size:34px;line-height:1.15;margin:8px 0 6px;outline:none}
.bece-cart-learner{margin:0 0 4px;font-size:13px;font-weight:600}
.bece-cart-section{margin-top:22px}
.bece-cart-heading{font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--bece-soft);margin:0 0 6px;font-weight:600}
.bece-cart-line{display:grid;grid-template-columns:1fr auto;gap:2px 14px;align-items:start;padding:13px 0;border-bottom:1px solid var(--bece-line)}
.bece-cart-line strong{font-size:14px;font-weight:500}
.bece-cart-line small{display:block;font-size:11px;color:var(--bece-soft);margin-top:3px}
.bece-cart-line-price{font-size:14px;white-space:nowrap;text-align:right}
.bece-cart-line>div:first-child{grid-row:1 / span 2}
.bece-cart-remove{grid-column:2;justify-self:end;font-size:12px}
.bece-cart-add{align-items:center}
.bece-cart-add-button{padding:8px 16px;min-height:0;font-size:12px}
.bece-cart-empty{padding:26px 0;text-align:center;color:var(--bece-soft)}
.bece-cart-empty h3{font-size:20px;margin:0 0 6px;color:var(--ink)}
.bece-cart-period{display:flex;flex-direction:column;gap:8px;font-size:12px;color:var(--bece-soft)}
.bece-cart-period select{padding:12px;border:1px solid var(--bece-line);border-radius:6px;background:var(--panel,var(--bg));color:var(--ink);font:inherit;font-size:14px}
.bece-cart-totals{margin:22px 0 0;padding-top:6px;border-top:1px solid var(--bece-line)}
.bece-cart-totals>div{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin:12px 0;font-size:13px;color:var(--bece-soft)}
.bece-cart-totals dt small{display:block;font-size:11px;margin-top:3px}
.bece-cart-totals dd{margin:0;text-align:right;white-space:nowrap;color:var(--ink);font-weight:500}
.bece-cart-saving dd{color:var(--success,#1A7F52)}
.bece-cart-totals>.bece-cart-main{font-size:15px;color:var(--ink)}.bece-cart-totals>.bece-cart-main dd{font-weight:700}
.bece-cart-totals>.bece-cart-due{border-top:1px solid var(--bece-line);padding-top:16px;font-size:17px;color:var(--ink)}
.bece-cart-due dd{font-weight:700}
.bece-cart-totals>.bece-cart-cedi-due{border-top:none;padding-top:6px;font-size:16px;color:var(--ink)}
.bece-cart-totals>.bece-cart-cedi-due dd{font-weight:700}
.bece-cart-currency-note{margin-top:14px;padding:12px 14px;background:var(--subtle,#f4f2ee);border:1px solid var(--bece-line);border-radius:8px;font-size:12px;line-height:1.45}
.bece-cart-advance-note{margin-top:4px}
.bece-cart-bands{display:flex;gap:10px;flex-wrap:wrap}
.bece-cart-actions{position:sticky;bottom:-26px;margin:24px -32px -26px;padding:16px 32px 22px;background:var(--panel,var(--bg));border-top:1px solid var(--bece-line);box-shadow:0 -10px 20px -14px #0d192340}
.bece-cart-actions>.bece-button{width:100%}
.bece-cart-actions>.bece-button[disabled]{opacity:.55;cursor:not-allowed}
.bece-cart-reason{margin-top:10px;text-align:center}
.bece-cart-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px;font-size:12px}
.bece-cart-foot .bece-text-link{font-size:12px}
/* The advance total in the page's own cart panel */
.bece-totals .bece-advance-row{border-top:1px dashed var(--bece-line);padding-top:16px;font-size:15px;color:var(--ink)}
.bece-totals .bece-advance-row dd{font-weight:700}
@media(max-width:600px){
 .bece-cart-dialog{width:100%;max-width:100%;max-height:94vh;margin:auto 0 0;border-radius:16px 16px 0 0}
 .bece-cart-sheet{padding:24px 18px 20px;max-height:94vh}
 .bece-cart-actions{bottom:-20px;margin:20px -18px -20px;padding:14px 18px 20px}
 .bece-cart-sheet h2{font-size:28px}
}
/* Collapsed promotion-code area shared by individual and family carts. */
.bece-promotion-codes{margin:1rem 0;border-top:1px solid var(--line,#dedbd4);padding-top:.75rem}
.bece-promotion-codes summary{cursor:pointer;font-weight:600}
.bece-promotion-fields{display:grid;gap:.75rem;padding:.75rem 0}
.bece-promotion-fields label{display:grid;gap:.35rem;font-size:.9rem}
.bece-promotion-fields input{width:100%;min-width:0;padding:.7rem .8rem;border:1px solid var(--line,#dedbd4);border-radius:.5rem;font:inherit;background:var(--surface,#fff)}
.bece-promotion-fields input:disabled{opacity:.6;cursor:not-allowed}

/* BECE Patch v3 code controls */
.bece-promotion-fields{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}.bece-promotion-fields label{grid-column:1/-1}.bece-promotion-fields input{text-transform:uppercase}.bece-promotion-fields [role=status]{grid-column:1/-1;margin:0}.bece-promotion-fields button{justify-self:start}@media(max-width:520px){.bece-promotion-fields{grid-template-columns:1fr}.bece-promotion-fields button{width:100%}}
/* bece cart fix: the learner comes from the confirmed ID, not a dropdown */
.bece-family-pick{display:none}
/* bece cart page */
.bece-cv-hide{display:none!important}
body.bece-cartview #bece-family{max-width:900px;margin:24px auto}
body.bece-cartview .bece-family-actions{display:none!important}
body:not(.bece-cartview) #bece-family-details,body:not(.bece-cartview) #bece-family-pay{display:none!important}
.bece-cv-bar{margin-bottom:14px}
/* ---- icon actions in the cart rows ---- */
.bece-family-row{align-items:center;flex-wrap:wrap}
.bece-family-row>div:last-child{display:flex;align-items:center;gap:6px;margin-left:auto;flex-wrap:wrap;justify-content:flex-end}
.bece-family-term{display:inline-flex;align-items:center;gap:8px;margin-top:8px;font-size:.85rem;font-weight:700}
.bece-family-term select{font:inherit;font-weight:400;border:1px solid var(--line);border-radius:8px;padding:6px 8px;background:var(--bg,#fff);color:var(--ink,#1b2f45);min-height:36px}
.bece-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:1px solid var(--line,#e2ded5);border-radius:50%;background:transparent;color:var(--ink,#1b2f45);cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.bece-icon-btn:hover,.bece-icon-btn:focus-visible{background:var(--paper-soft,#f6f1e9);border-color:currentColor}
.bece-icon-bin:hover,.bece-icon-bin:focus-visible{color:#b3261e}
.bece-icon-edit:hover,.bece-icon-edit:focus-visible{color:var(--brand,#f06b1f)}
.bece-pay-agree{margin:0;font-size:.85rem}
.bece-pay-agree a{text-decoration:underline}
@media(max-width:620px){
 .bece-family-row{padding:12px}
 .bece-family-row>div:first-child{flex:1 1 100%}
 .bece-family-row>div:last-child{flex:1 1 100%;justify-content:space-between;margin-left:0}
 .bece-icon-btn{width:44px;height:44px}
 .bece-family-pay .bece-button,#bece-pay{width:100%}
}

/* ---- collapsible, finished sections ---- */
.bece-sec-toggle{display:inline-flex;align-items:center;gap:6px;margin-left:auto;font:inherit;font-size:.85rem;font-weight:700;padding:6px 12px;min-height:36px;border:1px solid var(--line,#e2ded5);border-radius:999px;background:transparent;color:var(--ink,#1b2f45);cursor:pointer}
.bece-sec-toggle svg{transition:transform .15s}
.bece-sec-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
.bece-sec-done .bece-number{background:#2e7d5b;color:#fff}
.bece-sec-summary{margin:6px 0 0;color:var(--muted,#6b7480);font-size:.92rem;overflow-wrap:anywhere}
.bece-collapsed>:not(legend):not(.bece-sec-summary){display:none!important}
fieldset.bece-block>legend{display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box}
@media(max-width:620px){.bece-sec-toggle{padding:6px 10px}}
@media(prefers-reduced-motion:reduce){.bece-sec-toggle svg,.bece-icon-btn{transition:none}}

/* Payment happens from the cart, so the separate reservation and pay-with-provider block is not shown. */
#bece-group-hold-controls,#bece-pay-controls{display:none!important}
/* bece cart: no lines, soft shadows */
body.bece-cartview #bece-family,body.bece-cartview #bece-family *{border:0!important}
body.bece-cartview #bece-family{padding:32px 36px!important;border-radius:20px;background:var(--surface,#fff);box-shadow:0 12px 40px rgba(20,32,48,.08)}
body.bece-cartview .bece-family-row{background:var(--surface,#fff);border-radius:14px;padding:18px 22px;margin:14px 0;box-shadow:0 4px 18px rgba(20,32,48,.07)}
body.bece-cartview #bece-family :is(input,select){background:var(--surface,#fff);border-radius:10px;padding:8px 12px;box-shadow:0 2px 8px rgba(20,32,48,.10)}
body.bece-cartview .bece-icon-btn,body.bece-cartview .bece-secondary,body.bece-cartview #bece-family-count{background:var(--surface,#fff);box-shadow:0 2px 8px rgba(20,32,48,.12)}
body.bece-cartview #bece-family hr{display:none}
.bece-verify-box{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 14px}
.bece-verify-box input{flex:1 1 200px;min-width:0;font:inherit;background:var(--surface,#fff);border:0;border-radius:10px;padding:10px 14px;box-shadow:0 2px 8px rgba(20,32,48,.10)}
.bece-pay-msg{margin:12px 0 0;font-size:.9rem}
.bece-pay-msg.is-error{color:#b42318}
/* Billing details in the cart checkout */
.bece-billing{margin:1rem 0;padding:.9rem 1rem;border:1px solid var(--line,#dedbd4);border-radius:.6rem;display:grid;gap:.75rem}
.bece-billing legend{font-weight:700;padding:0 .35rem}
.bece-billing label{display:grid;gap:.3rem;font-size:.9rem}
.bece-billing input,.bece-billing textarea{width:100%;min-width:0;padding:.7rem .8rem;border:1px solid var(--line,#dedbd4);border-radius:.5rem;font:inherit;background:var(--surface,#fff);color:inherit;box-sizing:border-box}
.bece-billing input[readonly]{background:var(--bece-soft,#f4f1ea);cursor:not-allowed}
.bece-billing-extra-row{display:flex;gap:.5rem;align-items:center}
.bece-billing-extra-row input{flex:1 1 auto}
.bece-billing small{font-size:.8rem}
