/* 9001Simplified enrollment box — Claude, 1 Dec 2026 (v3)
   Uses the site's existing --brand-* variables and Open Sans.
   Two variants:
   .buy               course with a language selector: price on its own row at every width
   .buy.buy--nolang   course without options: price, Seats and Enroll on one row (stacks below 470px box width)
   Layout uses CSS container queries on .buy (Chrome 105+, Safari 16+, Firefox 110+). */
.buy{margin:24px 0 0;padding:20px 24px 14px;background:var(--brand-panel);border-top:1px solid var(--brand-rule);border-bottom:1px solid var(--brand-rule);container:buy/inline-size}
.buy *{box-sizing:border-box}
.buy__row{display:flex;flex-wrap:nowrap;align-items:flex-end;gap:14px}
.buy__price{display:flex;align-items:baseline;gap:8px;flex:none;margin:0 8px 0 0;padding:0 0 5px;white-space:nowrap}
.buy__amount{font-size:34px;line-height:1;font-weight:300;letter-spacing:-1px;color:var(--brand-heading)}
.buy__unit{font-size:16px;line-height:1.3;color:var(--brand-muted)}
.buy__field{display:flex;flex-direction:column;margin:0;padding:0;border:0;min-width:0}
.buy__field legend,.buy__field>span{float:left;width:100%;padding:0 0 7px;font-size:15px;line-height:1.3;font-weight:600;color:var(--brand-heading)}
.buy__field legend+*{clear:both}
.seg{display:flex;height:44px;border:1px solid #858a8e;background:#fff}
.seg input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.seg label{display:flex;flex:1;align-items:center;justify-content:center;min-width:96px;padding:0 14px;font-size:16px;line-height:1;color:var(--brand-ink);cursor:pointer;user-select:none}
.seg label+input+label{border-left:1px solid #858a8e}
.seg input:checked+label{background:var(--brand-heading);color:#fff;font-weight:600}
.seg input:focus-visible+label{outline:3px solid #174c75;outline-offset:2px;position:relative;z-index:1}
.seg label:hover{background:#eef2f5}.seg input:checked+label:hover{background:var(--brand-heading)}
.buy__seats input{width:84px;height:44px;padding:0 10px;border:1px solid #858a8e;background:#fff;font:16px 'Open Sans',sans-serif;color:var(--brand-ink)}
.buy__enroll{flex:none;min-width:128px;height:44px;padding:0 28px;border:0;background:var(--brand-accent);color:var(--brand-ink);font:700 18px/1 'Open Sans',sans-serif;cursor:pointer;transition:background .2s}
.buy__enroll:hover{background:var(--brand-action-hover)}
.buy__sub{display:flex;align-items:baseline;gap:4px 16px;margin-top:12px;min-height:28px}
.buy__total{flex:1 1 auto;min-width:0;margin:0;padding:0;font-size:15px;line-height:1.5;color:var(--brand-muted);font-variant-numeric:tabular-nums}
.buy__total strong{font-size:16px;font-weight:700;color:var(--brand-heading);white-space:nowrap}
.buy__total span{white-space:nowrap}
.buy__total .buy__pct::before{content:"· "}
.buy__discounts{flex:none;margin-left:auto;display:inline-flex;align-items:center;gap:8px;min-height:28px;padding:0;border:0;background:none;color:var(--brand-heading);font:700 16px/1 'Open Sans',sans-serif;cursor:pointer}
.buy__discounts::after{content:"";width:7px;height:7px;border-right:2px solid var(--brand-heading);border-bottom:2px solid var(--brand-heading);transform:translateY(-3px) rotate(45deg);transition:transform .2s}
.buy__discounts[aria-expanded="true"]::after{transform:translateY(2px) rotate(-135deg)}
.discounts{margin:12px 0 4px;padding:14px 0 0;border-top:1px solid var(--brand-rule)}
.discounts__heading{font-size:16px;line-height:1.4;font-weight:700;color:var(--brand-heading);padding:0 0 10px}
.discounts__list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;padding:0}
.discounts__list[data-count="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}
.discounts__list li{display:flex;flex-direction:column;gap:2px;min-width:0;padding:10px 14px;background:#fff;border:1px solid var(--brand-rule);border-left:4px solid var(--brand-rule);font-size:15px;line-height:1.35;color:var(--brand-ink)}
.discounts__list li strong{font-size:16px;color:var(--brand-heading)}
.discounts__list li.is-active{border-color:var(--brand-accent);border-left-color:var(--brand-accent)}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.buy-foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 16px;padding:12px 0 0}
.buy-foot p,.buy-foot a{padding:0;font-size:15px;line-height:1.6;color:#465363}
.buy-foot__guarantee{display:flex;align-items:center;gap:8px}
.buy-foot__guarantee::before{content:"";width:18px;height:18px;background:url("../images/icons/tick.png") center/cover no-repeat;opacity:.9}
@container buy (max-width:640px){.discounts__list[data-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* narrow boxes: total gets its own line, Discounts below it */
@container buy (max-width:560px){
  .buy__sub{flex-wrap:wrap;row-gap:6px}
  .buy__total:not(:empty){flex-basis:100%}
}
@container buy (max-width:440px){
  .buy__total .buy__pct{display:block}
  .buy__total .buy__pct::before{content:none}
}
/* with a language selector: price always has its own row; Enroll gains width where there is room */
.buy:not(.buy--nolang) .buy__row{flex-wrap:wrap}
.buy:not(.buy--nolang) .buy__price{flex-basis:100%;margin:0 0 2px}
.buy:not(.buy--nolang) .buy__enroll{min-width:170px}
@container buy (max-width:500px){.buy:not(.buy--nolang) .buy__enroll{min-width:128px}}
/* phones: price; language + seats; full-width Enroll */
@container buy (max-width:440px){
  .buy__row{display:grid;grid-template-columns:minmax(0,1fr) 84px;gap:12px}
  .buy__price{grid-column:1/-1;margin:0;padding:0 0 2px}
  .seg label{min-width:0;padding:0 6px}
  .buy__seats input{width:100%}
  .buy__enroll{grid-column:1/-1;width:100%}
  .discounts__list,.discounts__list[data-count="4"]{grid-template-columns:1fr}
  .discounts__list li{flex-direction:row;justify-content:space-between;align-items:baseline}
}
/* without a language option: price, Seats, Enroll stay on one row until 470px */
@container buy (max-width:470px){
  .buy--nolang .buy__row{display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px}
  .buy--nolang .buy__price{grid-column:1/-1;margin:0;padding:0 0 2px}
  .buy--nolang .buy__seats input{width:100%}
  .buy--nolang .buy__enroll{grid-column:auto;width:100%}
}
@media (max-width:600px){.buy{padding:18px 16px 12px;margin-top:20px}.buy__amount{font-size:30px}}

/* Integration: reset inherited course quantity rules without changing Claude's layout. */
.buy .product-intro__quantity-input{max-width:none;margin:0;line-height:normal}
.buy [hidden]{display:none!important}
.buy-foot .employee-language a{color:#0048b0;text-decoration:underline;text-underline-offset:3px}
.buy__cart-total{border:0;padding:0;background:none;font:inherit;color:#0048b0;text-decoration:underline;cursor:pointer}
.buy .seg input:disabled+label{opacity:.5;cursor:not-allowed}
/* Media-query fallback for browsers without container queries. */
@supports not (container-type:inline-size){
 @media(max-width:1000px){.buy__sub{flex-wrap:wrap}.buy__total:not(:empty){flex-basis:100%}.buy__row{display:grid!important;grid-template-columns:minmax(0,1fr) 84px;gap:12px}.buy__price{grid-column:1/-1}.buy .seg label{min-width:0;padding:0 6px}.buy__enroll{grid-column:1/-1;width:100%}.buy__seats input{width:100%}.buy--nolang .buy__row{grid-template-columns:84px minmax(0,1fr)}.buy--nolang .buy__enroll{grid-column:auto}.discounts__list,.discounts__list[data-count="4"]{grid-template-columns:1fr}.discounts__list li{flex-direction:row;justify-content:space-between}.buy__total .buy__pct{display:block}}
}
