/*
 * WooCommerce — base styles
 *
 * Shared look for the shop: buttons, form fields, panels and totals in the
 * WooCommerce blocks (cart, checkout, product) and the classic My Account page.
 * Page-specific layouts (product page, cart, checkout) build on top of this.
 */

body {
	--wormol-line: rgba(200, 184, 166, 0.15);
	--wormol-line-strong: rgba(200, 184, 166, 0.3);
	--wormol-text-muted: rgba(250, 250, 250, 0.55);
	--wormol-text-faint: rgba(250, 250, 250, 0.4);
	--wormol-fill: rgba(200, 184, 166, 0.1);
	--wormol-fill-hover: rgba(200, 184, 166, 0.2);
	--wormol-header-offset: 6.5rem;
}

body.admin-bar {
	--wormol-header-offset: calc(6.5rem + var(--wp-admin--admin-bar--height, 0px));
}

/* ---- Layout ---- */

/* The site header is fixed, so shop pages need room above their content. */
body:is(.woocommerce, .woocommerce-page) main.wp-block-group {
	margin-top: 0;
	padding-top: var(--wormol-header-offset);
}

/* Keep sticky order summaries clear of the fixed header. */
.wc-block-components-sidebar-layout .wc-block-components-sidebar.is-sticky {
	top: var(--wormol-header-offset);
}

body:is(.woocommerce, .woocommerce-page) main.wp-block-group h1 {
	font-weight: 300;
	letter-spacing: 0.02em;
	line-height: 1.1;
	font-size: clamp(1.75rem, 4.2vw, 3.25rem);
}

/* ---- Text and prices ---- */

.wc-block-components-product-metadata,
.wc-block-components-totals-item__description,
.wc-block-components-checkout-step__description,
.wc-block-components-address-card,
.wc-block-cart-item__prices,
.wc-block-components-product-details {
	color: var(--wormol-text-muted);
}

.wc-block-components-product-price,
.wc-block-components-totals-item__value,
.wc-block-formatted-money-amount,
.woocommerce-Price-amount {
	font-weight: 300;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-weight: 300;
	letter-spacing: 0.02em;
}

.wc-block-components-title.wc-block-components-title,
.wc-block-components-checkout-step__title,
.wc-block-cart__totals-title {
	font-weight: 300;
	letter-spacing: 0.04em;
}

/* Small uppercase labels, same voice as the eyebrows on the rest of the site. */
.wc-block-cart__totals-title,
.wc-block-cart-items__header,
.wc-block-components-checkout-step__title {
	font-size: 0.75rem !important;
	font-weight: 400 !important;
	letter-spacing: 0.3em !important;
	text-transform: uppercase;
	color: rgba(200, 184, 166, 0.8);
}

/* ---- Buttons ---- */

.wc-block-components-button:not(.is-link),
.wp-block-woocommerce-add-to-cart-form .single_add_to_cart_button,
.woocommerce :is(a.button, button.button, input.button),
.woocommerce-page :is(a.button, button.button, input.button) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 1rem 2rem;
	border: 1px solid var(--wp--preset--color--champagne) !important;
	border-radius: 0 !important;
	background: var(--wormol-fill) !important;
	color: var(--wp--preset--color--champagne) !important;
	font-family: inherit;
	font-size: 0.6875rem;
	font-weight: 400;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
	box-shadow: none !important;
	transition: background-color 0.5s ease, border-color 0.5s ease;
}

.wc-block-components-button:not(.is-link):hover,
.wp-block-woocommerce-add-to-cart-form .single_add_to_cart_button:hover,
.woocommerce :is(a.button, button.button, input.button):hover,
.woocommerce-page :is(a.button, button.button, input.button):hover {
	background: var(--wormol-fill-hover) !important;
}

.wc-block-components-button:not(.is-link):focus-visible,
.wp-block-woocommerce-add-to-cart-form .single_add_to_cart_button:focus-visible,
.woocommerce :is(a.button, button.button, input.button):focus-visible,
.woocommerce-page :is(a.button, button.button, input.button):focus-visible {
	outline: none;
	box-shadow: 0 0 0 1px var(--wp--preset--color--lumina) !important;
}

.wc-block-components-button:disabled,
.wc-block-components-button[aria-disabled="true"] {
	opacity: 0.5;
}

/* Secondary buttons, e.g. "Apply" next to the coupon field. */
.wc-block-components-totals-coupon__button.wc-block-components-button:not(.is-link) {
	background: transparent !important;
	border-color: var(--wormol-line-strong) !important;
}

.wc-block-components-totals-coupon__button.wc-block-components-button:not(.is-link):hover {
	border-color: var(--wp--preset--color--champagne) !important;
}

.wc-block-components-button.is-link,
.wc-block-cart-item__remove-link {
	color: var(--wormol-text-faint) !important;
	transition: color 0.4s ease;
}

.wc-block-components-button.is-link:hover,
.wc-block-cart-item__remove-link:hover {
	color: var(--wp--preset--color--champagne) !important;
}

/* ---- Form fields ---- */

.wc-block-components-text-input input,
.wc-block-components-textarea,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-combobox .components-combobox-control input,
.woocommerce form .form-row :is(input.input-text, textarea, select) {
	background: transparent !important;
	border: 0 !important;
	border-bottom: 1px solid var(--wormol-line-strong) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--wp--preset--color--foreground) !important;
	font-weight: 300;
	transition: border-color 0.4s ease;
}

.wc-block-components-text-input input:focus,
.wc-block-components-textarea:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus,
.wc-block-components-combobox .components-combobox-control input:focus,
.woocommerce form .form-row :is(input.input-text, textarea, select):focus {
	border-bottom-color: var(--wp--preset--color--lumina) !important;
	outline: none !important;
}

