/* E4–E6. The original storefront/services remain authoritative. B19 skin only. */
html .p23-e1-shop { --shop-stock-out: var(--p23-muted); }
html .p23-e1-shop .p23-section { margin: 0 0 32px; padding: 0; min-width: 0; }
html .p23-e1-shop .p23-main > .p23-section > h1,
html .p23-e1-shop .shop-product-top h1 { margin: 0 0 18px; text-transform: uppercase; font-weight: 900; }
html .p23-e1-shop :is(.shop-summary,.p23-card,.shop-bmc-card,.shop-download-panel) { padding: 24px; border: 1px solid var(--p23-line); border-radius: 6px; background: var(--p23-panel); box-shadow: none; min-width: 0; }
html .p23-e1-shop :is(.p23-card,.shop-summary) > :first-child { margin-top: 0; }
html .p23-e1-shop :is(.p23-card,.shop-summary) > :last-child { margin-bottom: 0; }
html .p23-e1-shop :is(.shop-muted,.shop-card-variant-hint,.shop-price-sub) { color: var(--p23-muted); }
html .p23-e1-shop :is(.shop-price,.shop-price-main) { color: var(--p23-text); font-weight: 900; }
html .p23-e1-shop .shop-price-main { font-size: 23px; line-height: 1.3; }
html .p23-e1-shop .shop-price-sub { font-size: 12px; font-weight: 400; white-space: normal; }
html .p23-e1-shop :is(label,legend) { line-height: 1.5; }
html .p23-e1-shop label:not(:has(input[type='checkbox'])):not(:has(input[type='radio'])) { display: block; margin-bottom: 7px; }
html .p23-e1-shop :is(input[type='radio'],input[type='checkbox']) { flex: 0 0 auto; width: 19px; height: 19px; margin: 2px 0; }
html .p23-e1-shop .p23-input { min-width: 0; }
html .p23-e1-shop textarea.p23-input { min-width: 0 !important; width: 100%; }
html .p23-e1-shop :is(.shop-form-row,.shop-grid) { min-width: 0; gap: 26px; }
html .p23-e1-shop .shop-form-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
html .p23-e1-shop .shop-form-row > * { min-width: 0; }
html .p23-e1-shop .shop-form-actions { margin-top: 22px; gap: 12px; }
html .p23-e1-shop .shop-summary-row { gap: 14px; padding-block: 5px; }
html .p23-e1-shop .shop-summary-value { min-width: 0; overflow-wrap: anywhere; }
html .p23-e1-shop .shop-category-chips { position: static; margin: 0 0 24px; }
html .p23-e1-shop .shop-category-chips-inner { background: transparent; padding: 0; box-shadow: none; border: 0; border-radius: 0; gap: 9px; }
html .p23-e1-shop .shop-chip { min-height: 44px; padding: 9px 12px; border: 1px solid var(--p23-line); border-radius: 4px; color: var(--p23-text); background: var(--p23-panel); line-height: 1.4; max-width: 100%; overflow-wrap: anywhere; }
html .p23-e1-shop .shop-chip.is-active { border-color: var(--p23-accent); box-shadow: inset 0 -2px var(--p23-accent); }
html .p23-e1-shop .shop-chip.is-featured:not(.is-active) { border-color: var(--p23-border); background: var(--p23-panel); box-shadow: none; color: var(--p23-text); }
html .p23-e1-shop .shop-chip--separator { border: 0; background: none; }
html .p23-e1-shop .shop-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 26px; }
html .p23-e1-shop .shop-card { padding: 0; gap: 0; overflow: hidden; border: 1px solid var(--p23-line); border-radius: 6px; background: var(--p23-panel); }
html .p23-e1-shop .shop-card-media { overflow: hidden; aspect-ratio: 1; background: var(--p23-bg-alt); }
html .p23-e1-shop .shop-card-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
html .p23-e1-shop .shop-card-body { padding: 22px 22px 12px; gap: 12px; }
html .p23-e1-shop .shop-card-body h3 { margin: 0; min-height: 0; font-size: 23px; line-height: 1.25; font-weight: 900; text-transform: none; }
html .p23-e1-shop .shop-card-body h3 .p23-meta-link { display: block; overflow: visible; -webkit-line-clamp: unset; line-clamp: unset; color: var(--p23-text); text-decoration: none; }
html .p23-e1-shop .shop-card-body .shop-price { text-align: left; margin-top: auto; padding-top: 6px; }
html .p23-e1-shop .shop-card-variant-hint { min-height: 1.5em; font-size: 12px; }
html .p23-e1-shop .shop-color-dots { margin: 0; min-height: 12px; }
html .p23-e1-shop .shop-color-dot { width: 14px; height: 14px; }
html .p23-e1-shop .shop-card-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 22px 22px; margin-top: auto; }
html .p23-e1-shop .shop-card-actions form { margin: 0; }
html .p23-e1-shop :is(.shop-badge,.shop-badge-inline) { font-size: 11px; padding: 5px 9px; border-radius: 3px; letter-spacing: .025em; }
html .p23-e1-shop .p23-search-form { margin: 18px 0 24px; padding: 16px; background: var(--p23-panel); border: 1px solid var(--p23-line); border-radius: 6px; }
html .p23-e1-shop .p23-search-row { gap: 12px; }
html .p23-e1-shop .shop-category-title { margin: 0 0 20px; font-size: clamp(30px,4vw,46px); text-transform: uppercase; font-weight: 900; }
html .p23-e1-shop .shop-product-top { align-items: start; gap: 36px; }
html .p23-e1-shop .shop-product-media { min-width: 0; margin-right: 0; }
html .p23-e1-shop .shop-product-media .p23-gallery-item img { display: block; max-height: 650px; object-fit: contain; }
html .p23-e1-shop .shop-product-media .shop-grid { grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 12px; }
html .p23-e1-shop .shop-product-media .shop-grid img { aspect-ratio: 1; object-fit: contain; }
html .p23-e1-shop .shop-product-full { padding-top: 12px; }
html .p23-e1-shop .shop-variant-group { margin: 0 0 26px; }
html .p23-e1-shop .shop-variant-options { gap: 10px; }
html .p23-e1-shop .shop-variant-pill { min-height: 44px; cursor: pointer; }
html .p23-e1-shop .shop-variant-pill.is-active { outline: 2px solid var(--p23-text); outline-offset: 2px; }
html .p23-e1-shop :is(.shop-size-summary,.shop-size-head,.shop-checkout-total) { background: var(--p23-bg-alt); color: var(--p23-text); border-color: var(--p23-line); }
html .p23-e1-shop .shop-size-table-wrap { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--p23-line); border-radius: 4px; }
html .p23-e1-shop :is(.shop-size-table,.shop-size-guide-table) { margin: 0; color: var(--p23-text); }
html .p23-e1-shop :is(.shop-size-table,.shop-size-guide-table) :is(th,td) { border-color: var(--p23-line); padding: 12px; }
html .p23-e1-shop .shop-size-table .p23-input { padding: 8px; }
html .p23-e1-shop .shop-color-all { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
html .p23-e1-shop .shop-richtext { line-height: 1.75; overflow-wrap: anywhere; }
html .p23-e1-shop .shop-richtext :is(h2,h3) { margin: 1.6em 0 .65em; scroll-margin-top: 24px; }
html .p23-e1-shop .shop-richtext h2 { font-size: clamp(24px,3vw,30px); }
html .p23-e1-shop .shop-richtext h3 { font-size: 22px; }
html .p23-e1-shop .shop-richtext p { margin: 0 0 1em; }
html .p23-e1-shop .shop-richtext a { color: var(--p23-link); }
html .p23-e1-shop .shop-richtext img { max-width: 100%; height: auto; }
html .p23-e1-shop .shop-information { max-width: 820px; margin-inline: auto; }
html .p23-e1-shop .shop-document-toc { margin-bottom: 30px; padding: 20px 24px; border-left: 3px solid var(--p23-accent); background: var(--p23-panel); }
html .p23-e1-shop .shop-document-toc ol { margin: 12px 0 0; padding-left: 0; list-style: none; }
html .p23-e1-shop .shop-document-toc a { display: inline-block; padding-block: 5px; color: var(--p23-text); }
html .p23-e1-shop .shop-document-toc li[data-level='3'] { margin-left: 16px; font-size: 14px; }
html .p23-e1-shop .p23-shop-return { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin: 0 0 20px; font-size: 13px; color: var(--p23-muted); text-decoration: underline; }
html .p23-e1-shop .shop-purchase-steps { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 0 0 16px; margin: 0 0 26px; list-style: none; border-bottom: 1px solid var(--p23-line); font-size: 13px; color: var(--p23-muted); }
html .p23-e1-shop .shop-purchase-steps [aria-current] { color: var(--p23-text); font-weight: 700; border-bottom: 3px solid var(--p23-accent); padding-bottom: 14px; margin-bottom: -18px; }
html .p23-e1-shop .shop-purchase-table :is(th,td) { padding: 18px 12px; border-color: var(--p23-line); }
html .p23-e1-shop .shop-purchase-product { font-weight: 700; }
html .p23-e1-shop .shop-item-details { font-weight: 400; font-size: 12px; margin-top: 8px; }
html .p23-e1-shop .shop-checkout-badges { margin: 0 0 28px; gap: 10px; }
html .p23-e1-shop .shop-badge-chip { background: var(--p23-panel); color: var(--p23-text); border-color: var(--p23-line); border-radius: 4px; padding: 8px 10px; }
html .p23-e1-shop .shop-badge-chip.is-good { color: var(--shop-stock-in); }
html .p23-e1-shop .shop-qr-box { background: var(--p23-panel); color: var(--p23-text); padding: 24px; border: 1px solid var(--p23-line); border-radius: 6px; gap: 28px; }
html .p23-e1-shop #shop-qr { background: white; width: fit-content; padding: 12px; max-width: 100%; }
html .p23-e1-shop #shop-qr :is(img,canvas) { max-width: 100%; height: auto; }
html .p23-e1-shop .shop-download-panel { margin-top: 30px; }
html .p23-e1-shop .shop-download-card { padding: 18px; background: var(--p23-bg-alt); border-color: var(--p23-line); gap: 18px; }
html .p23-e1-shop .shop-download-card__body h3 { line-height: 1.3; margin: 5px 0 12px; }
html .p23-e1-shop .shop-download-card__meta { color: var(--p23-muted); gap: 8px; }
html .p23-e1-shop .shop-account-history { width: 100%; }
html .p23-e1-shop .shop-account-history td { overflow-wrap: anywhere; }
html .p23-e1-shop .shop-account-summary { gap: 24px; }
html .p23-e1-shop .shop-account-summary__item span { color: var(--p23-muted); }
html .p23-e1-shop .shop-bmc-card { padding: 36px; border-color: var(--p23-line); background: var(--p23-panel); }
html .p23-e1-shop .shop-bmc-card h1 { margin: 0 0 24px; font-weight: 900; text-transform: uppercase; }
html .p23-e1-shop .shop-bmc-options { grid-template-columns: repeat(auto-fit,minmax(min(100%,104px),1fr)); gap: 10px; }
html .p23-e1-shop .shop-bmc-option { margin: 0 !important; }
html .p23-e1-shop .shop-bmc-option span { border: 1px solid var(--p23-border); border-radius: 5px; background: var(--p23-bg-alt); color: var(--p23-text); box-shadow: none; padding: 20px 32px 20px 16px; }
html .p23-e1-shop .shop-bmc-option input:checked + span { border-color: var(--p23-accent); background: #b00000 var(--p23-orwal) center/cover; color: white; box-shadow: 0 0 14px var(--p23-glow); filter: none; transform: none; }
html .p23-e1-shop .shop-bmc-option input:focus-visible + span { outline-color: var(--p23-focus); }
html .p23-e1-shop .shop-bmc-fields { margin-top: 22px; gap: 18px; }
html .p23-e1-shop .shop-bmc-fields .shop-muted { margin-top: 10px; line-height: 1.6; }
html .p23-e1-shop :is(.shop-sticky-panel,.shop-cartbar-panel,.shop-sticky-tab,.shop-cartbar-tab) { background: var(--p23-panel); color: var(--p23-text); border-color: var(--p23-border); box-shadow: 0 3px 14px var(--p23-shadow); }
html .p23-e1-shop :is(.shop-sticky-title,.shop-sticky-price,.shop-sticky-sub,.shop-sticky-summary,.shop-sticky-ship,.shop-cartbar-note) { color: var(--p23-text); }
@media (max-width: 720px) {
 html .p23-e1-shop :is(.shop-sticky-tab-count,.shop-cartbar-tab .shop-cartbar-count) { color: var(--p23-text); border-color: var(--p23-border); }
}
html .p23-e1-shop .shop-modal-panel { border-radius: 6px; padding: 28px; box-shadow: 0 12px 40px #0008; }
html .p23-e1-shop .shop-modal-close { min-width: 44px; min-height: 44px; background: var(--p23-panel); border: 1px solid var(--p23-border); border-radius: 4px; }
html .p23-e1-shop .shop-toast { background: var(--p23-panel); color: var(--p23-text); border: 1px solid var(--p23-border); box-shadow: 0 8px 24px var(--p23-shadow); }
@media (max-width: 900px) {
 html .p23-e1-shop .shop-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
 html .p23-e1-shop .shop-product-top { gap: 24px; }
}
@media (max-width: 700px) {
 html .p23-e1-shop .shop-form-row { grid-template-columns: minmax(0,1fr); }
 html .p23-e1-shop .shop-product-grid { grid-template-columns: minmax(0,1fr); }
 html .p23-e1-shop .shop-card-body h3 { min-height: 0; font-size: 24px; }
 html .p23-e1-shop .shop-card-body { padding: 22px 22px 12px; }
 html .p23-e1-shop :is(.shop-summary,.p23-card,.shop-bmc-card,.shop-download-panel) { padding: 20px; }
 html .p23-e1-shop .shop-bmc-options { grid-template-columns: repeat(auto-fit,minmax(min(100%,96px),1fr)); gap: 8px; }
 html .p23-e1-shop .shop-bmc-option span { min-height: 54px; padding: 12px 24px 12px 6px; font-size: 16px; }
 html .p23-e1-shop .shop-purchase-table > tbody > tr { padding: 18px 0; border: 0; border-bottom: 1px solid var(--p23-line); border-radius: 0; gap: 14px; }
 html .p23-e1-shop .shop-purchase-table > tbody > tr > td { padding: 0; }
 html .p23-e1-shop .shop-purchase-table .shop-purchase-actions { padding-top: 0; border: 0; }
 html .p23-e1-shop .shop-purchase-table td.shop-purchase-product::before { display: none; }
 html .p23-e1-shop .shop-account-history :is(thead,tbody,tr,th,td) { white-space: normal; }
 html .p23-e1-shop .shop-qr-box { grid-template-columns: minmax(0,1fr); padding: 18px; }
 html .p23-e1-shop .shop-summary-row { flex-wrap: wrap; }
 html .p23-e1-shop .shop-purchase-steps { font-size: 12px; gap: 14px; }
 html .p23-e1-shop .shop-modal-panel { padding: 58px 18px 24px; }
}
@media (prefers-reduced-motion: reduce) {
 html .p23-e1-shop :is(.shop-img,.shop-bmc-option span) { transition: none; transform: none; }
}
/* Images stay readable without JavaScript. Sticky commerce surfaces are opaque. */
html .p23-e1-shop .shop-img--blur { filter: none; transform: none; }
html .p23-e1-shop :is(.shop-cartbar,.shop-sticky-add) { background: var(--p23-panel); color: var(--p23-text); border-color: var(--p23-border); }
html .p23-e1-shop .shop-cartbar-ship { background: var(--p23-panel); color: var(--p23-text); }
html .p23-e1-shop .shop-account-history { table-layout: fixed; }
@media (max-width: 640px) {
 html .p23-e1-shop .shop-account-history { display: block; }
 html .p23-e1-shop .shop-account-history thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 html .p23-e1-shop .shop-account-history tbody { display: grid; gap: 18px; }
 html .p23-e1-shop .shop-account-history tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; border-bottom: 1px solid var(--p23-line); padding: 18px 0; }
 html .p23-e1-shop .shop-account-history td { display: block; border: 0; padding: 0; }
 html .p23-e1-shop .shop-account-history td:first-child { font-weight: 700; }
 html .p23-e1-shop .shop-account-history td:nth-child(2) { font-size: 12px; }
 html .p23-e1-shop .shop-account-history td:last-child { text-align: right; }
}

/* Integrated review: remove inherited empty space; wrap controls by available width. */
html .p23-e1-shop :is(.p23-card,.shop-summary) > h2,
html .p23-e1-shop .shop-purchase > .shop-form-row > div > h2 { margin: 0 0 16px; }
html .p23-e1-shop :is(.shop-account-history,.shop-purchase-table) { margin-block: 0; }
html .p23-e1-shop .shop-color-dots:not(:has(.shop-color-dot,.shop-color-more)) { display: none; }
html .p23-e1-shop .shop-summary input:is([name='coupon_code'],[name='gift_card_code']) { flex: 1 1 140px; width: auto; }
html .p23-e1-shop .shop-purchase-steps { margin-bottom: 20px; }
html .p23-e1-shop .shop-checkout-badges { margin-bottom: 20px; }
@media (max-width: 700px) {
 html .p23-e1-shop :is(.shop-summary,.p23-card,.shop-bmc-card,.shop-download-panel) { padding: 16px; }
 html .p23-e1-shop .shop-form-row { gap: 18px; }
 html .p23-e1-shop .shop-bmc-card h1 { margin-bottom: 16px; font-size: 28px; }
 html .p23-e1-shop .shop-bmc-lead { margin-bottom: 18px; }
 html .p23-e1-shop .shop-bmc-fields .shop-muted { margin-top: 6px; }
 html .p23-e1-shop .shop-account-summary { grid-template-columns: minmax(0,1fr) auto; gap: 16px 12px; align-items: center; }
 html .p23-e1-shop .shop-account-summary__item:first-child { grid-column: 1 / -1; }
 html .p23-e1-shop .shop-account-summary__logout { justify-self: end; }
 html .p23-e1-shop .shop-summary-row { column-gap: 10px; row-gap: 4px; }
}
@media (max-width: 640px) {
 html .p23-e1-shop .p23-search-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
 html .p23-e1-shop .p23-search-row > :is(input[name='q'],.shop-muted) { grid-column: 1 / -1; }
 html .p23-e1-shop .p23-search-row > .p23-input { min-width: 0; }
 html .p23-e1-shop .p23-search-row > select[name='sort']:only-of-type { grid-column: 1 / -1; }
 html .p23-e1-shop .p23-search-row > .p23-button { padding-inline: 8px; white-space: normal; }
 html .p23-e1-shop .p23-search-row > .shop-muted { min-height: 44px; margin: 0; }
 html .p23-e1-shop .shop-cart-actions { gap: 8px !important; }
 html .p23-e1-shop .shop-cart-actions > * { flex: 1 1 120px; padding-inline: 10px; }
 html .p23-e1-shop .shop-cart-actions > .p23-button--primary { flex-basis: 100%; }
 html .p23-e1-shop .shop-account-history tbody { gap: 0; }
 html .p23-e1-shop .shop-account-history tr { padding-block: 14px; }
}

/* Keep the selected amount on one line without colliding with its marker. */
@media (max-width:700px) {
 html .p23-e1-shop .shop-bmc-option span { white-space:nowrap; padding:12px 24px 12px 4px; font-size:15px; }
 html .p23-e1-shop .shop-bmc-option span::after { width:16px; height:16px; right:5px; }
}

/* Guest verification uses the same form rhythm and controls as account pages. */
html .p23-e1-shop .shop-order-access { max-width:640px; }
html .p23-e1-shop .shop-order-access-form { display:grid; gap:12px; margin:24px 0; }
html .p23-e1-shop .shop-order-access-form label { margin:0; }
html .p23-e1-shop .shop-order-access-form .p23-button { justify-self:start; max-width:100%; }
html .p23-e1-shop .shop-order-access [role='status'] { padding:16px; border:1px solid var(--p23-border); background:var(--p23-panel); border-radius:5px; }
html .p23-e1-shop .shop-order-access > h1 { font-size:clamp(28px,4vw,40px); line-height:1.15; }

/* U3/U6: a compact card preview and a wrapping contextual navigation row. */
html .p23-e1-shop .shop-context-trail { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
html .p23-e1-shop .shop-context-trail > .shop-category-chips { flex: 0 1 auto; min-width: 0; max-width: 100%; margin: 0; }
html .p23-e1-shop .shop-context-trail > .p23-shop-return { flex: 0 0 auto; max-width: 100%; margin: 0 0 0 auto; }
html .p23-e1-shop .shop-color-dots { align-items: center; flex-wrap: wrap; gap: 7px; }
html .p23-e1-shop .shop-color-dot { flex: 0 0 14px; border: 1px solid var(--p23-muted); }
html .p23-e1-shop .shop-color-more { font-size: 12px; color: var(--p23-muted); text-underline-offset: 3px; }
@media (max-width: 767px) {
 html .p23-e1-shop .shop-context-trail { flex-direction: column; align-items: stretch; }
 html .p23-e1-shop .shop-context-trail > .p23-shop-return { align-self: flex-start; margin-left: 0; }
}
