/* Public commerce reads the same Appearance/design-system tokens as the rest of the site. */
.thp-site .commerce-scope{color:var(--ds-ink);background:transparent;min-width:0}
.thp-site .commerce-scope [hidden]{display:none!important}
.thp-site .commerce-scope :is(h2,h3){text-wrap:pretty}
.thp-site .commerce-scope :is(a,button,input,select,summary,textarea):focus-visible{outline:3px solid var(--ds-link);outline-offset:3px}
.thp-site .commerce-scope :is(.shop-product-card,.shop-buy-panel,.account-extra-panel,.account-section-nav,.shop-filter-panel){box-sizing:border-box;min-width:0;border:1px solid color-mix(in srgb,var(--ds-line) 25%,var(--ds-surface));border-radius:var(--ds-radius-card);background:var(--ds-surface);color:var(--ds-ink)}
.thp-site .commerce-scope :is(input,select,textarea){font-size:var(--base-font-size,16px);max-width:100%;min-width:0}
.thp-site .commerce-scope :is(button,.button,input,select,summary){min-height:44px}
.thp-site .commerce-scope .shop-breadcrumbs{display:flex;flex-wrap:wrap;gap:.5rem;font-size:.875rem;margin-bottom:1rem}
.thp-site .commerce-scope .shop-intro{margin-bottom:1.5rem}.thp-site .commerce-scope .shop-intro .lead{font-size:1em;max-width:75ch}
.thp-site .commerce-scope .shop-category-cover{width:100%;max-height:240px;aspect-ratio:5/1;object-fit:cover;border-radius:var(--ds-radius-card)}
.thp-site .commerce-scope .shop-category-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:.75rem;margin-bottom:1.5rem}
.thp-site .commerce-scope .shop-category-tiles>a{display:flex;gap:.75rem;align-items:center;justify-content:space-between;padding:.8rem;text-decoration:none}
.thp-site .commerce-scope .shop-category-tiles img{width:64px;height:48px;object-fit:cover;border-radius:var(--ds-radius)}
.thp-site .commerce-scope .shop-catalog{display:grid;grid-template-columns:minmax(190px,23%) minmax(0,1fr);gap:1.5rem;align-items:start}
.thp-site .commerce-scope .shop-filter-position,.thp-site .commerce-scope .shop-results{min-width:0}
.thp-site .commerce-scope .shop-filter-panel{padding:1rem}.thp-site .commerce-scope .shop-filter-panel summary{font-weight:800}
.thp-site .commerce-scope .shop-filter-panel form{display:grid;gap:1rem}.thp-site .commerce-scope fieldset{min-width:0;margin:0;padding:.7rem;border:1px solid var(--ds-line);border-radius:var(--ds-radius)}
.thp-site .commerce-scope legend{font-size:.875rem;font-weight:700;padding:0 .3rem}
.thp-site .commerce-scope .shop-category-tree,.thp-site .commerce-scope .shop-category-tree ul{list-style:none;padding:0;margin:0}.thp-site .commerce-scope .shop-category-tree ul{padding-inline-start:.75rem;border-inline-start:1px solid var(--ds-line)}
.thp-site .commerce-scope .shop-category-tree li{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem}.thp-site .commerce-scope .shop-category-tree label{display:flex;flex:1;align-items:center;gap:.5rem;font-size:.875rem;padding-block:.4rem;min-height:44px}
.thp-site .commerce-scope .shop-category-tree input{min-height:0;width:auto;flex:0 0 auto}.thp-site .commerce-scope .shop-category-tree li>a{display:inline-flex;min-width:32px;min-height:44px;align-items:center;justify-content:center}.thp-site .commerce-scope .shop-category-tree li>ul{flex-basis:100%}
.thp-site .commerce-scope .shop-price-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
.thp-site .commerce-scope .shop-results-heading{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-bottom:.75rem}.thp-site .commerce-scope .shop-results-heading h2{font-size:1.25rem;margin:0}.thp-site .commerce-scope .shop-results-heading p{margin:0;font-size:.875rem}
.thp-site .commerce-scope .shop-active-filters{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:1rem}.thp-site .commerce-scope .shop-active-filters a{gap:.4rem;min-height:36px;text-decoration:none}
.thp-site .commerce-scope .shop-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,13rem),1fr));gap:1rem;align-items:stretch}
.thp-site .commerce-scope .shop-product-card{display:flex;flex-direction:column;overflow:hidden;box-shadow:0 3px 12px color-mix(in srgb,var(--ds-ink) 4%,transparent)}
.thp-site .commerce-scope .shop-product-image{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;background:color-mix(in srgb,var(--ds-brand) 3%,var(--ds-surface));padding:.75rem;box-sizing:border-box}
.thp-site .commerce-scope .shop-product-image img{display:block;width:100%;height:100%;max-height:260px;object-fit:contain}
.thp-site .commerce-scope .shop-image-placeholder{display:grid;place-items:center;min-height:160px;padding:1rem;background:color-mix(in srgb,var(--ds-brand) 5%,var(--ds-surface));color:var(--ds-link);font-weight:800}
.thp-site .commerce-scope .shop-card-body{display:flex;flex-direction:column;gap:.6rem;padding:1rem;flex:1}.thp-site .commerce-scope .shop-card-body h2{font-size:1.125rem;margin:0}.thp-site .commerce-scope .shop-card-body p{margin:0}
.thp-site .commerce-scope .shop-card-excerpt{font-size:.875rem;line-height:1.5}.thp-site .commerce-scope .shop-badges{display:flex;flex-wrap:wrap;gap:.35rem}.thp-site .commerce-scope .shop-badges .ds-badge{font-size:.75rem}
.thp-site .commerce-scope .shop-card-price{margin-top:auto;display:grid;gap:.2rem}.thp-site .commerce-scope .shop-card-price strong{font-size:1.2rem}.thp-site .commerce-scope .shop-card-price small{font-size:.75rem;color:var(--ds-muted)}
.thp-site .commerce-scope .shop-stock{font-size:.8125rem}.thp-site .commerce-scope .shop-card-body :is(form,.button,button){width:100%}.thp-site .commerce-scope .ds-pagination{margin-top:1.5rem}.thp-site .commerce-scope .ds-pagination a{min-width:44px;min-height:44px;display:grid;place-items:center;border:1px solid var(--ds-line);border-radius:var(--ds-radius)}
.thp-site .commerce-scope .shop-product-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(240px,1fr);gap:1.5rem;align-items:start;margin-block:1.5rem}
.thp-site .commerce-scope .shop-gallery{min-width:0}.thp-site .commerce-scope .shop-gallery>a{display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--ds-brand) 3%,var(--ds-surface));border-radius:var(--ds-radius-card)}
.thp-site .commerce-scope .shop-gallery>a img{display:block;width:100%;height:auto;max-height:480px;aspect-ratio:1/1;object-fit:contain}
.thp-site .commerce-scope .shop-gallery-thumbs{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem}.thp-site .commerce-scope .shop-gallery-thumbs a{border:1px solid var(--ds-line);padding:.25rem;border-radius:var(--ds-radius)}.thp-site .commerce-scope .shop-gallery-thumbs img{width:72px;height:72px;object-fit:contain}
.thp-site .commerce-scope .shop-buy-panel{padding:1.25rem;position:sticky;top:8rem}.thp-site .commerce-scope .shop-price{font-size:1.9rem;font-weight:800;margin:0}.thp-site .commerce-scope .shop-buy-panel>p{margin-top:.5rem}
.thp-site .commerce-scope .shop-buy-panel form{display:grid;grid-template-columns:88px minmax(0,1fr);gap:.75rem;align-items:end;margin-block:1rem}.thp-site .commerce-scope .shop-buy-panel label{font-size:.875rem}
.thp-site .commerce-scope .shop-variants{display:flex;flex-wrap:wrap;gap:.5rem;margin-block:1rem}.thp-site .commerce-scope .shop-variants a{display:flex;align-items:center;min-height:44px;border:1px solid var(--ds-line);border-radius:var(--ds-radius);padding:.4rem .6rem}.thp-site .commerce-scope .shop-variants [aria-current]{border:2px solid var(--ds-link);font-weight:800}
.thp-site .commerce-scope .shop-delivery{padding-top:1rem;border-top:1px solid var(--ds-line)}.thp-site .commerce-scope .shop-delivery h2{font-size:1.125rem}.thp-site .commerce-scope .shop-trust-note{font-size:.875rem;color:var(--ds-muted)}
.thp-site .commerce-scope .shop-product-information{margin-block:1.5rem}.thp-site .commerce-scope .shop-tab-buttons{display:flex;flex-wrap:wrap;gap:.5rem;padding-bottom:.75rem;border-bottom:1px solid var(--ds-line)}
.thp-site .commerce-scope .shop-tab-buttons [aria-selected=false]{background:var(--ds-surface);color:var(--ds-link)}.thp-site .commerce-scope .shop-product-information [role=tabpanel]{padding-block:1rem}.thp-site .commerce-scope .shop-product-information [role=tabpanel] h2{font-size:1.25rem}
.thp-site .commerce-scope .shop-tags{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;padding:0}.thp-site .commerce-scope .shop-tags li{border:1px solid var(--ds-line);border-radius:var(--ds-radius);padding:.3rem .5rem}
.thp-site .commerce-scope .shop-related{margin-block:2rem}.thp-site .commerce-scope dialog{box-sizing:border-box;border:2px solid var(--ds-line);border-radius:var(--ds-radius-card);background:var(--ds-surface);color:var(--ds-ink);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:1rem}
.thp-site .commerce-scope dialog::backdrop{background:color-mix(in srgb,var(--ds-ink) 55%,transparent)}
.thp-site .commerce-scope .shop-image-dialog img{display:block;max-width:85vw;max-height:75dvh;object-fit:contain}.thp-site .commerce-scope .shop-image-dialog button{display:block;margin-inline-start:auto;margin-bottom:.75rem}
.thp-site .commerce-scope .shop-filter-dialog{width:min(30rem,100vw);height:100dvh;max-width:100vw;max-height:100dvh;margin:0 0 0 auto;border-radius:0;overflow-y:auto}.thp-site .commerce-scope .shop-filter-dialog header{display:flex;gap:.75rem;align-items:center;justify-content:space-between}.thp-site .commerce-scope .shop-filter-dialog h2{font-size:1.2rem}.thp-site .commerce-scope .shop-filter-dialog .shop-filter-panel{padding:0;border:0}
.commerce-modal-open{overflow:hidden}
.thp-site .commerce-scope .commerce-steps{margin-bottom:1.5rem}.thp-site .commerce-scope .commerce-steps ol{list-style:none;display:flex;flex-wrap:wrap;gap:.75rem;counter-reset:step;padding:0;margin:0}.thp-site .commerce-scope .commerce-steps li{display:flex;gap:.5rem;align-items:center;padding:.5rem .75rem;border:1px solid var(--ds-line);border-radius:var(--ds-radius)}.thp-site .commerce-scope .commerce-steps li:before{counter-increment:step;content:counter(step);font-weight:800}.thp-site .commerce-scope .commerce-steps [aria-current]{border:2px solid var(--ds-link);font-weight:800}
.thp-site .commerce-scope .shop-flow-grid{gap:1.25rem}.thp-site .commerce-scope .shop-flow-grid .card{padding:1.25rem}.thp-site .commerce-scope .cart-row{align-items:center}.thp-site .commerce-scope .cart-row h3{font-size:1.125rem;margin-bottom:.35rem}.thp-site .commerce-scope .cart-row img{width:64px;height:80px;object-fit:contain}
.thp-site .commerce-scope .checkout-line{gap:1rem}.thp-site .commerce-scope .product-purchase-box small{display:block;margin-top:.75rem;color:var(--ds-muted)}
.thp-site .commerce-scope .account-workspace{display:grid;grid-template-columns:190px minmax(0,1fr);gap:1.5rem;align-items:start}.thp-site .commerce-scope .account-main{min-width:0}
.thp-site .commerce-scope .account-section-nav{display:grid;gap:.25rem;padding:.75rem;position:sticky;top:8rem}.thp-site .commerce-scope .account-section-nav a{display:flex;align-items:center;min-height:44px;padding:.5rem .65rem;border-radius:var(--ds-radius);text-decoration:none}.thp-site .commerce-scope .account-section-nav a:is(:hover,:focus-visible){background:color-mix(in srgb,var(--ds-brand) 6%,var(--ds-surface));text-decoration:underline}
.thp-site .commerce-scope .account-dashboard{padding:0}.thp-site .commerce-scope .dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin-block:1rem}.thp-site .commerce-scope .stat{min-width:0;padding:.75rem}.thp-site .commerce-scope .stat strong{font-size:1.5rem}.thp-site .commerce-scope .stat span{font-size:.8125rem}
.thp-site .commerce-scope :is(.dashboard-panels,.account-result-cards,.account-course-cards,.account-settings-grid){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:1rem}.thp-site .commerce-scope .account-dashboard .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:1rem}
.thp-site .commerce-scope .account-extra-panel{padding:1rem;margin-top:1.25rem}.thp-site .commerce-scope .account-extra-panel h2{font-size:1.25rem;margin-top:0}.thp-site .commerce-scope .account-extra-panel form{display:grid;gap:1rem;max-width:36rem}.thp-site .commerce-scope .account-extra-panel dd{margin-inline-start:0;overflow-wrap:anywhere}.thp-site .commerce-scope .table-wrap{max-width:100%;overflow:auto}.thp-site .commerce-scope .account-main td{overflow-wrap:anywhere}
.thp-site .commerce-scope .account-welcome{padding:.75rem 0 1.25rem;border-bottom:1px solid var(--ds-line);margin-bottom:1.5rem}.thp-site .commerce-scope .account-welcome p{max-width:65ch;margin-block:.35rem}
.thp-site .commerce-scope.commerce-auth> .commerce-auth{max-width:42rem;margin-inline:auto}.thp-site .commerce-auth .form{padding:1rem;border:1px solid var(--ds-line);border-radius:var(--ds-radius-card);background:var(--ds-surface)}
.thp-site .commerce-scope .error,.thp-site .commerce-scope [role=alert]{border-inline-start:4px solid var(--ds-link);padding:.75rem 1rem;background:var(--ds-surface);color:var(--ds-ink)}
.shop-admin-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem}.shop-admin-tree{list-style:none;padding:0}.shop-admin-tree li>div{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;padding:.5rem;padding-inline-start:min(calc(var(--tree-depth,0)*1rem + .5rem),25%);border-bottom:1px solid var(--border,var(--accent))}.shop-admin-tree form{display:flex;gap:.25rem;margin-inline-start:auto}.shop-admin-tree [draggable]{cursor:grab;min-width:32px;min-height:44px;display:grid;place-items:center}.shop-admin-tree .is-dragging{opacity:.55}.shop-admin-layout form{display:grid;gap:.7rem}.shop-admin-tree form{display:flex}.shop-admin-layout .checkbox-label{display:flex;align-items:center;gap:.5rem}
@media(max-width:1023px){.thp-site .commerce-scope .account-workspace{grid-template-columns:minmax(0,1fr)}.thp-site .commerce-scope .account-section-nav{position:static;grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.shop-admin-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:899px){.thp-site .commerce-scope .shop-catalog{grid-template-columns:minmax(0,1fr)}.thp-site .commerce-scope [data-shop-enhanced]>.shop-filter-position{display:none}.thp-site .commerce-scope .shop-product-layout{grid-template-columns:minmax(0,1fr)}.thp-site .commerce-scope .shop-buy-panel{position:static}.thp-site .commerce-scope .shop-gallery>a img{max-height:380px}.thp-site .commerce-scope .shop-category-cover{aspect-ratio:3/1;max-height:180px}}
@media(max-width:520px){.thp-site .commerce-scope .shop-product-grid{grid-template-columns:minmax(0,1fr)}.thp-site .commerce-scope .shop-product-image{aspect-ratio:4/3}.thp-site .commerce-scope .shop-product-image img{max-height:240px}.thp-site .commerce-scope .shop-buy-panel form{grid-template-columns:minmax(0,1fr)}.thp-site .commerce-scope .dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.thp-site .commerce-scope .commerce-steps ol{gap:.35rem}.thp-site .commerce-scope .commerce-steps li{padding:.4rem;font-size:.8125rem}}
html.thp-high-contrast .thp-site .commerce-scope :is(.shop-product-card,.shop-buy-panel,.account-extra-panel,.account-section-nav,.shop-filter-panel,.ds-badge){border:2px solid var(--ds-ink);box-shadow:none}
html.thp-high-contrast .thp-site .commerce-scope .shop-tab-buttons [aria-selected=true]{background:var(--ds-surface);color:var(--ds-ink);text-decoration:underline;border:2px solid var(--ds-ink)}
@media(prefers-reduced-motion:reduce){.commerce-scope *{scroll-behavior:auto!important;transition:none!important}}

.thp-site:has([data-commerce]) .consent-actions .secondary{background:var(--ds-surface);color:var(--ds-link);border-color:var(--ds-link)}

/* Legacy commerce rows use the same surface and fluid columns as the design system. */
.thp-site .commerce-scope .cart-row{background:var(--ds-surface);color:var(--ds-ink);grid-template-columns:64px minmax(0,1fr) minmax(65px,90px) minmax(75px,110px)}
.thp-site .commerce-scope .account-main :is(.dashboard-stats,.dashboard-panels){grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}
.thp-site .commerce-scope .account-main :is(.card,.stat){min-width:0;overflow-wrap:anywhere}
.thp-site:has([data-commerce]) .consent-banner[hidden]{display:none!important}
@media(max-width:600px){.thp-site .commerce-scope .cart-row{grid-template-columns:48px minmax(0,1fr)}.thp-site .commerce-scope .cart-row img{width:48px;height:60px}.thp-site .commerce-scope .cart-row label{grid-column:2}.thp-site .commerce-scope .cart-row>strong{grid-column:2}}
.thp-site .commerce-scope .container{box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin-inline:0;padding-inline:0}
.thp-site .commerce-scope .account-dashboard{grid-template-columns:minmax(0,1fr)}.thp-site .commerce-scope .account-dashboard>*{min-width:0}