/* The select draws its own box in a wrapper element. */
.wc-blocks-components-select .wc-blocks-components-select__container {
	background: transparent !important;
	border-radius: 0;
}

.wc-blocks-components-select .wc-blocks-components-select__select option {
	background: var(--wp--preset--color--night);
	color: var(--wp--preset--color--foreground);
}

.wc-blocks-components-select .wc-blocks-components-select__expand {
	fill: var(--wp--preset--color--champagne);
}

.wc-block-components-text-input label,
.wc-blocks-components-select .wc-blocks-components-select__label,
.wc-block-components-combobox .components-form-token-field__label,
.woocommerce form .form-row label {
	color: var(--wormol-text-faint) !important;
	font-weight: 300;
}

.wc-block-components-text-input.has-error input,
.wc-blocks-components-select.has-error .wc-blocks-components-select__select {
	border-bottom-color: var(--wp--preset--color--champagne) !important;
}

.wc-block-components-validation-error,
.wc-block-components-text-input.has-error label {
	color: var(--wp--preset--color--champagne) !important;
}

/* Checkboxes and radios */
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"],
.wc-block-components-radio-control .wc-block-components-radio-control__input {
	background: transparent;
	border: 1px solid var(--wormol-line-strong);
	box-shadow: none;
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
	background: var(--wormol-fill);
	border-color: var(--wp--preset--color--champagne);
}

.wc-block-components-checkbox .wc-block-components-checkbox__mark {
	fill: var(--wp--preset--color--champagne);
}

.wc-block-components-radio-control .wc-block-components-radio-control__input:checked {
	border-color: var(--wp--preset--color--lumina);
}

.wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before {
	background: var(--wp--preset--color--lumina);
}

:is(.wc-block-components-checkbox__input, .wc-block-components-radio-control__input):focus-visible {
	outline: 1px solid var(--wp--preset--color--lumina) !important;
	outline-offset: 2px;
}

/* ---- Panels and boxes ---- */

.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-components-radio-control--highlight-checked,
.wc-block-components-radio-control-accordion-option,
.wc-block-checkout__shipping-method-option,
.wc-block-components-address-card {
	border-color: var(--wormol-line) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option-checked,
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control__option--checked-option-highlighted {
	border-radius: 0 !important;
	box-shadow: inset 0 0 0 1px rgba(53, 229, 246, 0.6) !important;
}

.wc-block-components-totals-wrapper,
.wc-block-components-panel,
.wc-block-cart-items,
.wc-block-cart-items .wc-block-cart-items__row,
.wc-block-components-order-summary-item,
.wc-block-components-totals-footer-item,
.wc-block-components-checkout-order-summary__title {
	border-color: var(--wormol-line) !important;
}

.wc-block-components-order-summary-item__image > img,
.wc-block-cart-item__image img {
	border-radius: 0;
}

.wc-block-components-order-summary-item__quantity {
	background: var(--wp--preset--color--night) !important;
	border-color: var(--wp--preset--color--champagne) !important;
	color: var(--wp--preset--color--champagne) !important;
	box-shadow: none !important;
}

/* ---- Quantity ---- */

.wc-block-components-quantity-selector,
.wp-block-woocommerce-add-to-cart-form .quantity .qty {
	border: 1px solid var(--wormol-line-strong) !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--wp--preset--color--foreground) !important;
}

.wc-block-components-quantity-selector::after {
	display: none;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__input {
	color: var(--wp--preset--color--foreground);
	font-weight: 300;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	color: var(--wormol-text-muted);
	transition: color 0.4s ease;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover {
	color: var(--wp--preset--color--champagne);
}

/* ---- Notices ---- */

.wc-block-components-notice-banner,
.woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
	background: rgba(4, 5, 6, 0.6) !important;
	border: 1px solid var(--wormol-line-strong) !important;
	border-radius: 0 !important;
	color: var(--wp--preset--color--foreground) !important;
	font-weight: 300;
}

.wc-block-components-notice-banner > svg {
	background: transparent !important;
	fill: var(--wp--preset--color--champagne) !important;
}

.wc-block-components-notice-banner.is-error {
	border-color: rgba(200, 184, 166, 0.6) !important;
}

/* Links in notices, e.g. "Continue shopping": a text link, not a boxed button. */
body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 0;
	border: 0 !important;
	background: transparent !important;
	color: var(--wp--preset--color--champagne) !important;
	font-size: 0.6875rem;
	letter-spacing: 0.3em;
	text-decoration: none;
	opacity: 1;
}

body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward::before {
	content: "";
	width: 1.5rem;
	height: 1px;
	background: rgba(200, 184, 166, 0.5);
	transition: width 0.5s ease, background-color 0.5s ease;
}

body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward:hover::before {
	width: 2.5rem;
	background: var(--wp--preset--color--lumina);
}

/* ---- Subscriptions ---- */

.wc-block-components-totals-wrapper.wc-block-components-totals-wrapper--subscription,
.wcs-recurring-totals-panel {
	border-color: var(--wormol-line) !important;
}

.wcs-recurring-totals-panel__title .wc-block-components-totals-item__label {
	font-weight: 300;
}

/* ---- Classic My Account ---- */

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	padding: 0;
	border-bottom: 1px solid var(--wormol-line);
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.875rem 0;
	color: var(--wormol-text-muted);
	text-decoration: none;
	transition: color 0.4s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation :is(a:hover, .is-active a) {
	color: var(--wp--preset--color--champagne);
}

.woocommerce table.shop_table,
.woocommerce table.shop_table :is(th, td) {
	border-color: var(--wormol-line) !important;
	border-radius: 0;
}

/* ---- Product page ---- */

.wormol-product__hero {
	align-items: flex-start;
}

