/* Shared customer-facing refinements; state and visibility remain owned by Livewire/Alpine. */
.storefront { --store-radius: 1rem; --store-shadow: 0 3px 14px rgb(20 20 20 / 4%); }
.storefront #store-content :is([class~="text-[7px]"], [class~="text-[8px]"], [class~="text-[9px]"]) { font-size: .75rem; }
.storefront #store-content :is(label[for], button[type="submit"]) { letter-spacing: .045em; }
.storefront :is(input, textarea, select) { max-width: 100%; }
.storefront :is(input, textarea)::placeholder { color: #7d746b; opacity: 1; }
.storefront :is(input, textarea)[aria-invalid="true"] { border-color: #a14b3d; }
.storefront textarea { resize: vertical; }
.storefront [role="alert"] { overflow-wrap: anywhere; line-height: 1.6; }
.storefront [aria-label="Breadcrumb"] { line-height: 1.7; overflow-wrap: anywhere; }
.storefront [aria-label="Breadcrumb"] ol { flex-wrap: wrap; }
.storefront button:disabled { cursor: not-allowed; }
.storefront :is(button, a) { -webkit-tap-highlight-color: transparent; }
.storefront .store-product-card { overflow: hidden; height: 100%; box-shadow: var(--store-shadow); }
.storefront .store-product-card > div:last-child { flex: 1; min-width: 0; padding: 1rem; }
.storefront .store-product-card > div:last-child > :is(button, a) { margin-top: auto; min-height: 2.75rem; font-size: .75rem; letter-spacing: .05em; }
.storefront .store-product-card > div:last-child > div:last-of-type { margin-bottom: .85rem; }
.storefront .store-product-card > div:last-child > div:first-child > a { overflow-wrap: anywhere; font-weight: 650; }
.storefront .store-product-card > div:last-child p { font-variant-numeric: tabular-nums; }
.storefront .store-product-card > div:first-child { isolation: isolate; }
.storefront .store-product-card .capify-product-image { transition-duration: 180ms; }
.storefront .store-product-card:hover { transform: none; }
.storefront .store-product-card:focus-within { box-shadow: 0 0 0 2px #b7793e; }
.storefront .store-header .capify-nav-link { font-size: .75rem; letter-spacing: .06em; }
.storefront .store-header .capify-mobile-link { min-height: 2.75rem; font-size: .8125rem; }
.storefront .store-header #mobile-navigation { overscroll-behavior-y: contain; }
.store-mobile-search { display: flex; gap: .5rem; align-items: center; }
.store-mobile-search input { min-width: 0; flex: 1; }
.store-mobile-search button { flex: none; min-width: 2.75rem; min-height: 2.75rem; padding: .5rem; border-radius: 50%; background: #292522; color: #fff; }
.store-mobile-search svg { width: 1.15rem; height: 1.15rem; margin: auto; }
.storefront .store-footer h3 { font-size: .75rem; letter-spacing: .12em; color: #ff936c; }
.storefront .store-footer nav a, .storefront .store-footer address a { display: inline-flex; align-items: center; min-height: 2rem; overflow-wrap: anywhere; }
.storefront .store-footer nav { min-width: 0; }
.storefront .store-footer :is([class~="text-white/35"], [class~="text-white/45"], [class~="text-white/50"], [class~="text-white/55"]) { color: #bdb8b1; }
.storefront .store-footer button { min-height: 2.75rem; }
.storefront .store-footer [class~="text-[9px]"] { font-size: .75rem; }
.storefront .capify-taxonomy-parent small { font-size: .75rem; }
.storefront .capify-taxonomy-children a { font-size: .8125rem; }
.storefront .capify-taxonomy-parent img { object-fit: contain; }
.storefront .capify-taxonomy-directory .capify-category-browser-list { max-height: none; }
.storefront .capify-select-trigger, .storefront .capify-multi-trigger { min-height: 2.75rem; }
.storefront .capify-select-options { overscroll-behavior: contain; scrollbar-width: thin; }
.storefront .store-cart article { border-radius: 1rem; box-shadow: var(--store-shadow); }
.storefront .store-cart article a.truncate { white-space: normal; overflow-wrap: anywhere; font-family: inherit; font-weight: 650; font-size: 1rem; }
.storefront .store-cart article .capify-product-image { object-fit: contain; }
.storefront :is(.store-cart, .store-checkout, .referral-page) strong { font-variant-numeric: tabular-nums; }
.storefront .referral-page h1 { font-family: 'Archivo Black', Impact, sans-serif; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.035em; line-height: 1.15; }
.storefront .referral-page h2 { font-size: 1.25rem; letter-spacing: -.02em; }
.storefront .referral-stats section { min-width: 0; }
.storefront .referral-stats strong { font-variant-numeric: tabular-nums; }
.storefront .referral-copy-row button { min-height: 2.75rem; }
.storefront .referral-badge { white-space: nowrap; }
.store-assistance { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; padding: 1rem 1.25rem; border: 1px solid #dedbd4; border-radius: 1rem; background: #fffdf9; color: #292522; }
.store-assistance p { margin: 0; font-size: .8125rem; line-height: 1.6; }
.store-assistance a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .8125rem; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.store-action-ring { display: inline-block; width: .9rem; height: .9rem; margin-inline-end: .4rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -.1em; animation: store-action-spin .65s linear infinite; }
@keyframes store-action-spin { to { transform: rotate(360deg); } }
.storefront .store-cart button:has(> .store-icon-progress) { position: relative; }
.store-icon-progress { position: absolute; inset: 0; align-content: center; border-radius: inherit; background: #fffdf9; }
.store-icon-progress .store-action-ring { margin: 0; }
@media (max-width: 767px) {
    .storefront :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select) { font-size: 1rem; }
    .storefront .store-product-card > div:last-child { padding: .85rem; }
    .storefront .store-product-card > div:last-child > div:first-child > a { font-size: .875rem; }
    .storefront .store-product-card > div:last-child > :is(button, a) { padding-inline: .65rem; }
    .storefront .capify-taxonomy-children a { min-height: 2.75rem; }
    .storefront .store-footer nav a, .storefront .store-footer address a { min-height: 2.75rem; }
    .storefront .referral-shell { padding: 1.5rem 1rem; }
    .storefront .referral-copy-row { gap: .5rem; }
    .storefront .store-cart article > a:first-child { max-height: 15rem; }
}
@media (prefers-reduced-motion: reduce) {
    .storefront *, .storefront *::before, .storefront *::after { scroll-behavior: auto !important; }
    .storefront .store-product-card, .storefront .capify-product-image { transition: none; transform: none; }
    .store-action-ring { animation: none; }
}

.store-assistance-shell { max-width: 90rem; margin-inline: auto; padding: 0 1.5rem 2rem; }
.storefront .store-checkout .store-assistance-shell { padding-inline: 1rem; }
.storefront #store-content label[for] { font-size: .8125rem; line-height: 1.5; }
.storefront #store-content :is(input, textarea)[aria-invalid="true"]:focus { outline-color: #a14b3d; }
.storefront .store-product-card > div:last-child > div:first-child > a { min-width: min(100%, 9rem); }
@media (min-width: 640px) { .store-assistance-shell, .storefront .store-checkout .store-assistance-shell { padding-inline: 2.5rem; } }
@media (min-width: 1024px) { .store-assistance-shell, .storefront .store-checkout .store-assistance-shell { padding-inline: 4rem; } }

/* Keep page introductions compact while retaining the brand's display type. */
.storefront .brim-page-header h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.12; overflow-wrap: anywhere; }
.storefront .brim-page-header p { line-height: 1.65; }
.storefront .capify-themed-page :is(table, .overflow-x-auto) { font-variant-numeric: tabular-nums; }
.storefront .capify-themed-page .overflow-x-auto { overscroll-behavior-x: contain; scrollbar-width: thin; }
.storefront .referral-badge[data-status="paid"], .storefront .referral-badge[data-status="redeemed"] { background: #e6edf3; color: #34546f; }
.storefront .referral-badge[data-status="expired"] { background: #ece7df; color: #61584f; }
.storefront .referral-history article > strong { margin-inline-start: auto; }
.storefront .referral-copy-row input { font-family: ui-monospace, SFMono-Regular, monospace; }
@media (max-width: 639px) {
    .storefront .store-cart article { display: grid; grid-template-columns: 6rem minmax(0, 1fr); }
    .storefront .store-cart article > a:first-child { aspect-ratio: auto; align-self: start; height: 7rem; }
    .storefront .store-cart article > div { padding: .75rem; }
    .storefront .store-cart article > div > div { gap: .6rem; }
    .storefront .store-cart article > div > div:last-child > div:last-child { flex-wrap: wrap; gap: .65rem; }
}
@media (max-width: 359px) {
    .storefront .store-cart article { grid-template-columns: minmax(0, 1fr); }
    .storefront .store-cart article > a:first-child { height: 10rem; }
    .storefront .referral-stats { grid-template-columns: minmax(0, 1fr); }
}

/* Customer-safe post-purchase history. */
.customer-return-summary { min-width: 0; margin: 1rem 0; padding: 1rem; border: 1px solid #ded6ca; border-radius: 1rem; background: #fffaf5; color: #292522; font-size: .875rem; line-height: 1.65; overflow-wrap: anywhere; }
.customer-return-summary h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: .75rem; }
.customer-return-summary h3, .customer-return-summary h4 { font-size: .875rem; font-weight: 700; }
.customer-return-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.customer-return-badges span { padding: .25rem .65rem; border-radius: .6rem; background: #eee4d5; color: #654b2d; font-size: .75rem; }
.customer-return-money { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,10rem),1fr)); gap: .75rem; margin: 1rem 0; }
.customer-return-money dt { color: #75695f; font-size: .75rem; }
.customer-return-money dd { font-weight: 700; margin: 0; }
.customer-return-request { border-top: 1px solid #ded6ca; padding-top: 1rem; margin-top: 1rem; }
.customer-return-timeline { margin: .8rem 0; border-left: 2px solid #c2a276; padding-left: 1rem; }
.customer-return-timeline li { margin: .4rem 0; font-size: .8rem; }
.customer-return-replacement { margin-top: .8rem; background: #f1ebe1; padding: .8rem; border-radius: .65rem; }
.customer-return-replacement a { text-decoration: underline; text-underline-offset: 3px; }
