/*
Theme Name:   Second Wind
Description:  Clean, approachable look for Second Wind Cigars. Child theme of Twenty Twenty-Five; colors and type live in theme.json and can be changed in Appearance → Editor → Styles.
Template:     twentytwentyfive
Version:      0.5.6
Requires at least: 6.7
Requires PHP: 7.4
Author:       Second Wind Cigars
License:      GPL-2.0-or-later
Text Domain:  secondwind
*/

/*
 * Mobile first: the rules outside media queries are the phone layout. Larger screens add to them:
 *   600px  large phones and small tablets
 *   782px  tablets (WordPress's own breakpoint)
 *   960px  desktops
 * Anything people tap is at least 44px tall.
 */

:root {
	--swc-tap: 44px;
	--swc-radius: 14px;
	--swc-line: var(--wp--preset--color--accent-5);
	--swc-muted: var(--wp--preset--color--accent-6);
	--swc-header-h: 64px;
}

/* ---------- Base ---------- */

/* 16px or more in form fields, so phones don't zoom in when one is tapped. */
input,
select,
textarea {
	font-size: max(16px, 1em);
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-1);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Breadcrumbs: links big enough to tap. */
.woocommerce-breadcrumb,
.wc-block-breadcrumbs {
	font-size: 0.9rem;
	line-height: 2.2;
}

/* ---------- Header ---------- */

.swc-header {
	position: relative;
}

.swc-header .wp-block-site-title a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}

.swc-header .wp-block-navigation a {
	text-decoration: none;
	font-weight: 500;
}

.swc-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--accent-1);
}

/* Icons in the header (menu, search, account, cart): full-size tap targets. The menu button only
   gets a size, since WordPress hides it on larger screens. */
.swc-header .wp-block-navigation__responsive-container-open {
	min-width: var(--swc-tap);
	min-height: var(--swc-tap);
	justify-content: center;
}

/* The one rule written for small screens only: WordPress hides the menu button from 600px, and a
   "display" set for every width would bring it back. */
@media (max-width: 599px) {
	.swc-header .wp-block-navigation__responsive-container-open {
		display: inline-flex;
		align-items: center;
	}
}

.swc-header .wp-block-navigation {
	align-self: center;
}

.swc-header .wc-block-mini-cart__button,
.swc-header .wp-block-woocommerce-customer-account a,
.swc-search__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--swc-tap);
	min-height: var(--swc-tap);
	padding: 0;
}

.swc-header .wp-block-group {
	gap: 4px;
}

/* Search: a magnifier in the header opens a full-width bar under it. */
.swc-search {
	position: static;
}

.swc-search__toggle {
	list-style: none;
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
}

.swc-search__toggle::-webkit-details-marker {
	display: none;
}

.swc-search__toggle:hover,
.swc-search[open] .swc-search__toggle {
	background: var(--wp--preset--color--accent-2);
}

.swc-search__form {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 50;
	display: flex;
	gap: 8px;
	padding: 12px var(--wp--preset--spacing--40);
	border-bottom: 1px solid var(--swc-line);
	background: var(--wp--preset--color--base);
	box-shadow: 0 12px 24px rgba(43, 33, 27, 0.1);
}

.swc-search__input {
	flex: 1;
	min-width: 0;
	min-height: var(--swc-tap);
	padding: 0 16px;
	border: 1.5px solid var(--swc-line);
	border-radius: 999px;
	background: #fff;
	font: inherit;
}

.swc-search__submit {
	min-height: var(--swc-tap);
	padding: 0 1.3em !important;
}

/* Phone menu: full-width rows that are easy to tap, reading left to right. */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: 16px var(--wp--preset--spacing--40) 32px;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch;
	padding-top: 56px;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: stretch !important;
	gap: 0 !important;
	width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	align-items: stretch !important;
	width: 100%;
	border-bottom: 1px solid var(--swc-line);
	text-align: left;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item > a,
.wp-block-navigation__responsive-container.is-menu-open .swc-has-mega > a {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 0 !important;
	font-size: 1.2rem;
	font-weight: 600;
}

