/* * Dark mode for the storefront,account and portal pages. * * Loaded last,with media="(prefers-color-scheme: dark)",so light mode is untouched. tokens.css already switches * the colour tokens;this file covers the panels that were drawn with fixed light colours (white,pale grey,* pale red,pale amber). Without it those panels stayed white while their text turned light,which made product * details,menus and buttons unreadable on phones set to dark mode. * * Product photos are shot on white,so photo tiles,brand logos and the QR code deliberately stay white. * tests/Browser/dark-mode-contrast.cjs checks every page for text below WCAG AA contrast in both modes. */ @media (prefers-color-scheme:dark){.fh,.fh-mobile-nav,.fh-search,.fh-search input:focus,.fh-drop__menu,.fh-mega,.fh-mega__stage,.fh-mega__tab:hover,.fh-mega__tab.is-active,.fh-mega__brand-chip,.spec-table,.quote-after .promise-list li,.offer-card,.fp-cat,.fp-cat__label,.fp-cat__body,.fp-card,.fp-product,.fp-portal-card,.fp-trust__metrics div,.fp-client,.fp-cat-dock,.fp-cat-dock__flyout,.fp-cat-dock__brand,.fp-ready__tab,.fp-ready__arrow,.fp-brand-card,.fp-section--tint .fp-cat-showcase__foot,.hero-card--glass,.med-avatar__role-badge,.med-restock-node{background:var(--color-surface);color:var(--color-text)}.fh-nav a:hover,.fh-mobile-nav a[aria-current="page"],.fh-search__cat-wrap,.fh-search__cat:focus,.fh-action__icon,.fh-drop__branch,.fh-subbar,.fh-mega__list,.fh-mega__subgrid a,.fh-mega__tab-count,.spec-table tr:nth-child(even) th,.spec-table tr:nth-child(even) td,.fp-brands__btn,.fp-cat-showcase__chip,.fp-cat-showcase__foot,.fp-cat-dock__sublink,.fp-cat-dock__count,.offer-card__media,.offer-detail__media,.offer-card__code,.contact-map__wrap,.cart-toast__close:hover,.med-restock-strip-card{background:var(--color-bg-subtle);color:var(--color-text)}.fh-deliver__icon,.fh-action--stack:hover .fh-action__icon,.fh-cart-icon,.fh-drop__branch:hover,.fh-mega__tab-icon,.fh-mega__tab.is-active .fh-mega__tab-count,.fh-mega__badge,.fh-mega__subgrid a:hover,.fh-mega__brand-chip:hover,.contact-loc.is-active,.fp-cat-dock__item:hover .fp-cat-dock__link,.fp-cat-dock__item:focus-within .fp-cat-dock__link,.fp-cat-dock__icon,.fp-cat-dock__item:hover .fp-cat-dock__count,.fp-cat-dock__item:focus-within .fp-cat-dock__count,.fp-cat-dock__sublink:hover,.fp-cat-dock__brand:hover,.fp-cat-showcase__count,.fp-cat-showcase__chip:hover,.med-priority-pill--essential,.kanban-pill--bad{background:var(--brand-ice)}.contact-loc.is-active{box-shadow:none}.contact-loc__coords{color:var(--color-accent-text-strong)}.fh-subbar__deal,.fh-subbar__deal:hover,.product-card__offer-pill,.pdp-offer-callout,.pdp-offer-callout__code,.offer-card__badge,.search-hit-chip--offer,.fp-pill--amber,.kanban-pill--warn{background:var(--status-warn-bg);color:var(--status-warn);border-color:transparent}.fp-pill--green,.wa-community-card,.med-license-chip,.med-shared-badge,.med-compat-badge,.med-approval-stamp,.med-compat-status,.kanban-pill--ok{background:var(--status-ok-bg);color:var(--status-ok)}.fp-pill--blue,.search-hit-chip,.kanban-pill--info{background:var(--status-info-bg);color:var(--status-info)}.fp-pill--red{background:var(--status-bad-bg);color:var(--status-bad)}.kanban-pill--neutral{background:var(--status-neutral-bg);color:var(--status-neutral)}.fp-section,.fp-brands-section{background:var(--color-bg)}.btn--secondary{color:var(--color-accent-text);border-color:var(--color-accent-text)}.btn--secondary:hover{color:var(--color-accent-text-strong);border-color:var(--color-accent-text-strong)}.spec-pill{color:var(--color-accent-text);border-color:rgb(255 120 125 / 0.3)}.spec-pill:hover,.spec-pill--active{color:#FFFFFF}.tabs__list{border-bottom-color:var(--color-border)}.fp-dept__pic{background:#F4F6F7}}