@media (min-width: 782px) {
	/* The gallery stays in view while the buy box scrolls. */
	.wormol-product__gallery {
		position: sticky;
		top: var(--wormol-header-offset);
	}
}

/* Gallery: cross-fading images, fine-line arrows, dots and a thumbnail row. */
.wormol-product__gallery .wc-block-product-gallery-large-image {
	border: 1px solid rgba(200, 184, 166, 0.1);
}

.wormol-gallery-ready .wc-block-product-gallery-large-image__container {
	display: grid;
}

.wormol-gallery-ready .wc-block-product-gallery-large-image__wrapper {
	grid-area: 1 / 1;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.7s ease, visibility 0.7s ease;
}

.wormol-gallery-ready .wc-block-product-gallery-large-image__wrapper.is-current {
	opacity: 1;
	visibility: visible;
}

.wormol-gallery__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgba(200, 184, 166, 0.35);
	cursor: pointer;
	transform: translateY(-50%);
	transition: color 0.3s ease;
}

.wormol-gallery__arrow svg {
	width: 1.75rem;
	height: 1.75rem;
}

.wormol-gallery__arrow--prev {
	left: 0.25rem;
}

.wormol-gallery__arrow--next {
	right: 0.25rem;
}

.wormol-gallery__arrow:hover,
.wormol-gallery__arrow:focus-visible {
	color: var(--wp--preset--color--champagne);
}

.wormol-gallery__dots {
	position: absolute;
	right: 0;
	bottom: 0.75rem;
	left: 0;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}

.wormol-gallery__dot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.wormol-gallery__dot span {
	display: block;
	width: 0.375rem;
	height: 0.375rem;
	border: 1px solid rgba(200, 184, 166, 0.45);
	border-radius: 999px;
	background: rgba(4, 5, 6, 0.7);
	transition: width 0.3s ease-out, background-color 0.3s ease-out;
}

.wormol-gallery__dot[aria-current="true"] span {
	width: 1.5rem;
	border-color: transparent;
	background: rgba(200, 184, 166, 0.6);
}

:is(.wormol-gallery__arrow, .wormol-gallery__dot):focus-visible {
	outline: 1px solid rgba(200, 184, 166, 0.6);
	outline-offset: -1px;
}

.wormol-product__gallery .wc-block-product-gallery-thumbnails {
	margin-top: 0.75rem;
}

.wormol-product__gallery .wc-block-product-gallery-thumbnails__thumbnail__image {
	border: 1px solid rgba(200, 184, 166, 0.15);
	border-radius: 0;
	opacity: 0.45;
	transition: opacity 0.3s ease;
}

.wormol-product__gallery .wc-block-product-gallery-thumbnails__thumbnail__image:hover {
	opacity: 0.75;
}

.wormol-product__gallery .wc-block-product-gallery-thumbnails__thumbnail__image--is-active {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.wormol-gallery-ready .wc-block-product-gallery-large-image__wrapper,
	.wormol-gallery__dot span {
		transition: none;
	}
}

.wormol-product__buy .wp-block-post-title {
	margin-top: 1rem;
}

.wormol-product__summary {
	margin-top: 0.75rem;
}

.wormol-product__summary p {
	max-width: 28rem;
	margin: 1rem 0 0;
	font-size: clamp(1rem, 1.35vw, 1.1875rem);
	font-weight: 300;
	line-height: 1.7;
	color: rgba(250, 250, 250, 0.72);
}

/* The first paragraph of the short description is the tagline. */
.wormol-product__summary p:first-child {
	margin-top: 0;
	font-size: 1.125rem;
	letter-spacing: 0.025em;
	line-height: 1.55;
	color: rgba(250, 250, 250, 0.8);
}

/* Body copy is Inter Tight; Jost stays for headings, names, prices and labels. */
.wormol-product__summary p:not(:first-child),
.wormol-plan__cadence,
.wormol-plan__note,
.wormol-plan__per-box,
.wormol-product__reassurance,
.wormol-product__tax-note,
.wormol-product__description :is(li, p),
.wormol-faq__answer {
	font-family: var(--wp--preset--font-family--inter-tight);
}

/* Buy box: the form lays out the plan picker, quantity and button. */
.wp-block-woocommerce-add-to-cart-form form.cart.wormol-buybox-ready {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem 1.5rem;
	margin: 0 !important;
}

/* WooCommerce adds clearfix pseudo-elements, which become empty flex items. */
.wp-block-woocommerce-add-to-cart-form form.cart.wormol-buybox-ready::before,
.wp-block-woocommerce-add-to-cart-form form.cart.wormol-buybox-ready::after {
	display: none;
}

.wormol-buybox-ready .wcsatt-options-wrapper {
	display: none;
}

.wormol-buybox {
	flex: 1 1 100%;
}

.wormol-buybox__modes {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border: 1px solid rgba(200, 184, 166, 0.2);
}

.wormol-buybox__modes [role="tab"] {
	min-height: 2.75rem;
	padding: 0.75rem 1rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: rgba(250, 250, 250, 0.5);
	font-family: inherit;
	font-size: 0.6875rem;
	font-weight: 400;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.5s ease, background-color 0.5s ease;
}

@media (max-width: 480px) {
	.wormol-buybox__modes [role="tab"] {
		padding: 0.75rem 0.5rem;
		letter-spacing: 0.2em;
	}
}

.wormol-buybox__modes [role="tab"]:hover {
	color: rgba(250, 250, 250, 0.8);
}

.wormol-buybox__modes [role="tab"][aria-selected="true"] {
	background: var(--wormol-fill);
	color: var(--wp--preset--color--champagne);
}

.wormol-buybox__plans {
	display: grid;
	gap: 0.5rem;
	margin-top: 1rem;
}