.wp-block-navigation__responsive-container-close {
	min-width: var(--swc-tap);
	min-height: var(--swc-tap);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ---------- Shop directory: header dropdown, Shop landing page ---------- */

.wp-block-navigation .swc-has-mega {
	gap: 2px;
}

.swc-mega-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--swc-tap);
	height: var(--swc-tap);
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.swc-mega-toggle:hover,
.swc-mega-toggle:focus-visible {
	background: var(--wp--preset--color--accent-2);
}

.swc-mega-toggle svg {
	transition: transform 0.15s ease;
}

.swc-has-mega.is-open .swc-mega-toggle svg {
	transform: rotate(180deg);
}

/* In the phone menu the directory opens in place, under "Shop"; the toggle sits at the row's end. */
.is-menu-open .swc-has-mega {
	flex-wrap: wrap;
	justify-content: space-between;
	width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .swc-has-mega {
	flex-direction: row !important;
	align-items: center !important;
}

.is-menu-open .swc-has-mega > a {
	flex: 1 1 0;
	width: auto !important;
	min-width: 0;
}

.swc-mega {
	position: static;
	width: 100%;
	padding: 4px 0 16px;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	text-align: left;
}

.swc-mega[hidden] {
	display: none;
}

.swc-dir {
	display: grid;
	gap: var(--wp--preset--spacing--40);
}

.swc-dir a {
	text-decoration: none;
	color: inherit;
}

.swc-dir a:hover {
	color: var(--wp--preset--color--accent-1);
}

.swc-dir__cat {
	min-width: 0;
}

.swc-dir--page {
	margin-bottom: var(--wp--preset--spacing--50);
}

/* Shop page: each category is an open section on the page (heading, a thin rule above, its list),
   not a shaded box, so it reads as the page's main content rather than a footer-like panel. */
.swc-dir--page .swc-dir__cat {
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--swc-line);
}

.swc-dir__img img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 12px;
}

.swc-dir__title {
	margin: 0 0 10px;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.swc-dir--page .swc-dir__title {
	font-size: 1.6rem;
	text-transform: none;
	letter-spacing: -0.01em;
}

.swc-dir__count {
	display: inline-block;
	margin-left: 4px;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-2);
	font-size: 0.75rem;
	font-weight: 600;
	vertical-align: middle;
	color: var(--swc-muted);
}

.swc-dir__subs,
.swc-dir__brands {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
}

.swc-dir__subs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.swc-dir__subs a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid var(--swc-line);
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
}

/* Brand lists: rows tall enough to tap, two columns on a phone. */
.swc-dir__brands li {
	break-inside: avoid;
}

.swc-dir__brands a {
	display: flex;
	align-items: center;
	min-height: 40px;
}

.swc-dir__brands.is-long {
	columns: 2;
	column-gap: 16px;
}

.swc-dir__all {
	display: inline-flex;
	align-items: center;
	min-height: var(--swc-tap);
	font-weight: 600;
	color: var(--wp--preset--color--accent-1) !important;
}

.swc-dir__browse {
	text-align: center;
}

.swc-dir__empty {
	text-align: center;
	color: var(--swc-muted);
}

/* "Cigars brands ▾" buttons: phone menu only. */
.swc-dir__expand {
	display: none;
}

.is-menu-open .swc-dir__all {
	display: flex;
}

.is-menu-open .swc-dir__expand {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: var(--swc-tap);
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--swc-muted);
	font: inherit;
	font-size: 1rem;
	cursor: pointer;
}

.is-menu-open .swc-dir__cat.is-expanded .swc-dir__expand svg {
	transform: rotate(180deg);
}

.is-menu-open .swc-dir__cat:not(.is-expanded) .swc-dir__brands,
.is-menu-open .swc-dir__cat:not(.is-expanded) .swc-dir__subs {
	display: none;
}

.is-menu-open .swc-dir--menu {
	gap: 0;
}

.is-menu-open .swc-dir--menu .swc-dir__cat {
	padding: 8px 0 8px 12px;
	border-top: 1px solid var(--swc-line);
}

.is-menu-open .swc-dir__title {
	margin: 0;
	font-size: 1rem;
}

/* ---------- Category pages: brand buttons, A–Z list, product grids ---------- */

