/*
 * Swift Ink Store: global styles (every page).
 *
 * Order of this file: fonts, reset, tokens and base elements, then shared
 * components (header, footer, buttons, breadcrumb), then utilities.
 *
 * Conventions:
 *  - Class names are BEM with the "sis-" prefix. Page content already uses
 *    "si-" classes of its own, so the theme stays out of that namespace.
 *  - Every colour, size and space comes from a custom property.
 *  - Mobile-first, with breakpoints at 640px and 1024px.
 *  - Specificity stays flat: one class per rule where possible, and reset and
 *    element rules are wrapped in :where() so any class can override them.
 *    Cascade layers are not used, because WordPress prints its own block
 *    styles unlayered and unlayered rules always beat layered ones.
 *  - No ID selectors. !important appears twice: the [hidden] attribute and
 *    the reduced-motion rule, which must both win over everything.
 *  - Styles that adjust plugin output live in integrations.css.
 */

@font-face {
	font-family: Inter;
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/inter-latin-var.woff2") format("woff2");
}

/* Fallback with Inter's proportions, so text does not jump when Inter loads. */
@font-face {
	font-family: "Inter Fallback";
	src: local("Arial");
	ascent-override: 90%;
	descent-override: 22.4%;
	line-gap-override: 0%;
	size-adjust: 107.6%;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

:where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd) {
	margin: 0;
}

:where(ul[role="list"], ol[role="list"]) {
	margin: 0;
	padding: 0;
	list-style: none;
}

:where(img, svg, video) {
	display: block;
	max-inline-size: 100%;
}

:where(img) {
	block-size: auto;
}

:where(button, input, select, textarea) {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
}

:where(button) {
	cursor: pointer;
}

/* The hidden attribute must always win, whatever display a class sets. */
[hidden] {
	display: none !important;
}

:root {
	/* Colour */
	--sis-ink: #14151a;
	--sis-gray: #5b6270;
	--sis-gray-on-tint: #4a5160; /* gray darkened for 4.5:1 on the blue tints */
	--sis-border: #e4e8ef;
	--sis-border-strong: #7d8696; /* field outlines: 3.7:1 on white */
	--sis-surface: #f1f2f5;
	--sis-white: #fff;
	--sis-blue: #1e5fea;
	--sis-blue-dark: #123a99;
	--sis-blue-tint: #eaf1fe;
	--sis-blue-tint-2: #f5f9ff;
	--sis-magenta: #e6007e;
	--sis-cyan: #00aeef;
	--sis-yellow: #ffc800;
	--sis-green: #116b3a;
	--sis-green-tint: #e7f5ec;
	--sis-red: #b3261e;
	--sis-red-tint: #fdecea;
	--sis-red-on-ink: #f6aea9; /* errors on the dark footer: 10:1 on ink */

	/* Type */
	--sis-font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sis-text-xs: 0.8125rem; /* 13px: legal fine print only */
	--sis-text-sm: 0.875rem; /* 14px: smallest text customers must read */
	--sis-text-compact: 0.9375rem; /* 15px: long product names in narrow plugin lists (side cart, phone search) */
	--sis-text-md: 1rem;
	--sis-text-lg: 1.125rem;
	--sis-text-xl: 1.375rem;
	--sis-text-2xl: 1.625rem;
	--sis-text-3xl: clamp(1.75rem, 1.2rem + 2.2vw, 2.375rem);

	/* Space */
	--sis-space-1: 0.25rem;
	--sis-space-2: 0.5rem;
	--sis-space-3: 0.75rem;
	--sis-space-4: 1rem;
	--sis-space-5: 1.5rem;
	--sis-space-6: 2rem;
	--sis-space-7: 3.5rem;
	--sis-gutter: 1.25rem;

	/* Shape */
	--sis-radius-sm: 0.5rem;
	--sis-radius-md: 0.75rem;
	--sis-radius-lg: 1rem;
	--sis-shadow-sm: 0 4px 16px rgb(20 21 26 / 8%);
	--sis-shadow-md: 0 12px 28px rgb(20 21 26 / 14%);

	/* Layout */
	--sis-page: 80rem; /* 1280px */
	--sis-page-narrow: 68.75rem; /* 1100px */
	--sis-measure: 45rem; /* 720px: the reading column on every page */
	--sis-tap: 2.75rem; /* 44px minimum tap target */
	--sis-header-offset: 8.75rem; /* phones: icon row plus the search box */
}

@media (width >= 640px) {
	:root {
		--sis-gutter: 2rem;
		--sis-header-offset: 5.75rem; /* taller since 1.0.21: words under the icons */
	}
}

@media (width >= 1024px) {
	:root {
		--sis-gutter: 3rem;
		--sis-header-offset: 9rem;
	}
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;

	/* Keeps focused and linked-to elements clear of the sticky header. */
	scroll-padding-block-start: var(--sis-header-offset);
}