.wormol-plan {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	width: 100%;
	padding: 0.875rem 1.25rem;
	border: 1px solid rgba(200, 184, 166, 0.2);
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--foreground);
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.5s ease, background-color 0.5s ease;
}

.wormol-plan:hover {
	border-color: rgba(200, 184, 166, 0.45);
}

.wormol-plan[aria-checked="true"] {
	border-color: rgba(53, 229, 246, 0.6);
	background: rgba(200, 184, 166, 0.06);
}

:is(.wormol-plan, .wormol-buybox__modes [role="tab"], .wormol-quantity__button):focus-visible {
	outline: 1px solid var(--wp--preset--color--lumina);
	outline-offset: -1px;
}

.wormol-plan__info,
.wormol-plan__pricing {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.wormol-plan__pricing {
	flex-shrink: 0;
	align-items: flex-end;
	text-align: right;
}

.wormol-plan__name {
	font-size: 1rem;
	font-weight: 300;
	letter-spacing: 0.02em;
}

.wormol-plan__badge {
	display: inline-block;
	margin-left: 0.75rem;
	padding: 0.125rem 0.5rem;
	border: 1px solid rgba(53, 229, 246, 0.4);
	color: var(--wp--preset--color--lumina);
	font-size: 0.6rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	vertical-align: middle;
}

.wormol-plan__cadence,
.wormol-plan__note {
	font-size: 0.875rem;
	font-weight: 300;
	line-height: 1.4;
	color: rgba(250, 250, 250, 0.5);
}

.wormol-plan__note {
	color: var(--wormol-text-faint);
}

.wormol-plan__price {
	font-size: 1.25rem;
	font-weight: 300;
}

.wormol-plan__per-box {
	font-size: 0.75rem;
	font-weight: 300;
	color: rgba(250, 250, 250, 0.45);
}

.wormol-plan__savings {
	font-size: 0.6rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--lumina);
}

/* Quantity stepper */
.wormol-quantity__label {
	font-size: 0.6875rem;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: rgba(200, 184, 166, 0.78);
}

.wp-block-woocommerce-add-to-cart-form form.cart .quantity.wormol-quantity {
	display: inline-flex;
	align-items: center;
	margin: 0;
	border: 1px solid rgba(200, 184, 166, 0.25);
}

.wormol-quantity__button {
	min-width: 3rem;
	min-height: 3rem;
	border: 0;
	background: transparent;
	color: rgba(250, 250, 250, 0.6);
	font-family: inherit;
	font-size: 1rem;
	cursor: pointer;
	transition: color 0.4s ease;
}

.wormol-quantity__button:hover {
	color: var(--wp--preset--color--champagne);
}

.wp-block-woocommerce-add-to-cart-form .wormol-quantity .qty {
	width: 2.5rem;
	padding: 0;
	border: 0 !important;
	background: transparent;
	color: var(--wp--preset--color--foreground);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 300;
	text-align: center;
	-moz-appearance: textfield;
}

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

.wp-block-woocommerce-add-to-cart-form form.cart.wormol-buybox-ready .single_add_to_cart_button {
	flex: 1 1 100%;
	margin: 0;
}

.wormol-product__reassurance {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin-bottom: 0;
	padding: 0;
	list-style: none;
	font-size: 0.75rem;
	font-weight: 300;
	color: rgba(250, 250, 250, 0.45);
}

.wormol-product__tax-note {
	font-size: 0.75rem;
	font-weight: 300;
	line-height: 1.6;
	color: var(--wormol-text-faint);
}

/* Sections below the fold */
.wormol-product__section {
	margin-top: clamp(5rem, 10vw, 9rem) !important;
	padding-top: 4rem;
	border-top: 1px solid rgba(200, 184, 166, 0.18);
}

.wormol-product__section > .wp-block-column:last-child {
	margin-left: auto;
}

.wormol-product__description ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wormol-product__description li {
	display: flex;
	gap: 1.25rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid rgba(200, 184, 166, 0.1);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 300;
	line-height: 1.7;
	color: rgba(250, 250, 250, 0.72);
}

.wormol-product__description li::before {
	content: "";
	flex-shrink: 0;
	width: 2rem;
	height: 1px;
	margin-top: 0.85em;
	background: rgba(200, 184, 166, 0.5);
}

.wormol-product__description p {
	font-size: 0.75rem;
	font-weight: 300;
	color: rgba(250, 250, 250, 0.35);
}

.wormol-faq__question {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 300;
	letter-spacing: 0.02em;
}

.wormol-faq__answer {
	max-width: 36rem;
	font-size: var(--wp--preset--font-size--medium);
	margin: 0.75rem 0 2.5rem;
	font-weight: 300;
	line-height: 1.7;
	color: var(--wormol-text-muted);
}

.wormol-product {
	padding-bottom: clamp(5rem, 10vw, 9rem);
}