.swc-listing-filters {
	margin-bottom: var(--wp--preset--spacing--30);
}

/* Brand buttons: one row that scrolls sideways on a phone, fading at the edge to show there's more. */
.swc-chips {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	margin: 0 calc(-1 * var(--wp--preset--spacing--40)) 10px;
	padding: 2px var(--wp--preset--spacing--40) 6px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	-webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
	mask-image: linear-gradient(to right, #000 85%, transparent);
}

.swc-chips::-webkit-scrollbar {
	display: none;
}

.swc-chip {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1.5px solid var(--swc-line);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-size: 0.95rem;
	text-decoration: none;
	white-space: nowrap;
}

.swc-chip:hover {
	border-color: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-1);
}

.swc-chip.is-active {
	border-color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.swc-chips--subs .swc-chip {
	font-weight: 600;
	background: var(--wp--preset--color--accent-2);
	border-color: transparent;
}

/* Shop landing page: the title spans the same width as the directory under it, so its left edge
   lines up with the cards (on other pages both use the narrower text width). */
.swc-shop-landing .wp-block-post-title {
	max-width: var(--wp--style--global--wide-size) !important;
}

/* "Categories" / "Brands" over the two rows of buttons on a page like Accessories. */
.swc-chips__label {
	margin: 0 0 4px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--swc-muted);
}

/* The A–Z page lists everything, so a result count and "Sort by" don't apply. */
.swc-az-view .wp-block-woocommerce-product-results-count,
.swc-az-view .wp-block-woocommerce-catalog-sorting,
.swc-az-view .woocommerce-result-count,
.swc-az-view .woocommerce-ordering {
	display: none;
}

/* Letter bar: one sideways-scrolling row that stays at the top while you scroll. */
.swc-az__jump {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	flex-wrap: nowrap;
	gap: 4px;
	margin: 0 calc(-1 * var(--wp--preset--spacing--40)) 20px;
	padding: 8px var(--wp--preset--spacing--40);
	overflow-x: auto;
	scrollbar-width: none;
	border-bottom: 1px solid var(--swc-line);
	background: var(--wp--preset--color--base);
}

.swc-az__jump::-webkit-scrollbar {
	display: none;
}

.swc-az__jump a,
.swc-az__jump span {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
}

.swc-az__jump a {
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--contrast);
}

.swc-az__jump a:hover,
.swc-az__jump a:focus-visible {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
}

/* Letters with no brands: hidden on a phone, where the row has to scroll anyway. */
.swc-az__jump span {
	display: none;
	color: var(--swc-line);
}

.swc-az__letter-group {
	scroll-margin-top: 72px; /* Clear the sticky letter bar when jumping. */
	margin: 0 0 32px;
}

.swc-az__letter {
	margin: 0 0 12px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--wp--preset--color--accent-2);
	font-size: 1.6rem;
}

.swc-az__brand {
	margin: 0 0 24px;
}

.swc-az__brand-name {
	margin: 0 0 4px;
	font-size: 1.1rem;
	font-weight: 700;
}

.swc-az__brand-name a {
	display: inline-flex;
	align-items: center;
	min-height: var(--swc-tap);
	color: inherit;
	text-decoration: none;
}

.swc-az__brand-name a:hover {
	color: var(--wp--preset--color--accent-1);
}

/* Product tiles. On a phone each is a row (photo, name, price), so a long brand list is quick to
   scan; from 600px they become a grid of cards. */
.swc-tiles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0;
}

.swc-tile {
	position: relative;
	display: grid;
	grid-template-columns: 64px 1fr;
	grid-template-areas:
		"img name"
		"img price";
	align-content: center;
	column-gap: 14px;
	min-height: 80px;
	padding: 8px 0;
	border-bottom: 1px solid var(--swc-line);
}

.swc-tile__img {
	grid-area: img;
	align-self: center;
}

.swc-tile__img img {
	display: block;
	width: 100%;
	border-radius: 10px;
}

.swc-tile__name {
	grid-area: name;
	align-self: end;
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
}

.swc-tile__name a {
	color: inherit;
	text-decoration: none;
}