body {
	margin: 0;
	background: var(--sis-white);
	color: var(--sis-ink);
	font-family: var(--sis-font);
	font-size: var(--sis-text-md);
	line-height: 1.55;
	accent-color: var(--sis-blue);
}

:where(h1, h2, h3, h4) {
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

:where(a) {
	color: var(--sis-blue);
	text-underline-offset: 0.2em;
}

:where(a:hover) {
	color: var(--sis-blue-dark);
}

:focus-visible {
	outline: 3px solid var(--sis-blue);
	outline-offset: 2px;
	border-radius: 2px;
}

::selection {
	background: var(--sis-blue);
	color: var(--sis-white);
}

:where(
	input[type="text"],
	input[type="email"],
	input[type="tel"],
	input[type="password"],
	input[type="search"],
	input[type="number"],
	input[type="url"],
	select,
	textarea
) {
	min-block-size: var(--sis-tap);
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--sis-border-strong);
	border-radius: var(--sis-radius-sm);
	background: var(--sis-white);
	font-size: var(--sis-text-md);
}

::placeholder {
	color: var(--sis-gray);
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------------------------------------------------------------
 * Page frame
 * ------------------------------------------------------------- */
.sis-main {
	min-block-size: 50vh;
}

.sis-skip-link {
	position: absolute;
	inset-block-start: -5rem;
	inset-inline-start: var(--sis-space-2);
	z-index: 1000;
	padding: var(--sis-space-3) var(--sis-space-5);
	border-radius: var(--sis-radius-sm);
	background: var(--sis-ink);
	color: var(--sis-white);
	font-weight: 700;
}

.sis-skip-link:focus {
	inset-block-start: var(--sis-space-2);
	color: var(--sis-white);
}

.sis-section {
	padding: var(--sis-space-7) var(--sis-gutter);
}

.sis-section--tint {
	background: var(--sis-blue-tint-2);
}

.sis-section > * {
	max-inline-size: var(--sis-page);
	margin-inline: auto;
}

.sis-section__title {
	margin-block-end: var(--sis-space-6);
	font-size: var(--sis-text-2xl);
	text-align: center;
}

.sis-section__title:has(+ .sis-section__lead) {
	margin-block-end: var(--sis-space-2);
}

.sis-section__lead {
	margin-block-end: var(--sis-space-6);
	color: var(--sis-gray);
	text-align: center;
}

/* ---------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------- */
.sis-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sis-space-2);
	min-block-size: var(--sis-tap);
	padding: 0.625rem 1.25rem;
	border: 2px solid transparent;
	border-radius: var(--sis-radius-sm);
	font-size: var(--sis-text-md);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}

.sis-btn--primary {
	background: var(--sis-blue);
	color: var(--sis-white);
}

.sis-btn--primary:hover {
	background: var(--sis-blue-dark);
	color: var(--sis-white);
}

.sis-btn--outline {
	border-color: var(--sis-blue);
	background: var(--sis-white);
	color: var(--sis-blue);
}

.sis-btn--outline:hover {
	background: var(--sis-blue-tint);
	color: var(--sis-blue-dark);
}

.sis-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* ---------------------------------------------------------------
 * Utility bar and header
 * ------------------------------------------------------------- */
.sis-utility {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--sis-space-1) var(--sis-space-3);
	padding: var(--sis-space-2) var(--sis-gutter);
	background: var(--sis-ink);
	color: var(--sis-white);
	font-size: var(--sis-text-sm);
	font-weight: 600;
	text-align: center;
}

.sis-utility a {
	display: inline-block;
	padding-block: var(--sis-space-1);
	color: var(--sis-white);
	text-decoration: none;
}

/* The free-shipping offer (links to Shipping Info; its asterisk points to the
   fine print in the footer) and the phone number are plain white text, with
   no underline until pointed at or reached with the keyboard, like the brand
   bar below. */
.sis-utility a:hover,
.sis-utility a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

/* The footnote mark after "$50+". Inter centres the asterisk at the height
   of the plus sign, where it read as a second plus; raised and slightly
   smaller it reads as a footnote mark. line-height 0 keeps the bar's
   height. */
.sis-utility__mark {
	font-size: 0.875em;
	line-height: 0;
	vertical-align: 0.3em;
}

.sis-utility__sep {
	display: none;
	opacity: 0.5;
}

@media (width >= 480px) {
	.sis-utility__sep {
		display: inline;
	}
}

.sis-header {
	position: sticky;
	inset-block-start: 0;
	z-index: 100;
	background: var(--sis-white);
}

.sis-header__row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas:
		"menu logo actions"
		"search search search";
	align-items: center;
	gap: var(--sis-space-2);

	/* Side padding grows on wide screens so the row lines up with the page
	   container, while its background and border still span the window. */
	padding: var(--sis-space-3) max(var(--sis-gutter), (100% - var(--sis-page)) / 2);
	border-block-end: 1px solid var(--sis-border);
}

.sis-header__menu-btn {
	grid-area: menu;
	border-radius: var(--sis-radius-sm);
	background: var(--sis-blue);
	color: var(--sis-white);
}