/* Mobile buy bar, shown once the main button has scrolled away. */
.wormol-buybar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	padding: 0.75rem 1.5rem max(0.75rem, env(safe-area-inset-bottom));
	border-top: 1px solid rgba(200, 184, 166, 0.25);
	background: rgba(4, 5, 6, 0.92);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	opacity: 0;
	transform: translateY(1rem);
	pointer-events: none;
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.wormol-buybar.is-visible {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.wormol-buybar__summary {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.wormol-buybar__price {
	font-size: 0.875rem;
	font-weight: 300;
	letter-spacing: 0.02em;
}

.wormol-buybar__plan {
	overflow: hidden;
	font-size: 0.75rem;
	font-weight: 300;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: rgba(250, 250, 250, 0.45);
}

.wormol-buybar__button {
	min-height: 3rem;
	padding: 0.75rem 1.5rem;
	border: 1px solid var(--wp--preset--color--champagne);
	background: var(--wormol-fill);
	color: var(--wp--preset--color--champagne);
	font-family: inherit;
	font-size: 0.6875rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	cursor: pointer;
}

@media (min-width: 782px) {
	.wormol-buybar {
		display: none;
	}
}

@media (max-width: 781px) {
	/* Leave room for the buy bar at the end of the page. */
	body.single-product {
		padding-bottom: 5rem;
	}
}

/* ---- Cart and checkout pages ---- */

.wormol-page-intro {
	margin-bottom: 2.25rem;
}

.wormol-page-intro .wormol-eyebrow {
	margin-top: 1.25rem;
}

.wormol-page-intro h1 {
	margin-top: 1rem;
}

.wormol-back-link {
	margin: 0;
}

.wormol-back-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: rgba(250, 250, 250, 0.45);
	font-size: 0.65rem;
	letter-spacing: 0.24em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.4s ease;
}

.wormol-back-link a::before {
	content: "";
	width: 1.5rem;
	height: 1px;
	background: rgba(200, 184, 166, 0.5);
}

.wormol-back-link a:hover {
	color: var(--wp--preset--color--champagne);
}

/* Product lines: name without underline; the short description is left out. */
.wc-block-components-product-name {
	color: var(--wp--preset--color--foreground) !important;
	font-size: 1.125rem;
	font-weight: 300;
	letter-spacing: 0.02em;
	text-decoration: none !important;
}

a.wc-block-components-product-name:hover {
	color: var(--wp--preset--color--champagne) !important;
}

.wc-block-components-product-metadata__description {
	display: none;
}

/* Cart summary in a framed panel, kept in view on wide screens. */
.wc-block-cart .wc-block-cart__sidebar {
	padding: 1.5rem 1.75rem;
	border: 1px solid var(--wormol-line);
}

@media (min-width: 782px) {
	.wc-block-cart .wc-block-cart__sidebar {
		position: sticky;
		top: var(--wormol-header-offset);
		align-self: flex-start;
	}
}

/* Coupon form: the toggle reads as a label, and the form starts open (see js/cart.js). */
.wc-block-components-totals-coupon .wc-block-components-panel__button {
	color: rgba(200, 184, 166, 0.7);
	font-size: 0.65rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}

.wc-block-components-totals-coupon .wc-block-components-panel__button svg {
	fill: currentColor;
}

/* Applied coupon codes */
.wc-block-components-chip {
	border: 1px solid rgba(53, 229, 246, 0.4) !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--wp--preset--color--lumina) !important;
	font-size: 0.65rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.wc-block-components-chip .wc-block-components-chip__remove {
	background: transparent !important;
}

.wc-block-components-chip .wc-block-components-chip__remove-icon {
	fill: var(--wp--preset--color--lumina) !important;
}

/* The cart already has "Continue shopping" above its heading. */
.woocommerce-cart .wc-block-components-notice-banner .wc-forward {
	display: none;
}

/* "+ Add apartment, suite, etc." */
.wc-block-components-address-form__address_2-toggle {
	color: var(--wormol-text-muted) !important;
	text-decoration: none !important;
	transition: color 0.4s ease;
}

.wc-block-components-address-form__address_2-toggle:hover {
	color: var(--wp--preset--color--champagne) !important;
}

/* ---- My Account ---- */

@media (min-width: 782px) {
	.woocommerce-account.logged-in .wormol-account .woocommerce {
		display: grid;
		grid-template-columns: 13rem minmax(0, 1fr);
		gap: 4rem;
		align-items: start;
	}

	/* WooCommerce clearfix pseudo-elements would take up grid cells. */
	.woocommerce-account.logged-in .wormol-account .woocommerce::before,
	.woocommerce-account.logged-in .wormol-account .woocommerce::after {
		display: none;
	}
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
}

@media (max-width: 781px) {
	.woocommerce-account .woocommerce-MyAccount-navigation {
		margin-bottom: 2.5rem;
	}
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.875rem 0;
	font-size: 0.9375rem;
	font-weight: 300;
	letter-spacing: 0.02em;
	text-decoration: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a::before {
	content: "";
	width: 1.25rem;
	height: 1px;
	background: var(--wp--preset--color--lumina);
}

.woocommerce-MyAccount-content {
	font-family: var(--wp--preset--font-family--inter-tight);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 300;
	line-height: 1.7;
	color: rgba(250, 250, 250, 0.72);
}

.woocommerce-MyAccount-content > :first-child {
	margin-top: 0;
}

.woocommerce-MyAccount-content a:not(.button) {
	color: var(--wp--preset--color--champagne);
	text-underline-offset: 0.25em;
	text-decoration-color: rgba(200, 184, 166, 0.4);
}

.woocommerce-MyAccount-content a:not(.button):hover {
	text-decoration-color: var(--wp--preset--color--champagne);
}

.woocommerce-MyAccount-content strong {
	font-weight: 400;
	color: var(--wp--preset--color--foreground);
}

.woocommerce-MyAccount-content :is(h2, h3) {
	margin: 2.5rem 0 1rem;
	font-family: var(--wp--preset--font-family--jost);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: rgba(200, 184, 166, 0.8);
}

/* Forms: labels like the site's other forms, underline-only fields. */
.woocommerce-account form .form-row label {
	margin-bottom: 0.25rem;
	font-family: var(--wp--preset--font-family--jost);
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(200, 184, 166, 0.7) !important;
}

.woocommerce-account form .form-row .required {
	color: inherit;
	text-decoration: none;
}

.woocommerce-account form .form-row :is(input.input-text, textarea, select) {
	padding: 0.75rem 0;
	font-family: var(--wp--preset--font-family--inter-tight);
	font-size: 1rem;
}

.woocommerce-account form .form-row :is(input.input-text, textarea, select)::placeholder {
	color: var(--wormol-text-faint);
}

.woocommerce-account form .form-row span em,
.woocommerce-account form .form-row .description {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.8125rem;
	font-style: normal;
	color: var(--wormol-text-faint);
}

.woocommerce-account form fieldset {
	margin: 2.5rem 0 0;
	padding: 0;
	border: 0;
}

.woocommerce-account form legend {
	margin-bottom: 0.5rem;
	padding: 0;
	font-family: var(--wp--preset--font-family--jost);
	font-size: 0.75rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: rgba(200, 184, 166, 0.8);
}

/* WooCommerce draws the eye icon dark; invert it for the dark background. */
.woocommerce-account .show-password-input {
	background-color: transparent;
	filter: invert(1);
	opacity: 0.6;
}

.woocommerce-account .woocommerce-MyAccount-content form .button {
	margin-top: 1.5rem;
}

/* Country and state pickers (selectWoo) */
.woocommerce-account .select2-container--default .select2-selection--single {
	height: auto;
	padding: 0.5rem 0;
	border: 0;
	border-bottom: 1px solid var(--wormol-line-strong);
	border-radius: 0;
	background: transparent;
}

.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__rendered {
	padding-left: 0 !important;
	color: var(--wp--preset--color--foreground);
	font-family: var(--wp--preset--font-family--inter-tight);
	font-weight: 300;
	line-height: 1.6;
}

.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100%;
}

.select2-dropdown {
	border-color: var(--wormol-line-strong);
	border-radius: 0;
	background: var(--wp--preset--color--night);
	color: var(--wp--preset--color--foreground);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
	border-color: var(--wormol-line-strong);
	background: transparent;
	color: var(--wp--preset--color--foreground);
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
	background: var(--wormol-fill-hover);
	color: var(--wp--preset--color--foreground);
}

/* Addresses: one framed card per address, the edit link at the bottom */
.woocommerce-edit-address .woocommerce-MyAccount-content > p:first-of-type {
	font-size: 0.9375rem;
	color: var(--wormol-text-muted);
}

.woocommerce-account .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}