/* The whole row opens the product. */
.swc-tile__name a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.swc-tile__price {
	grid-area: price;
	align-self: start;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--swc-muted);
}

.swc-tile__price del {
	font-weight: 400;
}

.swc-tile__price ins {
	text-decoration: none;
}

/* Every product grid (category, all products, search, related, the empty cart's suggestions):
   two columns on a phone. */
:is(.wc-block-product-template, .products-block-post-template) {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 28px 16px !important;
}

:is(.wc-block-product-template, .products-block-post-template) > li {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
}

:is(.wc-block-product-template, .products-block-post-template) .wp-block-post-title {
	font-size: 0.95rem !important;
	line-height: 1.3;
}

:is(.wc-block-product-template, .products-block-post-template) :is(.wc-block-components-product-price, .wp-block-button__link) {
	font-size: 0.9rem !important;
}

:is(.wc-block-product-template, .products-block-post-template) .wp-block-button__link {
	min-height: var(--swc-tap);
	display: inline-flex;
	align-items: center;
}

/* Product thumbnails: shown as squares cut from the top of the photo, where the cigar's head and
   band are (photos are taken tall). Lists, search, related products, cart and checkout use it;
   the product page's own photo is shown whole. */
.swc-tile__img img,
.wc-block-components-product-image img,
.wc-block-grid__product-image img,
ul.products li.product img,
.wc-block-cart-item__image img,
.wc-block-components-order-summary-item__image img,
.wc-block-mini-cart__items img {
	width: 100%;
	height: auto !important;
	aspect-ratio: 1;
	object-fit: cover;
	object-position: 50% 0;
}