.sis-header__icon-btn,
.sis-header__icon-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: var(--sis-tap);
	block-size: var(--sis-tap);
	border: 0;
	flex-shrink: 0;
}

.sis-header__icon-link {
	border-radius: 50%;
	background: var(--sis-blue-tint);
	color: var(--sis-ink);
}

.sis-header__logo {
	grid-area: logo;
	justify-self: start;
	display: block;
	min-inline-size: 0;
	padding: var(--sis-space-1) var(--sis-space-2) var(--sis-space-1) 0;
}

/*
 * The logo's height comes from --sis-logo-size; its width follows. Two
 * classes are used so the rule outranks WooCommerce's ".woocommerce-page img"
 * on the cart and account pages.
 */
.sis-header__logo .sis-logo,
.sis-footer__logo .sis-logo {
	inline-size: auto;
	max-inline-size: none;
	block-size: var(--sis-logo-size, 2.375rem);
}

/* On a narrow phone the header logo shrinks to the room left beside the
   icons, keeping its shape, instead of running under them. */
.sis-header__logo .sis-logo {
	max-inline-size: 100%;
	object-fit: contain;
	object-position: left center;
}

.sis-header__search {
	grid-area: search;
	min-inline-size: 0;
}

.sis-header__actions {
	grid-area: actions;
	display: flex;
	align-items: center;
	gap: var(--sis-space-2);
}

/*
 * My Account: a circle like the other header icons. From 640px the word
 * "Account" sits under it, and "Cart" under the cart (Aziz, November 30:
 * older customers should not have to guess what the icons mean).
 */
.sis-header__account {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	color: var(--sis-ink);
	text-decoration: none;
}

.sis-header__circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: var(--sis-tap);
	block-size: var(--sis-tap);
	border-radius: 50%;
	background: var(--sis-blue-tint);
}

.sis-header__label {
	display: none;
	font-size: var(--sis-text-sm);
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.sis-header__account:hover .sis-header__label,
.sis-cart:hover .sis-header__label {
	color: var(--sis-blue);
	text-decoration: underline;
}

/* Phones: My Account is in the menu, so the logo, chat and cart have room. */
@media (width < 640px) {
	.sis-header__account {
		display: none;
	}
}

@media (width >= 640px) {
	.sis-header__label {
		display: block;
	}

	.sis-header__account {
		gap: var(--sis-space-1);
	}
}

@media (width < 400px) {
	.sis-header__row {
		padding-inline: var(--sis-space-4);
	}
}

.sis-cart {
	display: inline-flex;
	align-items: center;
	min-block-size: var(--sis-tap);
	color: var(--sis-ink);
	font-size: var(--sis-text-sm);
	font-weight: 700;
	text-decoration: none;
}

.sis-cart__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: var(--sis-tap);
	block-size: var(--sis-tap);
	border-radius: 50%;
	background: var(--sis-blue-tint);
}

.sis-cart__count {
	position: absolute;
	inset-block-start: -0.375rem;
	inset-inline-end: -0.375rem;
	min-inline-size: 1.375rem;
	padding: 0.0625rem 0.3125rem;
	border: 2px solid var(--sis-white);
	border-radius: 999px;
	background: var(--sis-magenta);
	color: var(--sis-white);
	font-size: var(--sis-text-xs);
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
}

.sis-cart__count:empty {
	display: none;
}

/* The total shows on wide screens only; the space before it belongs to it,
   so an icon with no total beside it sits at the edge of the header. Its
   element is on the page even while the cart is empty. */
.sis-cart__amount {
	display: none;
	margin-inline-start: var(--sis-space-3);
}

.sis-cart__amount:empty {
	display: none;
}

@media (width >= 640px) {
	/* Cart: icon over its word, the total (wide screens) beside the icon. */
	.sis-cart {
		display: inline-grid;
		grid-template-columns: auto auto;
		grid-template-areas:
			"icon total"
			"label total";
		row-gap: var(--sis-space-1);
		justify-items: center;
	}

	.sis-cart__icon {
		grid-area: icon;
	}

	.sis-cart .sis-header__label {
		grid-area: label;
	}

	.sis-cart__total {
		grid-area: total;
		align-self: start;
		display: flex;
		align-items: center;
		min-block-size: var(--sis-tap);
	}
}

.sis-search {
	display: flex;
	padding: 0.3125rem;
	border: 1.5px solid var(--sis-ink);
	border-radius: 0.625rem;
	background: var(--sis-white);
	box-shadow: 0 4px 14px rgb(20 21 26 / 12%);
}

.sis-search__input {
	flex: 1;
	min-inline-size: 0;
	border: 0;
	background: transparent;
}

/* Magnifier before the word, like FiboSearch's button (integrations.css). */
.sis-search__submit {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-inline-size: var(--sis-tap);
	min-block-size: var(--sis-tap);
	padding-inline: var(--sis-space-5);
	border: 0;
	border-radius: 0.4375rem;
	background: var(--sis-blue);
	color: var(--sis-white);
	font-weight: 700;
}