.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after {
	display: none;
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
	display: flex;
	flex-direction: column;
	float: none;
	width: auto;
	padding: 1.75rem 2rem;
	border: 1px solid var(--wormol-line);
}

/* Let the title and link take part in the card's own ordering. */
.woocommerce-account .woocommerce-Address-title {
	display: contents;
}

.woocommerce-account .woocommerce-Address-title h2 {
	order: 1;
	margin: 0;
}

.woocommerce-account .woocommerce-Address address {
	order: 2;
	flex-grow: 1;
	margin: 1.25rem 0 1.5rem;
	color: var(--wp--preset--color--foreground);
	font-style: normal;
	line-height: 1.7;
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address-title .edit {
	order: 3;
	display: inline-flex;
	float: none;
	align-items: center;
	gap: 0.75rem;
	align-self: flex-start;
	color: var(--wp--preset--color--champagne);
	font-family: var(--wp--preset--font-family--jost);
	font-size: 0.65rem;
	letter-spacing: 0.24em;
	text-decoration: none;
	text-transform: uppercase;
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address-title .edit::before {
	content: "";
	width: 1.5rem;
	height: 1px;
	background: rgba(200, 184, 166, 0.5);
	transition: width 0.5s ease, background-color 0.5s ease;
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address-title .edit:hover::before {
	width: 2.5rem;
	background: var(--wp--preset--color--lumina);
}

/* Tables: orders, subscriptions, payment methods */
:is(.woocommerce-account, .woocommerce-order-received) table.shop_table {
	border: 0 !important;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

:is(.woocommerce-account, .woocommerce-order-received) table.shop_table th {
	padding: 0 0 0.75rem;
	border-bottom: 1px solid var(--wormol-line) !important;
	font-family: var(--wp--preset--font-family--jost);
	font-size: 0.65rem;
	font-weight: 400;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: rgba(200, 184, 166, 0.7);
}

:is(.woocommerce-account, .woocommerce-order-received) table.shop_table td {
	padding: 1rem 1rem 1rem 0;
	border-top: 0 !important;
	border-bottom: 1px solid var(--wormol-line) !important;
	vertical-align: middle;
}

:is(.woocommerce-account, .woocommerce-order-received) table.shop_table td .button {
	display: inline-flex;
	align-items: center;
	min-height: 2.25rem;
	padding: 0.5rem 1rem;
	background: transparent !important;
	border-color: var(--wormol-line-strong) !important;
	font-size: 0.6rem;
}

:is(.woocommerce-account, .woocommerce-order-received) table.shop_table td .button:hover {
	border-color: var(--wp--preset--color--champagne) !important;
}

:is(.woocommerce-account, .woocommerce-order-received) table.shop_table td .button + .button {
	margin-left: 0.5rem;
}

/* ---- Order confirmation ---- */

.wormol-order-confirmation {
	font-family: var(--wp--preset--font-family--inter-tight);
	font-weight: 300;
	color: rgba(250, 250, 250, 0.72);
}

.wormol-order-confirmation .wc-block-order-confirmation-status {
	margin-top: 1rem;
}

.wormol-order-confirmation .wc-block-order-confirmation-status h1 {
	margin: 0;
	font-family: var(--wp--preset--font-family--jost);
}

.wormol-order-confirmation .wc-block-order-confirmation-status p {
	max-width: 36rem;
	margin-top: 1.5rem;
	font-size: clamp(1rem, 1.35vw, 1.1875rem);
	line-height: 1.7;
}

.wormol-order-confirmation .wc-block-order-confirmation-status strong {
	font-weight: 400;
	color: var(--wp--preset--color--foreground);
}

/* Section headings as small labels */
.wormol-order-confirmation .wormol-section-label,
.wormol-order-confirmation .wc-block-order-confirmation-totals header h2 {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--jost);
	font-size: 0.75rem !important;
	font-weight: 400;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: rgba(200, 184, 166, 0.8);
}

/* Order number, date, total, email and payment as a framed row */
.wormol-order-confirmation .wc-block-order-confirmation-summary {
	margin-top: 3rem;
}

.wormol-order-confirmation .wc-block-order-confirmation-summary-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: 1.5rem 2rem;
	margin: 0;
	padding: 1.75rem 2rem;
	border: 1px solid var(--wormol-line);
	list-style: none;
}

.wormol-order-confirmation .wc-block-order-confirmation-summary-list-item {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	border: 0;
}

.wormol-order-confirmation .wc-block-order-confirmation-summary-list-item__key {
	font-family: var(--wp--preset--font-family--jost);
	font-size: 0.65rem;
	font-weight: 400;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: rgba(200, 184, 166, 0.7);
}

.wormol-order-confirmation .wc-block-order-confirmation-summary-list-item__value {
	overflow-wrap: anywhere;
	font-size: 1rem;
	color: var(--wp--preset--color--foreground);
}

/* Order details */
.wormol-order-confirmation .wc-block-order-confirmation-totals-wrapper {
	margin-top: 3.5rem;
}

.wormol-order-confirmation .wc-block-order-confirmation-totals__table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
}

.wormol-order-confirmation .wc-block-order-confirmation-totals__table :is(th, td) {
	padding: 1rem 0;
	border: 0;
	border-bottom: 1px solid var(--wormol-line);
	font-family: var(--wp--preset--font-family--inter-tight);
	font-size: 0.9375rem;
	font-weight: 300;
	text-align: left;
}

.wormol-order-confirmation .wc-block-order-confirmation-totals__table :is(th, td):last-child {
	text-align: right;
}

.wormol-order-confirmation .wc-block-order-confirmation-totals__table thead th {
	padding-top: 0;
	font-family: var(--wp--preset--font-family--jost);
	font-size: 0.65rem;
	font-weight: 400;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: rgba(200, 184, 166, 0.7);
}

.wormol-order-confirmation .wc-block-order-confirmation-totals__product a {
	color: var(--wp--preset--color--foreground);
	font-family: var(--wp--preset--font-family--jost);
	font-size: 1.125rem;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.wormol-order-confirmation .wc-block-order-confirmation-totals__product .product-quantity {
	font-weight: 300;
	color: var(--wormol-text-muted);
}

.wormol-order-confirmation .wc-block-order-confirmation-totals__table tfoot tr:last-child :is(th, td) {
	font-family: var(--wp--preset--font-family--jost);
	font-size: 1.125rem;
	color: var(--wp--preset--color--foreground);
}

.wormol-order-confirmation .wc-block-order-confirmation-totals__table tfoot small {
	font-size: 0.75rem;
	color: var(--wormol-text-faint);
}

/* Related subscriptions (added by WooCommerce Subscriptions) */
.wormol-order-confirmation .wc-block-order-confirmation-totals header {
	margin-top: 3.5rem;
}

.wormol-order-confirmation .my_account_orders .subscription-id a {
	color: var(--wp--preset--color--champagne);
	text-decoration: none;
}

/* Addresses: plain text, no boxes */
.wormol-order-confirmation :is(.wc-block-order-confirmation-shipping-address, .wc-block-order-confirmation-billing-address) {
	padding: 0;
	border: 0;
}

.wormol-order-confirmation .wc-block-order-confirmation-address-wrapper {
	gap: 2.5rem;
	margin-top: 3.5rem;
}

.wormol-order-confirmation .wc-block-order-confirmation-address-wrapper address {
	padding: 0;
	border: 0;
	font-style: normal;
	line-height: 1.7;
}

.wormol-order-confirmation .wc-block-order-confirmation-additional-information {
	margin-top: 3rem;
	font-size: 0.875rem;
	color: var(--wormol-text-muted);
}

.wormol-order-confirmation .wc-block-order-confirmation-additional-information a {
	color: var(--wp--preset--color--champagne);
	text-underline-offset: 0.25em;
}

/* Actions */
.wormol-order-confirmation__actions {
	gap: 1rem;
	margin-top: 2.5rem;
}

.wormol-order-confirmation__actions .wp-block-button__link {
	padding: 1rem 2rem;
	border: 1px solid var(--wp--preset--color--champagne);
	border-radius: 0;
	background: var(--wormol-fill);
	color: var(--wp--preset--color--champagne);
	font-size: 0.6875rem;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	transition: background-color 0.5s ease, border-color 0.5s ease;
}

.wormol-order-confirmation__actions .wp-block-button__link:hover {
	background: var(--wormol-fill-hover);
}

.wormol-order-confirmation__actions .is-style-outline .wp-block-button__link {
	border-color: var(--wormol-line-strong);
	background: transparent;
}

.wormol-order-confirmation__actions .is-style-outline .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--champagne);
	background: transparent;
}