/* Product cards: soft card look with a gentle lift on hover. */
.wc-block-product,
.wc-block-grid__product,
ul.products li.product {
	border-radius: var(--swc-radius);
	background: var(--wp--preset--color--base);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wc-block-components-product-image img,
.wc-block-grid__product-image img,
ul.products li.product img {
	border-radius: 12px;
}

.wc-block-components-product-sale-badge,
.onsale {
	border-radius: 999px;
	border: 0;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
	font-weight: 600;
}

.stock.out-of-stock,
.wc-block-components-product-stock-indicator--out-of-stock {
	color: var(--wp--preset--color--accent-4);
	font-weight: 600;
}

.stock.in-stock,
.wc-block-components-product-stock-indicator--in-stock {
	color: var(--wp--preset--color--accent-3);
}

.wc-block-components-notice-banner {
	border-radius: 12px;
}

/* ---------- Product page: size & pack table ---------- */

/* Every size and pack in a table: Size · Pack · Availability · Price · Qty · Add. On a phone each
   row becomes a small card (pack and price, availability, then quantity and Add); from 701px it
   is a real table. */

.swc-vt {
	margin: var(--wp--preset--spacing--40) 0 var(--wp--preset--spacing--50);
	scroll-margin-top: 16px;
}

.swc-vt__title {
	margin: 0 0 12px;
	font-size: var(--wp--preset--font-size--large);
}

/* Inside the narrow column (before the script moves it, or if it can't) the title isn't needed. */
.swc-vt:not(.is-wide) .swc-vt__title {
	display: none;
}

.swc-vt__table {
	display: block;
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.swc-vt__table thead {
	display: none;
}

.swc-vt__table tbody {
	display: block;
}

.swc-vt__group {
	padding: 6px 0;
	border-bottom: 1px solid var(--swc-line);
}

.swc-vt__group:nth-of-type(even) {
	background: rgba(239, 230, 216, 0.45);
}

.swc-vt__row {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		"size size"
		"pack price"
		"avail avail"
		"qty add";
	gap: 6px 12px;
	padding: 10px 4px;
}

.swc-vt__row:not(.is-first) {
	border-top: 1px dashed var(--swc-line);
}

.swc-vt__table td {
	padding: 0;
	vertical-align: middle;
}

.swc-vt__size {
	grid-area: size;
}

.swc-vt__row:not(.is-first) .swc-vt__size {
	display: none;
}

.swc-vt__pack {
	grid-area: pack;
	font-weight: 600;
}

.swc-vt__price {
	grid-area: price;
	text-align: right;
	font-size: 1.1rem;
	font-weight: 700;
	white-space: nowrap;
}

.swc-vt__avail {
	grid-area: avail;
	font-size: 0.85rem;
}

.swc-vt__qty {
	grid-area: qty;
}

.swc-vt__add {
	grid-area: add;
	text-align: right;
}

/* Dimensions sit right after the size name ("Robusto 5 x 50"), wrapping as one piece. */
.swc-vt__details {
	margin-left: 0.4em;
	font-size: 0.85rem;
	white-space: nowrap;
	color: var(--swc-muted);
}

.swc-vt__stock.is-in {
	color: var(--wp--preset--color--accent-3);
	font-weight: 600;
}

.swc-vt__stock.is-low {
	color: var(--wp--preset--color--accent-4);
	font-weight: 700;
	font-style: italic;
}

.swc-vt__stock.is-out {
	color: var(--swc-muted);
}

.swc-vt__row.is-unavailable .swc-vt__price {
	opacity: 0.55;
}

.swc-vt__price del {
	display: block;
	font-size: 0.8rem;
	font-weight: 400;
	color: var(--swc-muted);
}

.swc-vt__price ins {
	text-decoration: none;
}

/* Under a pack price: what the same number of singles costs, and the saving. */
.swc-vt__was {
	display: block;
	font-size: 0.8rem;
	font-weight: 400;
	color: var(--swc-muted);
}

.swc-vt__was del {
	display: inline;
	font-size: inherit;
}

.swc-vt__save {
	font-weight: 700;
	color: var(--wp--preset--color--accent-3);
}

.swc-vt__qty select {
	min-width: 64px;
	min-height: var(--swc-tap);
	padding: 0 10px;
	border: 1.5px solid var(--swc-line);
	border-radius: 8px;
	background: var(--wp--preset--color--base);
	font: inherit;
}

.swc-vt__add form {
	margin: 0;
}

.swc-vt__button {
	min-height: var(--swc-tap);
	padding: 0 1.4em !important;
	white-space: nowrap;
}

.swc-vt__jump {
	display: inline-flex;
	align-items: center;
	min-height: var(--swc-tap);
	margin-top: 8px;
	padding: 0 1.5em;
	text-decoration: none;
}

/* Variation dropdowns elsewhere (e.g. quick views) as rounded pills. */
.variations select,
.wc-block-components-product-add-to-cart-attribute-picker select {
	border-radius: 999px;
	padding: 0.6em 1.1em;
	border: 1.5px solid var(--swc-line);
	background-color: var(--wp--preset--color--base);
}

/* ---------- Site pages ---------- */

.swc-eyebrow {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-1);
}

.swc-hero .swc-eyebrow {
	color: var(--swc-line);
}

.swc-hero h1 {
	max-width: 18ch;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.1;
}

/* Hero buttons: full width and stacked on a phone, side by side from 600px. */
.swc-hero .wp-block-buttons {
	flex-direction: column;
	align-items: stretch;
}

.swc-hero .wp-block-button__link {
	width: 100%;
	min-height: var(--swc-tap);
}

.swc-pull-quote {
	margin: var(--wp--preset--spacing--50) 0;
	padding-left: var(--wp--preset--spacing--40);
	border-left: 4px solid var(--wp--preset--color--accent-1);
	font-size: var(--wp--preset--font-size--large);
	font-style: italic;
	line-height: 1.4;
}

.swc-signature {
	font-weight: 600;
	color: var(--wp--preset--color--accent-1);
}

.swc-note {
	color: var(--swc-muted);
	font-size: 0.95rem;
}

.swc-brand-list {
	list-style: none;
	padding: 0;
	columns: 2;
	column-gap: var(--wp--preset--spacing--40);
}

.swc-brand-list li {
	break-inside: avoid;
	padding: 0.45em 0;
	border-bottom: 1px solid var(--swc-line);
}

.swc-menu-list {
	list-style: none;
	padding: 0;
}

.swc-menu-list li {
	padding: 0.6em 0;
	border-bottom: 1px dashed var(--swc-line);
}

.swc-check-list {
	list-style: none;
	padding: 0;
}

.swc-check-list li {
	position: relative;
	padding: 0.4em 0 0.4em 1.8em;
}

.swc-check-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	font-weight: 700;
	color: var(--wp--preset--color--accent-3);
}