/* Phones: the icon alone; the word is still read out. */
@media (width < 640px) {
	.sis-search__submit {
		padding-inline: 0;
	}

	.sis-search__label {
		position: absolute;
		inline-size: 1px;
		block-size: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* Black bar with an ink stripe under it: cyan, magenta and yellow in equal
   thirds, so with the bar the four ink colours are all there (Aziz,
   December 1). */
.sis-brandbar {
	display: none;
	justify-content: center;
	border-block-end: 6px solid var(--sis-ink);
	border-image: linear-gradient(90deg, var(--sis-cyan) 33.333%, var(--sis-magenta) 33.333% 66.667%, var(--sis-yellow) 66.667%) 1;
	background: var(--sis-ink);
}

/* Without JavaScript the menu button cannot open the drawer, so the brand
   bar stays visible (it scrolls sideways on small screens). */
.sis-no-js .sis-brandbar {
	display: flex;
}

.sis-no-js .sis-header__menu-btn {
	display: none;
}

.sis-brandbar__list {
	display: flex;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	list-style: none;
}

.sis-brandbar__list a,
.sis-brandbar__more > summary {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--sis-space-1);
	min-block-size: var(--sis-tap);
	padding: var(--sis-space-3) 1.25rem;
	color: var(--sis-white);
	font-size: var(--sis-text-sm);
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color 0.18s ease;
}

.sis-brandbar__list a {
	border-inline-end: 1px solid rgb(255 255 255 / 14%);
}

.sis-brandbar__list a::after {
	content: "";
	position: absolute;
	inset-block-end: 0;
	inset-inline: 20%;
	block-size: 3px;
	background: var(--sis-white);
	transform: scaleX(0);
	transition: transform 0.18s ease;
}

/* Hover: Deep Blue, the same hover as the search button and every other
   blue button, and clearly lighter than the black bar. */
.sis-brandbar__list a:hover,
.sis-brandbar__more > summary:hover {
	background: var(--sis-blue-dark);
	color: var(--sis-white);
}

.sis-brandbar__list a:hover::after,
.sis-brandbar__list a[aria-current]::after {
	transform: scaleX(1);
}

.sis-brandbar :focus-visible {
	outline-color: var(--sis-white);
	outline-offset: -4px;
}

.sis-brandbar__more {
	position: relative;
}

.sis-brandbar__more > summary {
	list-style: none;
	cursor: pointer;
}

.sis-brandbar__more > summary::-webkit-details-marker {
	display: none;
}

.sis-brandbar__more[open] > summary .sis-icon {
	transform: rotate(180deg);
}

.sis-brandbar__more-list {
	position: absolute;
	inset-block-start: 100%;
	inset-inline-end: 0;
	z-index: 10;
	min-inline-size: 14rem;
	padding: var(--sis-space-2);
	border: 1px solid var(--sis-border);
	border-radius: var(--sis-radius-md);
	background: var(--sis-white);
	box-shadow: var(--sis-shadow-md);
}

.sis-brandbar__more-list a {
	display: flex;
	align-items: center;
	min-block-size: var(--sis-tap);
	padding-inline: var(--sis-space-3);
	border-radius: var(--sis-radius-sm);
	color: var(--sis-ink);
	font-weight: 600;
	text-decoration: none;
}

.sis-brandbar__more-list a:hover {
	background: var(--sis-blue-tint);
}

.sis-brandbar__more-list :focus-visible {
	outline-color: var(--sis-blue);
}

@media (width >= 640px) {
	.sis-header__row {
		grid-template-columns: auto auto 1fr auto;
		grid-template-areas: "menu logo search actions";
		gap: var(--sis-space-4);
	}

	/* From here up the floating chat button shows (integrations.css). */
	.sis-header__chat {
		display: none;
	}

	.sis-header__logo {
		--sis-logo-size: 2.875rem;
	}
}

@media (width >= 1024px) {
	.sis-header__row {
		/* The last column has a set width: "Account" (3.75rem, wider than its
		   icon), the cart icon and a cart total up to $9,999.99. The total is
		   filled in after the page loads, and a column sized by its contents
		   would widen at that moment and slide the search box sideways. */
		grid-template-columns:
			auto
			1fr
			minmax(calc(3.75rem + var(--sis-tap) + var(--sis-space-4) + var(--sis-space-3) + 4.75rem), auto);
		grid-template-areas: "logo search actions";
		gap: var(--sis-space-5);
		padding-block: var(--sis-space-4);
	}

	.sis-header__menu-btn {
		display: none;
	}

	.sis-header__search {
		justify-self: center;
		inline-size: 100%;
		max-inline-size: 44rem;
	}

	.sis-header__actions {
		justify-content: flex-end;
		gap: var(--sis-space-4);
	}

	.sis-cart__amount {
		display: inline;
	}

	.sis-brandbar {
		display: flex;
	}
}

/* ---------------------------------------------------------------
 * Mobile menu (native <dialog>)
 * ------------------------------------------------------------- */
.sis-drawer {
	inset: 0 auto 0 0;
	inline-size: min(20rem, 85vw);
	max-inline-size: none;
	block-size: 100dvh;
	max-block-size: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--sis-white);
	color: var(--sis-ink);
	box-shadow: 12px 0 32px rgb(20 21 26 / 18%);

	/* The whole menu scrolls as one page (since 1.0.22). A list scrolling
	   inside the menu hid half the brands with nothing to show they were
	   there. */
	overflow-y: auto;
	overscroll-behavior: contain;
}

