/* BSX R14.4 · Unified commerce design · same Academy tokens in white/dark */
:root{--commerce-accent:var(--blue,#5c9cff);--commerce-ink:var(--text,#f5f8ff);--commerce-muted:var(--muted,#9eafc6);--commerce-line:var(--line,#22334c);--commerce-surface:var(--surface,#0d1c30);--commerce-surface2:var(--surface2,#11233b);--commerce-radius:24px;--commerce-focus:0 0 0 4px color-mix(in srgb,var(--commerce-accent) 24%,transparent)}
html .book-page,html .uo-page,html .bsx143-commerce,html .shop-checkout-modern{--b-accent:var(--commerce-accent);--b-text:var(--commerce-ink);--b-muted:var(--commerce-muted);--b-border:var(--commerce-line);--b-surface:var(--commerce-surface);--b-soft:color-mix(in srgb,var(--commerce-accent) 8%,var(--commerce-surface));color:var(--commerce-ink)}
html[data-theme=light] .book-page,html[data-theme=light] .uo-page{--b-accent:var(--blue,#245db9);--b-text:var(--text);--b-muted:var(--muted);--b-border:var(--line);--b-surface:var(--surface);--b-soft:var(--surface2)}
html .book-page,html .uo-page{max-width:none;width:min(calc(100% - 2*var(--bsx14-gutter,32px)),var(--bsx14-max,2080px));padding-block:clamp(24px,3vw,54px) clamp(72px,8vw,125px)}
html .book-page .book-store-hero,html .book-page .book-product-card,html .book-page .book-admin-section,html .book-page .book-order-summary,html .book-page .book-form-card,html .uo-page .uo-order-card,html .uo-page .uo-filters,html .uo-page .uo-kpis>div{border:1px solid var(--commerce-line);background:var(--commerce-surface);box-shadow:0 12px 38px rgba(1,13,40,.10);border-radius:var(--commerce-radius);color:var(--commerce-ink)}
html .book-page .book-store-hero{background:radial-gradient(circle at 88% 14%,color-mix(in srgb,var(--commerce-accent) 18%,transparent),transparent 55%),linear-gradient(130deg,var(--commerce-surface2),var(--commerce-surface));padding:clamp(28px,4vw,64px);min-height:clamp(390px,34vw,540px)}
html[data-theme=light] .book-page .book-store-hero{background:radial-gradient(circle at 87% 6%,rgba(36,93,185,.12),transparent 55%),linear-gradient(130deg,#fff,#eef4fd)}
html .book-page .book-store-hero h1,html .book-page .book-heading h1,html .uo-page .uo-heading h1,html .shop-head h1{font-size:clamp(2.15rem,3.5vw,4.4rem);letter-spacing:-.055em;line-height:1.07;color:var(--commerce-ink);max-width:26ch}
html .book-page .book-product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,275px),1fr));gap:clamp(17px,1.8vw,30px)}
html .book-page .book-product-card{overflow:hidden;transition:transform .2s ease,border-color .2s ease;display:flex;flex-direction:column;min-width:0}
html .book-page .book-product-card:hover{transform:translateY(-3px);border-color:var(--commerce-accent)}
html .book-page .book-product-content{flex:1;display:flex;flex-direction:column;gap:12px}
html .book-page .book-product-bottom{margin-top:auto}
html .book-page .book-product-art img{object-fit:contain;max-height:350px;width:100%;background:var(--commerce-surface2)}
html .book-page :is(.book-product-card,.book-detail-copy,.book-heading,.book-admin-section) :is(h1,h2,h3,strong){color:var(--commerce-ink)}
html .book-page :is(.book-kicker,.book-overline,.book-price,.book-detail-price,.book-admin-links a),html .uo-page :is(.uo-kicker,.uo-ref,.uo-type,.uo-card-side>a){color:var(--commerce-accent)!important}
html .book-page :is(.book-kicker,.book-overline),html .uo-page .uo-kicker{letter-spacing:.14em;font-weight:800;text-transform:uppercase}
html .book-page :is(.book-product-card,.book-detail-copy,.book-admin-section) :is(p,small),html .uo-page :is(p,small,.uo-card-meta){color:var(--commerce-muted)}
html .book-page :is(.book-filter input,.book-filter select,.book-admin-form input,.book-admin-form textarea,.book-admin-form select),html .uo-page .uo-filters :is(input,select),html .bsx143-commerce :is(input,select){background:var(--commerce-surface2);border:1px solid var(--commerce-line);color:var(--commerce-ink);border-radius:13px;min-height:45px}
html :is(.book-page,.uo-page,.bsx143-commerce) :is(a,button,input,select,textarea):focus-visible{outline:2px solid var(--commerce-accent);outline-offset:3px;box-shadow:var(--commerce-focus)}
html .book-page .book-nav{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin-bottom:30px}
html .book-page .book-nav a{border-radius:12px;border:1px solid var(--commerce-line);padding:11px 17px;color:var(--commerce-muted);background:var(--commerce-surface)}
html .book-page .book-nav a:hover,html .book-page .book-nav a[aria-current=page]{border-color:var(--commerce-accent);color:var(--commerce-accent)}
html .book-page .book-service-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:clamp(35px,4vw,60px)}
html .book-page .book-service-strip>div{padding:24px 28px;background:var(--commerce-surface);border:1px solid var(--commerce-line);border-radius:20px}
html .book-page .book-service-strip b{color:var(--commerce-accent);font-size:22px}
html .book-page .book-service-strip strong{display:block;margin:8px 0}
html .book-page .book-service-strip p{font-size:.85rem;line-height:1.65}
html .book-page :is(.book-alert,.book-notice),html .uo-page .uo-setup-notice{color:var(--commerce-ink);background:var(--commerce-surface2);border:1px solid var(--commerce-line);padding:15px 20px;border-radius:16px}
html .uo-page .uo-order-card{display:flex;gap:24px;min-width:0}
html .uo-page .uo-state{background:var(--commerce-surface2);color:var(--commerce-accent);border-color:var(--commerce-line)}
html .uo-page .uo-type-book{background:var(--commerce-surface2)}
html .uo-page .uo-filters{grid-template-columns:minmax(170px,1.5fr) repeat(3,minmax(120px,.8fr)) auto auto}
html .bsx143-commerce{width:min(calc(100% - 2*var(--bsx14-gutter,32px)),var(--bsx14-max,2080px));max-width:none}
html .shop-layout.bsx143-commerce .shop-columns,html .shop-layout .shop-checkout-modern{grid-template-columns:minmax(0,1.7fr) minmax(300px,.68fr);gap:clamp(18px,2.2vw,36px)}
html .bsx143-commerce .shop-line{border:1px solid var(--commerce-line);border-radius:20px;padding:clamp(16px,2vw,28px);background:var(--commerce-surface);display:flex;justify-content:space-between;gap:20px;min-width:0}
html .bsx143-commerce .shop-line .shop-tile{display:flex;align-items:center;gap:20px;min-width:0}
html .bsx143-commerce .shop-line .shop-tile>div{min-width:0}
html .bsx143-commerce .shop-line h2{font-size:clamp(1.05rem,1.2vw,1.45rem);line-height:1.35;margin:.38rem 0}
html .bsx143-commerce .bsx143-book-cover{display:block;flex:none}
html .bsx143-commerce .bsx143-book-cover img{display:block;width:82px;height:112px;object-fit:contain;border-radius:12px;background:var(--commerce-surface2)}
html .bsx143-commerce .bsx143-item-type{display:inline-flex;color:var(--commerce-accent);font-size:.75rem;letter-spacing:.075em;text-transform:uppercase;font-weight:800}
html .bsx143-commerce .shop-line-actions{flex-shrink:0;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:12px}
html .bsx143-commerce .bsx143-unified-summary{position:sticky;top:110px;align-self:start;border:1px solid var(--commerce-line);border-radius:var(--commerce-radius);padding:clamp(22px,2.3vw,35px);background:var(--commerce-surface)}
html .bsx143-commerce .bsx143-unified-summary .grand{border-top:1px solid var(--commerce-line);margin-top:20px;padding-top:22px;font-size:1.14rem}
html .bsx143-commerce .bsx143-unified-summary .grand strong{font-size:clamp(1.4rem,2.2vw,2rem);color:var(--commerce-accent)}
html .shop-layout .bsx144-order-book{align-items:center;gap:16px}
html .shop-layout .bsx144-order-book span{display:grid;gap:6px}
html .shop-layout .bsx144-order-book small{display:block;color:var(--commerce-muted)}
html .shop-layout .bsx144-download{padding:8px 0 22px}
html .shop-layout .bsx144-fulfilment{padding:14px;border-radius:13px;border:1px solid var(--commerce-line)}
html .bsx143-commerce .bsx143-empty-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
html .book-page .btn.primary,html .bsx143-commerce .btn.primary,html .uo-page .btn.primary{background:linear-gradient(125deg,var(--blue,#5c9cff),var(--blue2,#2e6de4));border:1px solid var(--blue2,#2e6de4);color:#fff;box-shadow:0 10px 25px rgba(35,92,192,.16)}
html .book-page .btn.primary:hover,html .bsx143-commerce .btn.primary:hover{filter:brightness(1.1)}
@media(min-width:1500px){html .book-page .book-detail-hero{grid-template-columns:minmax(330px,.72fr) minmax(0,1.28fr);gap:clamp(32px,5vw,96px)}html .book-page .book-store-hero{grid-template-columns:minmax(0,1.5fr) minmax(300px,.6fr)}}
@media(max-width:1100px){html .uo-page .uo-filters{grid-template-columns:repeat(2,minmax(0,1fr))}html .shop-layout.bsx143-commerce .shop-columns,html .shop-layout .shop-checkout-modern{grid-template-columns:minmax(0,1.3fr) minmax(255px,.8fr)}}
@media(max-width:850px){html .book-page .book-service-strip{grid-template-columns:1fr}html .shop-layout.bsx143-commerce .shop-columns,html .shop-layout .shop-checkout-modern{grid-template-columns:1fr}html .bsx143-commerce .bsx143-unified-summary{position:static}html .uo-page .uo-order-card{flex-direction:column;align-items:stretch}}
@media(max-width:600px){html .book-page,html .uo-page,html .bsx143-commerce{width:calc(100% - 32px)}html .bsx143-commerce .shop-line{flex-direction:column;align-items:stretch}html .bsx143-commerce .shop-line-actions{align-items:flex-start;flex-direction:row;justify-content:space-between;flex-wrap:wrap}html .book-page .book-store-hero{grid-template-columns:1fr;padding:24px}html .uo-page .uo-filters{grid-template-columns:1fr}html .book-page .book-product-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html .book-page *,html .uo-page *,html .bsx143-commerce *{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* R16.2: scoped conversion and accessibility polish; preserve R14.4 button styling. */
.shop-checkout-form .bsx162-same-address{padding:13px 15px;border:1px solid var(--line);border-radius:13px;background:var(--surface2);align-items:center;margin-block:4px 12px}
.shop-checkout-form .bsx162-same-address input{width:19px;height:19px;flex:none;accent-color:var(--blue)}
.shop-checkout-form .shop-field :is(input,textarea)[readonly]{opacity:.88;background:var(--surface2);cursor:default}
.shop-checkout-form .bsx162-checkout-hint{border-left:3px solid var(--blue);padding:10px 12px;margin:5px 0;background:var(--surface2);border-radius:0 10px 10px 0;line-height:1.6}
.shop-checkout-form[data-validation-attempted="true"] .shop-field :is(input,textarea):invalid{border-color:#cf4444;outline-color:#cf4444}
@media(max-width:640px){.shop-checkout-form .bsx162-same-address{padding:14px 12px;min-height:48px}.shop-checkout-form .bsx162-checkout-hint{font-size:13px}}
@media(prefers-reduced-motion:reduce){.shop-checkout-form .bsx162-same-address{transition:none}}

/* E38: validation states include consent, radios and restored form values. */
.shop-checkout-form[data-validation-attempted="true"] :is(input,textarea,select)[aria-invalid="true"]{outline:2px solid #c44747;outline-offset:2px}
.shop-checkout-form .shop-field{min-width:0}
.shop-checkout-form .shop-field :is(input,textarea,select){box-sizing:border-box;max-width:100%;min-width:0}
.shop-checkout-form .shop-check span,.shop-checkout-form .shop-radio{overflow-wrap:anywhere}
@media(max-width:640px){.shop-checkout-form .shop-field :is(input,textarea,select){font-size:max(16px,1rem);min-height:44px}.shop-checkout-form .shop-radio,.shop-checkout-form .shop-check{min-height:44px}}
