/*
 * WooCommerce — cart, checkout, order confirmation and My Account.
 *
 * Carried over from the first Worthy Molecules theme and adapted to the
 * Lovable design: night #0B111E, pill-shaped buttons and the shared label
 * typography (Jost 14px, uppercase, no wide tracking). Loaded only on
 * WooCommerce pages (see inc/woocommerce.php). The product page has its own
 * design and is not styled here.
 */

body {
	--womo-line: color-mix(in oklab, var(--wp--preset--color--champagne) 15%, transparent);
	--womo-line-strong: color-mix(in oklab, var(--wp--preset--color--champagne) 30%, transparent);
	--womo-text-muted: color-mix(in oklab, var(--wp--preset--color--contrast) 60%, transparent);
	--womo-text-faint: color-mix(in oklab, var(--wp--preset--color--contrast) 45%, transparent);
	--womo-fill: color-mix(in oklab, var(--wp--preset--color--champagne) 10%, transparent);
	--womo-fill-hover: color-mix(in oklab, var(--wp--preset--color--champagne) 20%, transparent);
	--womo-header-offset: calc(var(--womo-header-h) + 1.5rem + var(--wp-admin--admin-bar--height, 0px));
}

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

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

/* ---- 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(--womo-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;
}

/* Labels: same voice as .is-style-eyebrow on the rest of the site. */
.wc-block-cart__totals-title,
.wc-block-cart-items__header,
.wc-block-components-checkout-step__title {
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--small) !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	text-transform: uppercase;
	color: var(--wp--preset--color--champagne);
}

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

/*
 * Lovable "editorial" button: pill outline in champagne. Primary actions
 * (Proceed to checkout, Place order) carry a faint champagne fill so they
 * stand out from secondary ones.
 */
.wc-block-components-button:not(.is-link),
.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: 0.875rem 2rem;
	border: 1px solid color-mix(in oklab, var(--wp--preset--color--champagne) 60%, transparent) !important;
	border-radius: var(--wp--custom--radius--pill) !important;
	background: var(--womo-fill) !important;
	color: var(--wp--preset--color--champagne) !important;
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0;
	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,
.woocommerce :is(a.button, button.button, input.button):hover,
.woocommerce-page :is(a.button, button.button, input.button):hover {
	border-color: var(--wp--preset--color--champagne) !important;
	background: var(--womo-fill-hover) !important;
}

.wc-block-components-button:not(.is-link):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(--womo-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(--womo-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(--womo-line-strong) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--wp--preset--color--contrast) !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--base);
	color: var(--wp--preset--color--contrast);
}

.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(--womo-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(--womo-line-strong);
	box-shadow: none;
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
	background: var(--womo-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(--womo-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 color-mix(in oklab, var(--wp--preset--color--lumina) 60%, transparent) !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(--womo-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--base) !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(--womo-line-strong) !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--wp--preset--color--contrast) !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--contrast);
	font-weight: 300;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	color: var(--womo-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: color-mix(in oklab, var(--wp--preset--color--base) 60%, transparent) !important;
	border: 1px solid var(--womo-line-strong) !important;
	border-radius: 0 !important;
	color: var(--wp--preset--color--contrast) !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: color-mix(in oklab, var(--wp--preset--color--champagne) 60%, transparent) !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: var(--wp--preset--font-size--small);
	letter-spacing: 0;
	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: color-mix(in oklab, var(--wp--preset--color--champagne) 50%, transparent);
	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(--womo-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(--womo-line);
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.875rem 0;
	color: var(--womo-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(--womo-line) !important;
	border-radius: 0;
}

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

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

.womo-page-intro .is-style-eyebrow {
	margin-top: 1.25rem;
}

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

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

.womo-back-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: color-mix(in oklab, var(--wp--preset--color--contrast) 45%, transparent);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.4s ease;
}

.womo-back-link a::before {
	content: "";
	width: 1.5rem;
	height: 1px;
	background: color-mix(in oklab, var(--wp--preset--color--champagne) 50%, transparent);
}

.womo-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--contrast) !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(--womo-line);
}

@media (min-width: 782px) {
	.wc-block-cart .wc-block-cart__sidebar {
		position: sticky;
		top: var(--womo-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: color-mix(in oklab, var(--wp--preset--color--champagne) 70%, transparent);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0;
	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 color-mix(in oklab, var(--wp--preset--color--lumina) 40%, transparent) !important;
	border-radius: var(--wp--custom--radius--pill) !important;
	background: transparent !important;
	color: var(--wp--preset--color--lumina) !important;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0;
	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(--womo-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 .womo-account .woocommerce {
		display: grid;
		grid-template-columns: 13rem minmax(0, 1fr);
		gap: 4rem;
		align-items: start;
	}

	/* WooCommerce's block-theme CSS caps the account at 1000px; use the wide width. */
	.woocommerce-account.logged-in .womo-account .woocommerce {
		max-width: none;
	}

	/* WooCommerce clearfix pseudo-elements would take up grid cells. */
	.woocommerce-account.logged-in .womo-account .woocommerce::before,
	.woocommerce-account.logged-in .womo-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: var(--wp--preset--font-size--medium);
	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: color-mix(in oklab, var(--wp--preset--color--contrast) 72%, transparent);
}

.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: color-mix(in oklab, var(--wp--preset--color--champagne) 40%, transparent);
}

.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--contrast);
}