.sis-drawer[open] {
	display: flex;
	flex-direction: column;
}

.sis-drawer::backdrop {
	background: rgb(20 21 26 / 50%);
}

.sis-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sis-space-3);
	padding: var(--sis-space-3) var(--sis-space-3) var(--sis-space-3) var(--sis-space-5);
	border-block-end: 1px solid var(--sis-border);

	/* The close button stays in reach while the menu scrolls. */
	position: sticky;
	inset-block-start: 0;
	z-index: 1;
	background: var(--sis-white);
}

.sis-drawer__title {
	font-size: var(--sis-text-md);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

.sis-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: var(--sis-tap);
	block-size: var(--sis-tap);
	border: 0;
	border-radius: 50%;
	background: var(--sis-surface);
}

/* Brands (since 1.0.28). The six that make up almost all orders are big
   buttons; the rest sit under "More brands", which opens in place. Both
   lists are two columns that read down the left column, then the right
   (mobile-nav.php sets the row count), in the same order as keyboard and
   screen-reader users meet them. */
.sis-drawer__popular,
.sis-drawer__more-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(var(--sis-drawer-rows, 3), auto);
	grid-auto-flow: column;
}

.sis-drawer__popular {
	gap: var(--sis-space-2);
	padding: var(--sis-space-4) var(--sis-space-5) var(--sis-space-3);
}

.sis-drawer__popular a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sis-space-2);
	block-size: 100%;
	min-block-size: 3.25rem;
	padding: var(--sis-space-2) var(--sis-space-3) var(--sis-space-2) var(--sis-space-4);
	border: 1px solid var(--sis-border-strong);
	border-radius: var(--sis-radius-sm);
	color: var(--sis-ink);
	font-size: var(--sis-text-md);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.sis-drawer__popular .sis-icon {
	flex-shrink: 0;
	color: var(--sis-gray);
}

.sis-drawer__popular a:hover {
	border-color: var(--sis-blue);
	color: var(--sis-blue);
}

.sis-drawer__popular a:hover .sis-icon {
	color: currentcolor;
}

.sis-drawer__more {
	margin: 0 var(--sis-space-5) var(--sis-space-4);
	border: 1px solid var(--sis-border);
	border-radius: var(--sis-radius-sm);
}

.sis-drawer__more > summary {
	display: flex;
	align-items: center;
	gap: var(--sis-space-2);
	min-block-size: var(--sis-tap);
	padding: var(--sis-space-2) var(--sis-space-3) var(--sis-space-2) var(--sis-space-4);
	color: var(--sis-ink);
	font-size: var(--sis-text-sm);
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.sis-drawer__more > summary::-webkit-details-marker {
	display: none;
}

.sis-drawer__count {
	color: var(--sis-gray);
	font-weight: 600;
}

.sis-drawer__more > summary .sis-icon {
	flex-shrink: 0;
	margin-inline-start: auto;
	color: var(--sis-gray);
}

.sis-drawer__more[open] > summary {
	border-block-end: 1px solid var(--sis-border);
}

.sis-drawer__more[open] > summary .sis-icon {
	transform: rotate(180deg);
}

.sis-drawer__more-list {
	padding-block: var(--sis-space-1);
}

.sis-drawer__more-list a {
	display: flex;
	align-items: center;
	block-size: 100%;
	min-block-size: var(--sis-tap);
	padding: var(--sis-space-1) var(--sis-space-4);
	color: var(--sis-ink);
	font-size: var(--sis-text-sm);
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
}

.sis-drawer__more-list a:hover {
	color: var(--sis-blue);
	text-decoration: underline;
}

.sis-drawer__link-list a,
.sis-drawer__phone {
	display: flex;
	align-items: center;
	gap: var(--sis-space-2);
	min-block-size: 3rem;
	padding-inline: var(--sis-space-5);
	color: var(--sis-ink);
	font-weight: 700;
	text-decoration: none;
}

.sis-drawer__links {
	border-block-start: 1px solid var(--sis-border);
}

/* Free shipping, one line on a pale box. It links to Shipping Info, so the
   text underlines on hover like the other menu links. The 8px side padding
   keeps the line to one row on 360px phones (it needs 233px). */
.sis-drawer__note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--sis-space-2);
	min-block-size: var(--sis-tap);
	margin: var(--sis-space-3) var(--sis-space-5) var(--sis-space-5);
	padding: var(--sis-space-2);
	border-radius: var(--sis-radius-sm);
	background: var(--sis-blue-tint);
	color: var(--sis-ink);
	font-size: var(--sis-text-sm);
	font-weight: 700;
	text-decoration: none;
}

