/* Rails presentation-only drawers. Commerce state is intentionally not implemented. */
.fairiche-drawer { position: fixed; inset: 0; z-index: 100; color: var(--ink); }
.fairiche-drawer__shade { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(28, 27, 25, .34); }
.fairiche-drawer__panel { position: absolute; right: 0; top: 0; height: 100%; width: min(420px, 92vw); overflow: auto; background: #fff; padding: 28px; }
.fairiche-drawer__panel--left { left: 0; right: auto; }
.fairiche-drawer__links { margin-top: 2rem; }
.fairiche-drawer__links a, .fairiche-drawer__links .customer-signout { display: block; width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

.storefront-mega-menu { position: absolute; top: 100%; left: 0; right: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding: 2.5rem 3rem; background: var(--porcelain); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 12px 20px #0000000d; max-height: 70vh; overflow-y: auto; }
.storefront-mega-menu[hidden] { display: none; }
.storefront-mega-menu__all { grid-column: 1 / -1; }
.storefront-product-track ~ div button:disabled { opacity: .4; cursor: default; }
.storefront-mobile-groups { display: grid; gap: 2rem; margin-top: 2rem; }
.storefront-mobile-groups a { display: block; padding: .4rem 0; }
.storefront-product-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4.5rem) / 4); gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.storefront-product-track > article { scroll-snap-align: start; }
.storefront-product-track::-webkit-scrollbar { display: none; }
@media (max-width: 1023px) { .storefront-product-track { grid-auto-columns: calc((100% - 1.5rem) / 2); } }

@media (max-width: 767px) {
  footer details:not([open]) ul { display: none; }
}

@media (min-width: 768px) {
  footer details > ul { display: block !important; }
}
