.commerce { max-width:1200px; }
.commerce-list { max-width:none; }
.commerce [hidden] { display:none !important; }
.commerce-nav { display:flex; gap:24px; border-bottom:1px solid var(--line); margin-bottom:20px; }
.commerce-nav a { padding:10px 0; text-decoration:none; border-bottom:2px solid transparent; }
.commerce-nav a.active { color:var(--accent-dark); border-color:var(--accent); }
.checkout-panel { display:grid; grid-template-columns:minmax(0,1fr) 295px; background:var(--panel); border:1px solid var(--line); border-radius:14px; }
.checkout-main { padding:25px; min-width:0; }
.checkout-section + .checkout-section { margin-top:26px; }
.checkout-section h2 { display:flex; align-items:center; gap:9px; font-size:16px; margin:0 0 14px; }
.checkout-section h2 > span { border-radius:50%; background:var(--soft); color:var(--muted); font-size:12px; display:grid; place-items:center; width:24px; height:24px; }
.commerce .field { display:flex; flex-direction:column; gap:6px; margin-top:12px; min-width:0; }
.commerce .field > span { font-size:12px; color:var(--muted); }
.commerce input:not([type=checkbox]):not([type=hidden]),.commerce select,.commerce textarea { font:inherit; width:100%; min-width:0; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--text); }
.commerce input[readonly] { background:var(--soft); }
.commerce-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:start; }
.commerce-hint,.commerce .field small { color:var(--muted); font-size:12px; margin-top:7px; }
.student-picker { position:relative; background:var(--soft); padding:12px; border-radius:10px; }
.student-picker .field { margin:0; }
.student-picker [data-student-detail] { margin-top:7px; font-size:12px; }
.student-options { position:absolute; z-index:25; left:12px; right:12px; top:76px; max-height:310px; overflow:auto; background:var(--panel); border:1px solid var(--line); border-radius:9px; box-shadow:var(--shadow); }
.student-option { padding:10px 12px; cursor:pointer; border-bottom:1px solid var(--line); }
.student-option[aria-selected=true],.student-option:hover { background:var(--good); }
.student-option strong { font-weight:500; display:block; }
.student-option small { color:var(--muted); display:block; }
.student-option mark { background:#ffe0aa; color:inherit; }
.student-options .empty { padding:12px; color:var(--muted); }
.variant-buttons { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:8px; margin:12px 0; }
.variant-button { font:inherit; text-align:left; border:1px solid var(--line); border-radius:8px; padding:12px; color:var(--text); background:var(--panel); cursor:pointer; overflow-wrap:anywhere; }
.variant-button small { display:block; margin-top:8px; color:var(--muted); }
.variant-button[aria-pressed=true] { border-color:var(--accent); background:#fcf0e9; box-shadow:inset 0 0 0 1px var(--accent); }
.checkout-summary { padding:25px; background:var(--soft); border-left:1px solid var(--line); border-radius:0 14px 14px 0; display:flex; flex-direction:column; min-width:0; }
.checkout-summary h2 { font-size:16px; }
.checkout-summary h3 { margin:20px 0 5px; overflow-wrap:anywhere; }
.checkout-summary > .muted { font-size:12px; margin-bottom:22px; }
.summary-row { display:flex; justify-content:space-between; gap:12px; margin-top:15px; font-size:13px; }
.summary-row span:first-child { color:var(--muted); }
.summary-row span:last-child { white-space:nowrap; font-variant-numeric:tabular-nums; }
.checkout-total { margin:20px 0 5px; padding-top:20px; border-top:1px solid var(--line); }
.checkout-total strong { display:block; font-size:30px; font-weight:500; font-variant-numeric:tabular-nums; }
.checkout-credit { padding:14px; margin-top:22px; background:var(--good); color:var(--good-text); border-radius:9px; }
.checkout-submit { padding-top:26px; margin-top:auto; }
.checkout-submit .button { width:100%; justify-content:center; }
.checkout-submit small { display:block; color:var(--muted); font-size:11px; text-align:center; margin-top:9px; }
.checkout-submit .error { margin-bottom:10px; }
.commerce-extra { margin-top:24px; }
.commerce-extra summary { cursor:pointer; color:var(--muted); }
.commerce .panel + .panel { margin-top:18px; }
.product-row,.commerce-sale-row { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:17px 0; border-bottom:1px solid var(--line); }
.product-row:last-child,.commerce-sale-row:last-child { border-bottom:0; }
.product-row > div,.commerce-sale-row > div { min-width:0; overflow-wrap:anywhere; }
.product-row h2 { font-size:17px; }
.product-row p { margin-top:5px; }
.product-row .button { flex-shrink:0; }
.product-variants { display:flex; flex-wrap:wrap; gap:5px 18px; font-size:13px; margin-top:8px; }
.product-editor { max-width:780px; }
.product-editor section { margin:23px 0; }
.product-editor .form-actions { margin-top:20px; display:flex; gap:10px; }
.commerce-checkbox { display:flex; align-items:center; gap:8px; }
.commerce-variant { padding:15px 0; border-top:1px solid var(--line); }
.commerce-variant-head { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:end; }
.commerce-variant-fields { display:grid; grid-template-columns:1.2fr .7fr 1fr; gap:10px; }
.commerce-filter { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:18px; }
.commerce-filter input { flex:2 1 250px; }.commerce-filter select { flex:1 1 170px; }
.sale-amount { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }.sale-amount small { display:block; color:var(--muted); margin-top:5px; white-space:normal; }
.commerce-pagination { display:flex; justify-content:center; align-items:center; gap:14px; margin-top:18px; }
.commerce-receipt { display:grid; grid-template-columns:1fr 1fr; gap:25px; }
.commerce-receipt p { margin-top:9px; }.receipt-total { font-size:30px; font-weight:500; }
.commerce-payment { max-width:780px; }.commerce-payment summary { cursor:pointer; font-weight:500; }.commerce-payment button { margin-top:18px; }
@media(max-width:1000px) { .checkout-panel { grid-template-columns:minmax(0,1fr) 245px; }.checkout-main,.checkout-summary { padding:18px; } }
@media(max-width:760px) { .checkout-panel,.commerce-receipt { grid-template-columns:1fr; }.checkout-summary { border-left:0; border-top:1px solid var(--line); border-radius:0 0 14px 14px; }.commerce-fields { grid-template-columns:1fr; }.product-row,.commerce-sale-row { align-items:flex-start; flex-direction:column; }.sale-amount { text-align:left; }.commerce-variant-fields { grid-template-columns:1fr 1fr; }.commerce-variant-fields > label:first-child { grid-column:1/-1; } }
@media(pointer:coarse) { .commerce input,.commerce select,.commerce textarea { font-size:16px !important; }.student-option { min-height:48px; } }