/* The truck keeps its 20px; in a flex row an icon otherwise shrinks when
   the text needs the room. */
.sis-drawer__note .sis-icon {
	flex-shrink: 0;
	color: var(--sis-blue-dark);
}

.sis-drawer__note:hover span {
	text-decoration: underline;
}

/* ---------------------------------------------------------------
 * Breadcrumb
 * ------------------------------------------------------------- */
.sis-breadcrumb {
	padding: var(--sis-space-4) var(--sis-gutter) 0;
	color: var(--sis-gray);
	font-size: var(--sis-text-sm);
}

.sis-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sis-space-1) var(--sis-space-2);

	/* Same width as the content under it; product pages are wider (catalog.css). */
	max-inline-size: var(--sis-page-narrow);
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.sis-breadcrumb__item:not(:last-child)::after {
	content: "\203A"; /* single right-pointing angle quotation mark */
	margin-inline-start: var(--sis-space-2);
}

.sis-breadcrumb__item a {
	display: inline-block;
	padding-block: var(--sis-space-2);
	color: var(--sis-gray);
	text-decoration: none;
}

.sis-breadcrumb__item a:hover {
	color: var(--sis-blue);
	text-decoration: underline;
}

.sis-breadcrumb__item [aria-current] {
	display: inline-block;
	padding-block: var(--sis-space-2);
	color: var(--sis-ink);
	font-weight: 600;
}

/* ---------------------------------------------------------------
 * Selling-point row, letter tiles, questions
 * ------------------------------------------------------------- */
.sis-trust {
	display: grid;
	gap: var(--sis-space-4);
	padding: var(--sis-space-5) var(--sis-gutter);
	border-block: 1px solid var(--sis-border);
	background: var(--sis-blue-tint);
}

.sis-trust__item {
	display: flex;
	align-items: center;
	gap: var(--sis-space-3);
}

/* Phones and tablets show the first three, as in the design. */
.sis-trust__item:nth-child(n + 4) {
	display: none;
}

.sis-trust__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 2.875rem;
	block-size: 2.875rem;
	border-radius: 50%;
	background: var(--sis-white);
	flex-shrink: 0;
}

.sis-badge-icon {
	inline-size: 1.875rem;
	block-size: 1.875rem;
	object-fit: contain;
}

.sis-trust__text {
	display: grid;
	color: var(--sis-gray);
	font-size: var(--sis-text-sm);
	line-height: 1.35;
}

.sis-trust__text strong {
	color: var(--sis-ink);
	font-size: var(--sis-text-md);
}

/* Phones: the three facts stack, so a thin line between them keeps each
   one reading as its own item. They are not links, so they stay plain rows
   rather than boxes or buttons. */
@media (width < 640px) {
	.sis-trust {
		gap: 0;
		padding-block: var(--sis-space-2);
	}

	.sis-trust__item {
		padding-block: var(--sis-space-4);
	}

	.sis-trust__item + .sis-trust__item {
		border-block-start: 1px solid rgb(30 95 234 / 18%);
	}
}