.swc-per {
	font-size: 0.45em;
	font-weight: 500;
	color: var(--swc-muted);
}

.swc-map {
	margin-top: var(--wp--preset--spacing--50);
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--wp--preset--color--accent-2);
}

.swc-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Visit page: room between the rewards signup at the top and the address and hours under it. */
#rewards + .wp-block-columns {
	margin-top: var(--wp--preset--spacing--60) !important;
}

/* ---------- Rewards signup form ---------- */

.swc-loyalty-form {
	display: grid;
	gap: 14px;
	max-width: 560px;
}

.swc-loyalty-form .swc-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.swc-loyalty-form label {
	display: block;
	font-weight: 600;
	font-size: 0.95rem;
}

.swc-loyalty-form input[type="text"],
.swc-loyalty-form input[type="tel"],
.swc-loyalty-form input[type="email"] {
	box-sizing: border-box;
	width: 100%;
	min-height: var(--swc-tap);
	margin-top: 6px;
	padding: 10px 14px;
	border: 1.5px solid var(--swc-line);
	border-radius: 10px;
	background: var(--wp--preset--color--base);
	font: inherit;
}

.swc-loyalty-form .swc-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-weight: 400;
	font-size: 0.9rem;
}

.swc-loyalty-form .swc-check input {
	width: 20px;
	height: 20px;
	margin-top: 2px;
}