/* Subscription and order views in My Account */
.woocommerce-MyAccount-content td a:not(.button) {
	color: var(--wp--preset--color--foreground);
	text-decoration: none;
}

.woocommerce-MyAccount-content td a:not(.button):hover {
	color: var(--wp--preset--color--champagne);
}

/* "Cancel" reads as a quiet text action after the everyday ones. */
.woocommerce-MyAccount-content table td .button.cancel {
	border-color: transparent !important;
	color: var(--wormol-text-faint) !important;
}

.woocommerce-MyAccount-content table td .button.cancel:hover {
	color: var(--wp--preset--color--champagne) !important;
}

.woocommerce-MyAccount-content .subscription_details td .button {
	margin: 0.25rem 0.5rem 0.25rem 0;
}

.woocommerce-MyAccount-content .subscription_details td .button + .button {
	margin-left: 0;
}

/* Billing and shipping address */
.woocommerce-MyAccount-content .woocommerce-customer-details {
	margin-top: 2.5rem;
}

.woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-column__title {
	margin-top: 0;
	font-size: 0.75rem;
}

.woocommerce-MyAccount-content .woocommerce-customer-details address {
	padding: 0;
	border: 0;
	font-style: normal;
	line-height: 1.7;
}

/* Logged-out My Account: login and lost password as a single framed form */
.woocommerce-account:not(.logged-in) .wormol-account .woocommerce {
	max-width: 28rem;
}