@media (width >= 640px) {
	.sis-trust {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (width >= 1024px) {
	/* Each badge keeps its text on one line; if they cannot all fit (large
	   text, wide letter spacing) the row wraps instead of squeezing them. */
	.sis-trust {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: var(--sis-space-3) 0;
	}

	.sis-trust__item,
	.sis-trust__item:nth-child(n + 4) {
		display: flex;
		padding-inline: 1.375rem;
	}

	.sis-trust__item:not(:last-child) {
		border-inline-end: 1px solid rgb(30 95 234 / 15%);
	}
}

.sis-letter {
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 2.75rem;
	block-size: 2.75rem;
	border-radius: 0.625rem;
	font-size: 1.1875rem;
	font-weight: 800;
	flex-shrink: 0;
}

.sis-letter--0 {
	background: rgb(30 95 234 / 8%);
	color: var(--sis-blue);
}

.sis-letter--1 {
	background: rgb(0 174 239 / 10%);
	color: #006f99;
}

.sis-letter--2 {
	background: rgb(230 0 126 / 7%);
	color: #c2006a;
}

.sis-letter--3 {
	background: rgb(255 200 0 / 16%);
	color: #7a5c00;
}

.sis-faq {
	display: grid;
	gap: var(--sis-space-3);
	max-inline-size: 52.5rem;
}

.sis-faq__item {
	padding: var(--sis-space-5);
	border: 1px solid var(--sis-border);
	border-radius: var(--sis-radius-md);
	background: var(--sis-white);
}

.sis-faq__q {
	margin-block-end: var(--sis-space-2);
	font-size: var(--sis-text-md);
	font-weight: 700;
	letter-spacing: 0;
}

.sis-faq__a {
	color: var(--sis-gray);
	line-height: 1.6;
}

/* "Yes." / "No." at the start of an answer. */
.sis-faq__a strong {
	color: var(--sis-ink);
}

/* An answer split into short lines (faq_list() "lines"), each starting with
   a bold label, one under the other. */
.sis-faq__lines {
	display: grid;
	gap: var(--sis-space-1);
}

.sis-faq__lines strong {
	color: var(--sis-ink);
}

/* ---------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------- */
.sis-footer {
	padding: var(--sis-space-7) var(--sis-gutter) var(--sis-space-5);
	background: var(--sis-ink);
	color: rgb(255 255 255 / 72%);
	font-size: var(--sis-text-sm);
}

/* "Discounts & Deals" signup (template-parts/footer/deals.php), above the
   footer links. Shown only when its FunnelKit webhook is set. */
.sis-deals {
	display: grid;
	gap: var(--sis-space-5);
	max-inline-size: var(--sis-page);
	margin: 0 auto var(--sis-space-6);
	padding-block-end: var(--sis-space-6);
	border-block-end: 1px solid rgb(255 255 255 / 12%);
}

.sis-deals__title {
	color: var(--sis-white);
	font-size: var(--sis-text-2xl);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

.sis-deals__lead {
	margin-block-start: var(--sis-space-2);
	color: rgb(255 255 255 / 80%);
	font-size: var(--sis-text-md);
	line-height: 1.5;
}

.sis-deals__fields {
	display: grid;
	gap: var(--sis-space-2);
}

.sis-deals__label {
	color: var(--sis-white);
	font-weight: 700;
}

.sis-deals__row {
	display: grid;
	gap: var(--sis-space-2);
}

.sis-deals__input {
	inline-size: 100%;
	min-block-size: 3.25rem;
	padding: 0 var(--sis-space-4);
	border: 2px solid var(--sis-white);
	border-radius: var(--sis-radius-sm);
	background: var(--sis-white);
	color: var(--sis-ink);
	font-size: var(--sis-text-lg);
}

/* The hint inside the box goes away as soon as the box is clicked, not only
   once typing starts. */
.sis-deals__input:focus::placeholder {
	color: transparent;
}

.sis-deals__input[aria-invalid="true"] {
	border-color: var(--sis-red-on-ink);
	box-shadow: 0 0 0 1px var(--sis-red-on-ink);
}

.sis-deals__button {
	min-block-size: 3.25rem;
	padding-inline: 1.75rem;
	font-size: var(--sis-text-lg);
}

.sis-deals__message {
	color: var(--sis-red-on-ink);
	font-size: var(--sis-text-md);
	font-weight: 600;
}

.sis-deals__message:empty {
	display: none;
}

/* Kept out of sight without display: none, which some bots skip. */
.sis-deals__trap {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.sis-deals__done {
	display: flex;
	align-items: center;
	gap: var(--sis-space-3);
	padding: 1.125rem 1.25rem;
	border-radius: var(--sis-radius-md);
	background: var(--sis-green-tint);
	color: var(--sis-ink);
	font-size: var(--sis-text-md);
	line-height: 1.45;
}

.sis-deals__done strong {
	display: block;
	color: var(--sis-green);
	font-size: var(--sis-text-lg);
}

.sis-deals__check {
	flex: none;
	color: var(--sis-green);
}

@media (width >= 640px) {
	.sis-deals__row {
		grid-template-columns: minmax(0, 1fr) auto;
	}
}

@media (width >= 1024px) {
	.sis-deals {
		grid-template-columns: minmax(0, 1fr) minmax(0, 32.5rem);
		align-items: center;
		gap: 3rem;
	}
}

.sis-footer__grid {
	display: grid;
	gap: var(--sis-space-6);
	max-inline-size: var(--sis-page);
	margin-inline: auto;
}

.sis-footer__logo {
	display: inline-block;
	margin-block-end: var(--sis-space-3);
	padding: 0.375rem 0.625rem;
	border-radius: 0.375rem;
	background: var(--sis-white);

	--sis-logo-size: 2.125rem;
}

.sis-footer__brand p {
	max-inline-size: 22rem;
	line-height: 1.6;
}

.sis-footer__title {
	margin-block-end: var(--sis-space-2);
	color: var(--sis-white);
	font-size: var(--sis-text-sm);
	font-weight: 700;
	line-height: 1.2;
}

.sis-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sis-footer a {
	color: rgb(255 255 255 / 72%);
	text-decoration: none;
}

.sis-footer a:hover {
	color: var(--sis-white);
	text-decoration: underline;
}

.sis-footer :focus-visible {
	outline-color: var(--sis-white);
}

.sis-footer__links a {
	display: inline-flex;
	align-items: center;
	gap: var(--sis-space-2);
	min-block-size: 2.25rem;
}

.sis-footer__links--contact a {
	color: var(--sis-white);
	font-weight: 600;
}

.sis-footer__google {
	display: inline-block;
	margin-block-start: var(--sis-space-4);
}

.sis-footer__google img {
	inline-size: 12.5rem;
}

.sis-footer__bottom {
	display: grid;
	gap: var(--sis-space-2);
	max-inline-size: var(--sis-page);
	margin: var(--sis-space-6) auto 0;
	padding-block-start: var(--sis-space-5);
	border-block-start: 1px solid rgb(255 255 255 / 12%);
	font-size: var(--sis-text-xs);
}

/* Underlined: it sits in the copyright sentence in nearly the same grey,
   so without the line it cannot be told apart from the text. */
.sis-footer__copy a {
	margin-inline-start: var(--sis-space-2);
	color: rgb(255 255 255 / 85%);
	text-decoration: underline;
}

.sis-footer__secure {
	display: flex;
	align-items: center;
	gap: var(--sis-space-1);
}

@media (width >= 640px) {
	.sis-footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.sis-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (width >= 1024px) {
	.sis-footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	}

	.sis-footer__brand {
		grid-column: auto;
	}

	.sis-footer__bottom {
		grid-template-columns: 1fr auto;
	}

	.sis-footer__disclaimer {
		grid-column: 1 / -1;
	}
}

/* ---------------------------------------------------------------
 * Custom select (native <select> with our arrow)
 * ------------------------------------------------------------- */
.sis-select {
	position: relative;
}

.sis-select select {
	inline-size: 100%;
	padding-inline-end: 2.5rem;
	border: 1px solid var(--sis-border-strong);
	background: var(--sis-surface);
	font-weight: 600;
	appearance: none;
}

.sis-select .sis-icon {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 0.875rem;
	transform: translateY(-50%);
	color: var(--sis-gray);
	pointer-events: none;
}

/* Visible only to screen readers. WordPress and WooCommerce use this class. */
.screen-reader-text {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	clip-path: inset(50%);
	white-space: nowrap;
	overflow-wrap: normal;
}

/* Controls that only work with JavaScript, and their no-JavaScript stand-ins. */
.sis-no-js .sis-js-only,
.sis-js .sis-no-js-only {
	display: none;
}

/* ---------------------------------------------------------------
 * Quantity stepper (product cards, product page and cart)
 * ------------------------------------------------------------- */
.quantity {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--sis-border-strong);
	border-radius: var(--sis-radius-sm);
	overflow: hidden;
	flex-shrink: 0;
}

.quantity .qty {
	inline-size: 2.75rem;
	min-block-size: var(--sis-tap);
	padding: 0;
	border: 0;
	border-inline: 1px solid var(--sis-border);
	border-radius: 0;
	font-weight: 700;
	text-align: center;
	appearance: textfield;
}

.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button {
	margin: 0;
	appearance: none;
}

.sis-qty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 2.5rem;
	border: 0;
	background: var(--sis-white);
	color: var(--sis-ink);
}

.sis-qty__btn:hover {
	background: var(--sis-surface);
}

.sis-qty__btn:focus-visible,
.quantity .qty:focus-visible {
	outline-offset: -3px;
}

/* The plus and minus buttons need JavaScript; a hidden quantity (sold
   individually) needs no stepper at all. */
.sis-no-js .sis-qty__btn,
.quantity:has(input[type="hidden"]) {
	display: none;
}

/* ---------------------------------------------------------------
 * Brand tiles (homepage, main shop page and the 404 page)
 * ------------------------------------------------------------- */
.sis-brands__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--sis-space-4);
}