.swc-loyalty-form button {
	min-height: var(--swc-tap);
	padding: 0 1.8em;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.swc-loyalty-form button:hover {
	background: var(--wp--preset--color--accent-1);
}

.swc-loyalty-form .swc-hp {
	position: absolute;
	left: -9999px;
}

.swc-loyalty-message {
	padding: 12px 16px;
	border-radius: 10px;
	background: var(--wp--preset--color--base);
	border-left: 4px solid var(--wp--preset--color--accent-3);
}

.swc-loyalty-message.is-error {
	border-left-color: var(--wp--preset--color--accent-4);
}

/* ---------- Footer ---------- */

/* Stacked columns sit closer on a phone; links are tall enough to tap. */
.swc-footer .wp-block-columns {
	gap: 1.5rem !important;
}

.swc-footer .wp-block-column > * {
	margin-top: 0;
}

.swc-footer a {
	display: inline-block;
	padding: 0.35em 0;
}

.swc-footer .wp-block-social-links a {
	padding: 10px;
}

/* Accepted cards and FDA statement, at the bottom of every page's footer. */
.swc-notices {
	margin-top: 1.25rem;
}

.swc-notices .swc-notices__cards {
	display: block;
	width: 280px;
	max-width: 100%;
	height: auto;
	margin: 0 0 0.75rem;
	border-radius: 4px;
}

.swc-notices__fda {
	margin: 0;
	opacity: 0.85;
}

/* ---------- 600px and up: large phones, small tablets ---------- */

@media (min-width: 600px) {
	.swc-chips {
		flex-wrap: wrap;
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
		overflow: visible;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.swc-chip {
		min-height: 36px;
		font-size: 0.9rem;
	}

	.swc-az__jump {
		flex-wrap: wrap;
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
		overflow: visible;
		border-bottom: 0;
	}

	.swc-az__jump a,
	.swc-az__jump span {
		min-width: 34px;
		height: 34px;
	}

	.swc-az__jump span {
		display: inline-flex;
	}

	.swc-tiles {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 32px 24px;
	}

	.swc-tile {
		display: block;
		min-height: 0;
		padding: 8px;
		border-bottom: 0;
		border-radius: var(--swc-radius);
		background: var(--wp--preset--color--base);
		text-align: center;
		transition: transform 0.15s ease, box-shadow 0.15s ease;
	}

	.swc-tile:hover {
		transform: translateY(-3px);
		box-shadow: 0 10px 28px rgba(43, 33, 27, 0.12);
	}

	.swc-tile__name {
		margin: 8px 0 4px;
		font-size: 0.9rem;
	}

	.swc-tile__price {
		font-size: 0.85rem;
		color: inherit;
	}

	:is(.wc-block-product-template, .products-block-post-template) {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
		gap: 36px 28px !important;
	}

	.wc-block-product:hover,
	.wc-block-grid__product:hover,
	ul.products li.product:hover {
		transform: translateY(-3px);
		box-shadow: 0 10px 28px rgba(43, 33, 27, 0.12);
	}

	.swc-hero .wp-block-buttons {
		flex-direction: row;
		justify-content: center;
	}

	.swc-hero .wp-block-button__link {
		width: auto;
	}

	.swc-loyalty-form .swc-row {
		grid-template-columns: 1fr 1fr;
	}

	.swc-brand-list {
		columns: 3 200px;
		column-gap: var(--wp--preset--spacing--50);
	}

	.swc-map {
		aspect-ratio: 16 / 9;
	}

	/* Shop page: every category is a full-width section, its list flowing into columns. */
	.swc-dir--page .swc-dir__brands {
		columns: 4 150px;
		column-gap: 24px;
	}

	.swc-dir__brands a {
		min-height: 32px;
	}

	.swc-search__form {
		justify-content: center;
	}

	.swc-search__input {
		max-width: 560px;
	}

	/* Desktop dropdown: a wide panel under the header. */
	.swc-header .swc-mega {
		position: fixed;
		left: 50%;
		transform: translateX(-50%);
		z-index: 1000;
		width: min(1200px, calc(100vw - 32px));
		max-height: calc(100vh - 140px);
		overflow-y: auto;
		padding: var(--wp--preset--spacing--40);
		border: 1px solid var(--swc-line);
		border-radius: 0 0 16px 16px;
		background: var(--wp--preset--color--base);
		box-shadow: 0 18px 40px rgba(43, 33, 27, 0.16);
	}

	.is-menu-open .swc-mega {
		position: static !important;
		transform: none !important;
		width: 100% !important;
		max-height: none !important;
		padding: 4px 0 16px !important;
		border: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		background: transparent !important;
	}

	.swc-dir--menu {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}

	.swc-dir--menu .swc-dir__cat.is-wide {
		grid-column: span 2;
	}

	.swc-dir--menu .swc-dir__brands.is-long {
		columns: 3 140px;
	}

	.swc-mega-toggle {
		width: 32px;
		height: 32px;
	}
}

/* ---------- 782px and up: tablets ---------- */

/* ---------- 701px and up: the size & pack table as a real table ---------- */

@media (min-width: 701px) {
	.swc-vt__table {
		display: table;
	}

	.swc-vt__table thead {
		display: table-header-group;
	}

	.swc-vt__table tbody {
		display: table-row-group;
	}

	.swc-vt__group {
		padding: 0;
	}

	.swc-vt__row {
		display: table-row;
		padding: 0;
	}

	.swc-vt__row:not(.is-first) {
		border-top: 0;
	}

	.swc-vt__table td {
		padding: 12px;
	}

	.swc-vt__row:not(.is-first) .swc-vt__size {
		display: table-cell;
	}

	.swc-vt__price,
	.swc-vt__add {
		text-align: left;
	}

	.swc-vt__avail {
		font-size: inherit;
	}

	.swc-vt__table thead th {
		padding: 10px 12px;
		background: var(--wp--preset--color--accent-2);
		font-size: 0.8rem;
		font-weight: 700;
		letter-spacing: 0.06em;
		text-align: left;
		text-transform: uppercase;
	}

	.swc-vt__table thead th:first-child {
		border-radius: 10px 0 0 10px;
	}

	.swc-vt__table thead th:last-child {
		border-radius: 0 10px 10px 0;
	}

	.swc-vt__qty select,
	.swc-vt__button {
		min-height: 38px;
	}
}

@media (min-width: 782px) {
	.swc-footer .wp-block-columns {
		gap: var(--wp--preset--spacing--50) !important;
	}

	.swc-footer a {
		padding: 0.15em 0;
	}

}

/* ---------- 960px and up: desktops ---------- */

@media (min-width: 960px) {
	.swc-dir--page .swc-dir__brands {
		columns: 5 170px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}