.woocommerce-MyAccount-content :is(h2, h3) {
	margin: 2.5rem 0 1rem;
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: uppercase;
	color: color-mix(in oklab, var(--wp--preset--color--champagne) 80%, transparent);
}

/* 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: var(--wp--preset--font-size--small);
	letter-spacing: 0;
	text-transform: uppercase;
	color: color-mix(in oklab, var(--wp--preset--color--champagne) 70%, transparent) !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(--womo-text-faint);
}

.woocommerce-account form .form-row span em,
.woocommerce-account form .form-row .description {
	display: block;
	margin-top: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	color: var(--womo-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: var(--wp--preset--font-size--small);
	letter-spacing: 0;
	text-transform: uppercase;
	color: color-mix(in oklab, var(--wp--preset--color--champagne) 80%, transparent);
}

/* 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(--womo-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--contrast);
	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(--womo-line-strong);
	border-radius: 0;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

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

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

/* Addresses: one framed card per address, the edit link at the bottom */
.woocommerce-edit-address .woocommerce-MyAccount-content > p:first-of-type {
	font-size: var(--wp--preset--font-size--medium);
	color: var(--womo-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(--womo-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--contrast);
	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: var(--wp--preset--font-size--small);
	letter-spacing: 0;
	text-decoration: none;
	text-transform: uppercase;
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address-title .edit::before {
	content: "";
	width: 1.5rem;
	height: 1px;
	background: color-mix(in oklab, var(--wp--preset--color--champagne) 50%, transparent);
	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: var(--wp--preset--font-size--medium);
}

:is(.woocommerce-account, .woocommerce-order-received) table.shop_table thead th {
	padding: 0 1rem 0.75rem 0;
	border-bottom: 1px solid var(--womo-line) !important;
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: uppercase;
	color: color-mix(in oklab, var(--wp--preset--color--champagne) 70%, transparent);
}

/* The first cell of each row is a <th scope="row">, e.g. the order number. */
:is(.woocommerce-account, .woocommerce-order-received) table.shop_table :is(td, tbody th) {
	padding: 1rem 1rem 1rem 0;
	font-weight: 400;
	text-align: left;
	border-top: 0 !important;
	border-bottom: 1px solid var(--womo-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.5rem;
	padding: 0.5rem 1.25rem;
	background: transparent !important;
	border-color: var(--womo-line-strong) !important;
	font-size: var(--wp--preset--font-size--small);
}

: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 ---- */

.womo-order-confirmation {
	font-family: var(--wp--preset--font-family--inter-tight);
	font-weight: 300;
	color: color-mix(in oklab, var(--wp--preset--color--contrast) 72%, transparent);
}

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

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

.womo-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;
}

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

/* Section headings as small labels */
.womo-order-confirmation .womo-section-label,
.womo-order-confirmation .wc-block-order-confirmation-totals header h2 {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--small) !important;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: uppercase;
	color: color-mix(in oklab, var(--wp--preset--color--champagne) 80%, transparent);
}

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

.womo-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(--womo-line);
	list-style: none;
}

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

.womo-order-confirmation .wc-block-order-confirmation-summary-list-item__key {
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: uppercase;
	color: color-mix(in oklab, var(--wp--preset--color--champagne) 70%, transparent);
}

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

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

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

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

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

.womo-order-confirmation .wc-block-order-confirmation-totals__table thead th {
	padding-top: 0;
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: uppercase;
	color: color-mix(in oklab, var(--wp--preset--color--champagne) 70%, transparent);
}

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

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

.womo-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--contrast);
}

.womo-order-confirmation .wc-block-order-confirmation-totals__table tfoot small {
	font-size: var(--wp--preset--font-size--small);
	color: var(--womo-text-faint);
}

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

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

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

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

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

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

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

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

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

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

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

.womo-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--contrast);
	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(--womo-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: var(--wp--preset--font-size--small);
}

.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) .womo-account .woocommerce {
	max-width: 28rem;
}

.woocommerce-account:not(.logged-in) .womo-account .woocommerce > h2 {
	margin: 0 0 1rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: uppercase;
	color: color-mix(in oklab, var(--wp--preset--color--champagne) 80%, transparent);
}

.woocommerce-account form:is(.woocommerce-form-login, .lost_reset_password) {
	margin: 0;
	padding: 2rem;
	border: 1px solid var(--womo-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: var(--wp--preset--font-size--medium);
	font-weight: 300;
	line-height: 1.7;
	color: var(--womo-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: var(--wp--preset--font-size--small);
	font-weight: 300;
	text-decoration: none;
	transition: color 0.4s ease;
}

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

/*
 * 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(--womo-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(--womo-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--contrast);
	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(--womo-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(--womo-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--contrast);
}

/* 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(--womo-text-muted) !important;
	letter-spacing: 0;
}

: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%;
}