.sis-brand-tile {
	display: grid;
	justify-items: center;
	block-size: 100%;
	padding: var(--sis-space-5) var(--sis-space-3) var(--sis-space-4);
	border-radius: var(--sis-radius-lg);
	background: var(--sis-white);
	box-shadow: var(--sis-shadow-sm);
	color: var(--sis-ink);
	text-align: center;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sis-brand-tile:hover {
	box-shadow: var(--sis-shadow-md);
	color: var(--sis-ink);
	transform: translateY(-4px);
}

.sis-brand-tile__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 100%;
	block-size: 6rem;
	margin-block-end: var(--sis-space-3);
}

.sis-brand-tile__visual img {
	max-block-size: 6rem;
	inline-size: auto;
	object-fit: contain;
}

.sis-brand-tile__visual .sis-letter {
	inline-size: 4.5rem;
	block-size: 4.5rem;
	border-radius: var(--sis-radius-lg);
	font-size: 2rem;
}

.sis-brand-tile__name {
	font-size: var(--sis-text-lg);
	font-weight: 800;
}

.sis-brand-tile__cta {
	display: inline-flex;
	align-items: center;
	gap: var(--sis-space-1);
	margin-block-start: var(--sis-space-2);
	color: var(--sis-blue);
	font-size: var(--sis-text-sm);
	font-weight: 600;
}

@media (width >= 640px) {
	.sis-brands__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (width >= 1024px) {
	.sis-brands__grid {
		grid-template-columns: repeat(5, 1fr);
	}
}