.woocommerce-account:not(.logged-in) .wormol-account .woocommerce > h2 {
	margin: 0 0 1rem;
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: rgba(200, 184, 166, 0.8);
}

.woocommerce-account form:is(.woocommerce-form-login, .lost_reset_password) {
	margin: 0;
	padding: 2rem;
	border: 1px solid var(--wormol-line);
	border-radius: 0;
}

.woocommerce-account form.lost_reset_password > p:first-child {
	margin-top: 0;
	font-family: var(--wp--preset--font-family--inter-tight);
	font-size: 0.9375rem;
	font-weight: 300;
	line-height: 1.7;
	color: var(--wormol-text-muted);
}

.woocommerce-account form:is(.woocommerce-form-login, .lost_reset_password) .button {
	width: 100%;
	margin-top: 0.5rem;
}

.woocommerce-account .woocommerce-form-login__rememberme {
	display: flex !important;
	align-items: center;
	gap: 0.75rem;
	margin: 0.5rem 0 1.25rem;
	cursor: pointer;
}

.woocommerce-account .woocommerce-form-login__rememberme input {
	width: 1rem;
	height: 1rem;
	margin: 0;
	accent-color: var(--wp--preset--color--champagne);
}

.woocommerce-account .woocommerce-LostPassword {
	margin: 1.5rem 0 0;
	text-align: center;
}

.woocommerce-account .woocommerce-LostPassword a {
	color: var(--wp--preset--color--champagne);
	font-family: var(--wp--preset--font-family--inter-tight);
	font-size: 0.8125rem;
	font-weight: 300;
	text-decoration: none;
	transition: color 0.4s ease;
}

.woocommerce-account .woocommerce-LostPassword a:hover {
	color: var(--wp--preset--color--foreground);
}

/*
 * Classic payment form: "Add payment method", "Change payment" on a
 * subscription and paying for an order later. WooCommerce draws it light grey,
 * which hides the dark Stripe fields. The :is() with an id matches the
 * weight of WooCommerce's own #add_payment_method #payment selectors.
 */
:is(#add_payment_method, .woocommerce-checkout) #payment {
	border: 1px solid var(--wormol-line);
	border-radius: 0;
	background: transparent;
}

:is(#add_payment_method, .woocommerce-checkout) #payment ul.payment_methods {
	margin: 0;
	padding: 1.75rem 2rem;
	border-bottom: 1px solid var(--wormol-line);
}

:is(#add_payment_method, .woocommerce-checkout) #payment ul.payment_methods li {
	margin: 0;
	padding: 0.75rem 0;
	list-style: none;
	line-height: 1.6;
}

:is(#add_payment_method, .woocommerce-checkout) #payment ul.payment_methods li input[type="radio"] {
	margin: 0 0.75rem 0 0;
	accent-color: var(--wp--preset--color--lumina);
	vertical-align: middle;
}

:is(#add_payment_method, .woocommerce-checkout) #payment ul.payment_methods li > label {
	color: var(--wp--preset--color--foreground);
	font-family: var(--wp--preset--font-family--jost);
	font-size: 1rem;
	font-weight: 300;
	letter-spacing: 0.02em;
	cursor: pointer;
}

:is(#add_payment_method, .woocommerce-checkout) #payment ul.payment_methods li img {
	max-height: 1.5rem;
	margin-left: 0.75rem;
	vertical-align: middle;
}

:is(#add_payment_method, .woocommerce-checkout) #payment div.payment_box {
	margin: 1.25rem 0 0.5rem;
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: var(--wormol-text-muted);
	font-family: var(--wp--preset--font-family--inter-tight);
	font-size: 0.875rem;
	font-weight: 300;
}

:is(#add_payment_method, .woocommerce-checkout) #payment div.payment_box::before {
	display: none;
}

:is(#add_payment_method, .woocommerce-checkout) #payment div.payment_box :is(p, strong) {
	color: var(--wormol-text-muted);
}

:is(#add_payment_method, .woocommerce-checkout) #payment div.payment_box strong {
	font-weight: 400;
}

:is(#add_payment_method, .woocommerce-checkout) #payment div.payment_box a {
	color: var(--wp--preset--color--champagne);
	text-underline-offset: 0.25em;
}

:is(#add_payment_method, .woocommerce-checkout) #payment .wc-stripe-copy-test-number {
	color: var(--wp--preset--color--foreground);
}

/* Checkboxes such as "Update the payment method for all of my current subscriptions" */
:is(#add_payment_method, .woocommerce-checkout) #payment div.payment_box input[type="checkbox"] {
	accent-color: var(--wp--preset--color--champagne);
}

:is(#add_payment_method, .woocommerce-checkout) #payment div.payment_box label {
	color: var(--wormol-text-muted) !important;
	letter-spacing: 0.12em;
}

:is(#add_payment_method, .woocommerce-checkout) #payment div.form-row {
	margin: 0;
	padding: 1.75rem 2rem;
}

:is(#add_payment_method, .woocommerce-checkout) #payment #place_order {
	float: none;
	width: 100%;
}
