/* Customer-facing purchase, appointment and course layouts. */
.counter { --edge:#dbccba; --surface:#fffaf3; --quiet:#725d56; padding-block:clamp(1.2rem,4vw,3.8rem); max-width:1120px; }
.counter h1,.class-opening h1 {color:var(--wine);font:700 clamp(2.7rem,5.4vw,5rem)/1.2 var(--display);margin:.35rem 0}
.counter h2,.class-grid h2 {font:700 clamp(1.65rem,2.7vw,2.4rem)/1.25 var(--display);color:var(--wine);margin:0 0 .8rem}
.counter-head {margin-bottom:1.55rem;border-bottom:1px solid var(--edge);padding-bottom:.7rem}
.counter-head a,.crumb {font-size:.9rem;color:var(--quiet)}
.crumb {display:flex;align-items:center;gap:.65rem;margin-bottom:1rem}
.counter .quiet {border:0;padding:.25rem;background:none;color:#744052;min-height:36px;text-decoration:underline;text-underline-offset:4px;font:inherit;font-size:.85rem;cursor:pointer}
.product-display {display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(1.5rem,4vw,4.5rem);align-items:center}
.product-portrait {position:relative;overflow:hidden;background:#ede3d4;border-radius:5px}
.product-portrait img {width:100%;aspect-ratio:1.12;max-height:590px;height:auto;object-fit:cover}
.object-copy {min-width:0}.object-copy h1 {margin:0 0 .6rem}.object-price {display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.object-price strong,.class-price {font-size:1.48rem;font-weight:700;color:var(--wine)}.object-price del {color:var(--quiet);font-size:.94rem}
.stock-state {font-size:.82rem;color:#46523c;margin-inline-start:auto}.stock-state:before {content:'✦';margin-inline-end:.3rem}
.object-description {color:#59473f;margin:.85rem 0;line-height:1.85}
.buy-form {display:flex;gap:.8rem;align-items:end;margin:1.25rem 0 .4rem}.buy-form .primary-cta {flex:1}
.quantity-field {display:grid;gap:.25rem;font-size:.85rem}.quantity-field input[type=number] {width:4.8rem;text-align:center}
.counter .primary-cta,.class-opening .primary-cta {display:inline-flex;align-items:center;justify-content:center;gap:.6rem;min-height:48px;background:#502032;color:#fff7e9;border:1px solid #502032;border-radius:5px;font-weight:650}
.counter .primary-cta:hover {background:#682d40}.fold {border-block-start:1px solid var(--edge);margin-top:.7rem;padding:.7rem 0}
.fold summary {cursor:pointer;font-weight:600;color:#592d3c}.fold p {margin:.7rem 0 0;color:var(--quiet)}
.counter-grid,.schedule-layout,.class-grid {display:grid;grid-template-columns:minmax(0,1.58fr) minmax(260px,.88fr);align-items:start;gap:clamp(1rem,2.5vw,2.1rem)}
.sheet,.bill,.empty-bag {border:1px solid var(--edge);background:var(--surface);padding:clamp(1rem,2.5vw,2rem);border-radius:7px;min-width:0}
.bill {background:#452031;color:#f9eedf;border:0;position:sticky;top:calc(var(--topbar-height) + 1rem);border-top:3px solid #be9d67}
.bill h2 {color:#f7e7cb}.bill dl {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.65rem 1rem;margin:1.25rem 0}
.bill dd {margin:0;text-align:end}.bill-total {display:flex;align-items:center;justify-content:space-between;gap:.8rem;border-top:1px solid #bda58a74;padding-top:1rem}
.bill-total strong {font-size:1.5rem;color:#ffe5b5}.bill .primary-cta {width:100%;margin-top:1rem;background:#edd4a8;color:#391b27;border-color:#edd4a8}.bill .primary-cta:hover {background:#f9e6c6}
.bill-items,.bag-lines,.syllabus ol {list-style:none;margin:0;padding:0}.bill-items li {display:flex;justify-content:space-between;gap:.7rem;padding-block:.4rem}
.bag-lines li {display:grid;gap:.75rem;padding:1rem 0;border-bottom:1px solid var(--edge)}
.bag-lines li:first-child {padding-top:0}.bag-lines li:last-child {border:0}.bag-lines img {width:clamp(68px,9vw,108px);height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:3px}
.bag-info {flex:1;min-width:0}.bag-info strong {display:block;color:var(--wine);font-size:1.08rem}.bag-info>span {color:var(--quiet);font-size:.85rem}
.bag-product,.bag-controls,.bag-qty,.bag-stepper {display:flex;align-items:center;gap:.65rem}
.bag-product {gap:.85rem}.bag-product img {width:clamp(54px,9vw,80px)}
.bag-amount {font-size:.95rem;text-align:end}
.bag-controls {justify-content:space-between;flex-wrap:wrap}
.bag-qty-label {font-size:.85rem;color:var(--quiet)}
.bag-stepper {gap:0;border:1px solid #cdb8a3;border-radius:6px;background:#fffdf8}
.bag-count {min-width:2.3rem;text-align:center;border-inline:1px solid var(--edge);font-variant-numeric:tabular-nums}
.bag-step,.bag-remove-button {display:inline-flex;justify-content:center;align-items:center;min-width:44px;min-height:44px;border:0;background:transparent;color:var(--wine);cursor:pointer;padding:.25rem}
.bag-step {font:1.25rem/1 sans-serif}
.bag-step:disabled {opacity:.35;cursor:default}
.bag-remove {margin-inline-start:auto}.bag-remove button {gap:.35rem;font-size:.9rem}.bag-remove svg {width:1.05rem}
.bag-status {font-size:.9rem;color:var(--wine)}.bag-status:empty {margin:0}
.bag-end {text-align:end}.bag-end b {white-space:nowrap}.coupon-form {display:flex;align-items:end;gap:.6rem;margin-top:.7rem}.coupon-form label {flex:1}
.empty-bag {text-align:center;padding-block:3rem}.empty-bag svg {width:42px;height:42px;color:var(--wine);margin:auto auto 1rem}.empty-bag .button {margin-top:.8rem}
.form-sheet {display:grid;align-content:start;gap:1rem}.form-sheet h2 {margin:.4rem 0 0}.form-sheet label,.coupon-form label {display:grid;gap:.3rem;font-size:.92rem;font-weight:550}
.counter input:not([type=checkbox]):not([type=radio]):not([type=submit]),.counter textarea,.counter select {border-color:#bdab99;background:#fffcf7;border-radius:4px}
.pay-note,.transfer-details {background:#f2eada;border-inline-start:2px solid #a88555;padding:.75rem .9rem;color:#57463e;line-height:1.7;margin:0;font-size:.94rem}
.transfer-details {white-space:pre-line}.receipt-head {display:flex;justify-content:space-between;gap:.6rem;align-items:center;border-bottom:1px solid var(--edge);padding-bottom:1rem;flex-wrap:wrap}
.receipt-head strong {color:var(--wine)}.receipt-head bdi {display:block;font:600 .94rem/1.6 monospace}.upload-receipt {border:1px dashed #b79977;border-radius:5px;padding:1rem}.upload-receipt small {color:var(--quiet)}
.counter .booking-steps {display:flex;list-style:none;gap:.5rem;margin:0 0 1.4rem;padding:0;counter-reset:booking}
.counter .booking-steps li {flex:1;counter-increment:booking;display:flex;align-items:center;gap:.45rem;border:0;padding:.5rem 0;border-bottom:2px solid var(--edge);color:var(--quiet)}
.booking-steps li:before {content:counter(booking,decimal-leading-zero);font:normal .84rem Georgia,serif;color:#896e59}
.counter .booking-steps li[aria-current] {color:var(--wine);border-color:var(--wine);font-weight:700}
.choice-set {border:0;padding:0;margin:0 0 1.25rem}.choice-set legend,.form-sheet legend {font:700 1.55rem/1.4 var(--display);color:var(--wine);margin-bottom:.55rem}
.segmented {display:inline-flex;padding:4px;background:#efe5d7;gap:3px;border:1px solid var(--edge);border-radius:6px}
.segmented label {position:relative;min-width:8rem;text-align:center;padding:.48rem 1rem;border-radius:3px;cursor:pointer}
.segmented label:has(:checked) {background:var(--wine);color:white}
.segmented input {position:absolute;opacity:0}.segmented label:focus-within,.pattern-option:focus-within {outline:2px solid #936a34;outline-offset:3px}
.pattern-wall {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.pattern-option {position:relative;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--edge);border-radius:5px;overflow:hidden;cursor:pointer}
.pattern-option:has(:checked) {border-color:var(--wine);box-shadow:0 0 0 1px var(--wine)}
.pattern-option input {position:absolute;inset-inline-start:.65rem;top:.65rem;accent-color:var(--wine);width:1.1rem;height:1.1rem}
.pattern-option img {width:100%;height:auto;aspect-ratio:1.55;object-fit:cover}
.pattern-caption {display:grid;gap:.22rem;padding:.65rem .9rem}.pattern-caption strong {color:var(--wine);font:700 1.42rem/1.3 var(--display)}
.pattern-caption>span {font-size:.88rem}.pattern-caption>span>span {color:var(--quiet)}
form:has(input[name=coverage][value=full]:checked) .coverage-half,form:has(input[name=coverage][value=half]:checked) .coverage-full {display:none}
.choice-footer {display:flex;align-items:center;justify-content:space-between;gap:1rem}.choice-footer .button {min-width:15rem}
.schedule-layout {grid-template-columns:minmax(230px,.85fr) minmax(0,1.55fr)}.appointment-card {background:#442030;color:#fbefda;border-radius:6px;overflow:hidden}
.appointment-card img {width:100%;height:190px;object-fit:cover}.appointment-card>div {padding:1.1rem}.appointment-card h2 {color:#fff0d7;margin:0 0 .35rem}.appointment-card strong {display:block;color:#efd39e;font-size:1.3rem;margin-top:.4rem}
.form-sheet form.stack {width:100%;margin:.4rem 0}.form-sheet fieldset {border:0;padding:0;margin:0}.time-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:.5rem}
.time-list label {display:flex;align-items:center;justify-content:center;gap:.35rem;border:1px solid var(--edge);padding:.45rem;border-radius:3px;cursor:pointer;font-size:.88rem}
.time-list label:has(:checked) {background:var(--wine);color:white}.time-list input {width:.8rem;height:.8rem}
.course-invite,.class-opening {display:grid;grid-template-columns:1fr 1fr;align-items:center;background:#381a29;color:#f6e9d2;overflow:hidden;border-radius:6px}
.course-invite>div,.class-intro {padding:clamp(1.2rem,3vw,3rem)}.course-invite img,.class-opening>img {width:100%;height:100%;object-fit:cover;min-height:220px}
.course-invite h2,.class-opening h1 {color:#ffedcd;margin:.45rem 0}.course-invite p,.class-intro>p {line-height:1.8}.course-invite .studio-button {margin-top:1rem}
.class-intro .enrollment {width:fit-content;color:#f6d8a5;margin:.8rem 0 .15rem;font-weight:650}.class-intro .overline {color:#e7c799;font-size:.9rem}.class-opening .class-price {color:#f3d8a8}
.class-grid {margin-top:2rem}.lesson-preview video {display:block;width:100%;aspect-ratio:16/9;background:#2b1420;border-radius:4px}
.syllabus ol {counter-reset:module}.syllabus li {display:flex;align-items:center;gap:.75rem;padding:.7rem 0;border-bottom:1px solid var(--edge)}.syllabus li:last-child {border-bottom:0}
.syllabus li>span {font:1.3rem Georgia,serif;color:#946d4b}.syllabus small {display:block;color:var(--quiet)}
@media(max-width:760px){
 .counter-grid,.schedule-layout,.class-grid,.product-display,.class-opening {grid-template-columns:1fr}
 .bill {position:static}.counter-grid,.schedule-layout,.product-display {gap:1rem}.counter-head {margin-bottom:1rem}
 .product-portrait img {aspect-ratio:1.45}.product-display .object-copy h1 {font-size:2.75rem}.quantity-field input[type=number] {width:4rem}
 .object-copy .buy-form {margin-top:.8rem}.pattern-wall {grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
 .pattern-caption {padding:.55rem}.pattern-caption strong {font-size:1.22rem}.pattern-caption>span {font-size:.8rem}.pattern-option img {aspect-ratio:1.13}
 .choice-footer .button {width:100%;min-width:0}.choice-footer {flex-direction:column;align-items:stretch}
 .appointment-card {display:flex;align-items:center}.appointment-card img {width:92px;height:115px;align-self:stretch}.appointment-card>div {padding:.7rem 1rem}
 .appointment-card h2 {font-size:1.45rem}.appointment-card p {font-size:.86rem}.appointment-card strong {font-size:1rem}
 .class-opening>img {grid-row:1;min-height:0;height:auto;aspect-ratio:2.4;object-fit:cover}.class-intro {padding:1.25rem}
 .course-invite {grid-template-columns:1fr}.course-invite img {min-height:0;aspect-ratio:2.3;height:auto}.class-grid {gap:1rem;margin-top:1.4rem}
 .bag-end {font-size:.9rem}.class-opening h1 {font-size:2.45rem}
}
@media(max-width:380px){.pattern-caption>span>span {display:block}.segmented label {min-width:7rem}.coupon-form {flex-wrap:wrap}}
.ruby-interior .bill .button.primary-cta {background:#efd5a6;color:#371927;border-color:#efd5a6}
.checkout-side {display:grid;gap:.8rem;position:sticky;top:calc(var(--topbar-height) + 1rem)}.checkout-side .bill {position:static}
.class-film {padding:clamp(.75rem,2vw,1.5rem);min-width:0}.class-film video {width:100%;aspect-ratio:16/9;background:#29131c;display:block;border:1px solid #947c66;border-radius:4px}.class-film figcaption {color:#e9d4b1;font-size:.9rem;margin-top:.4rem}
.class-grid:has(>.syllabus:only-child){display:block}.class-grid:has(>.syllabus:only-child) ol {display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.class-grid:has(>.syllabus:only-child) li {border:0;border-inline-start:2px solid var(--edge);padding-inline-start:.7rem}
.counter .time-list label {min-height:44px}
@media(max-width:760px){.checkout-side {position:static}.class-grid:has(>.syllabus:only-child) ol {grid-template-columns:1fr;gap:.35rem}.class-film{padding-top:0}}
