/*
 * Ultimate Exotics styling for the WooCommerce Cart (basket), Checkout,
 * Order received and My Account pages.
 *
 * Loaded only on those pages, and only while "Style basket, checkout and
 * account pages" is on (WooCommerce → UE Shop). Covers both the classic
 * shortcode pages and the newer Cart/Checkout blocks.
 *
 * Everything is scoped to body.ue-woo-page so the rest of the site is never
 * touched, and so these rules win over WooCommerce's own stylesheets, which
 * load later on block pages.
 */

body.ue-woo-page {
	--ue-accent: #bfdc80;
	--ue-accent-hover: #d1e9a3;
	--ue-on-accent: #15200e;
	--ue-background: #111512;
	--ue-panel: #1b211c;
	--ue-text: #f2f4ed;
	--ue-muted: #9da99e;
	--ue-border: #303a31;
	--ue-danger: #f19a8b;
	--ue-radius: 14px;
	--ue-field-radius: 9px;
	--ue-photo-frame: #e8e5db;

	/* WooCommerce's own form variables, so its rules pick up the palette too. */
	--wc-form-color-background: var(--ue-panel);
	--wc-form-color-text: var(--ue-text);
	--wc-form-border-color: var(--ue-border);
	--wc-form-border-radius: var(--ue-field-radius);
	--wc-form-border-width: 1px;
}

/* -------------------------------------------------------------------------
 * Base typography and links
 * ---------------------------------------------------------------------- */
body.ue-woo-page .woocommerce,
body.ue-woo-page .wp-block-woocommerce-cart,
body.ue-woo-page .wp-block-woocommerce-checkout {
	color: var(--ue-text);
	font-family: 'DM Sans', Arial, sans-serif;
	font-size: 14px;
	line-height: 1.6;
}
body.ue-woo-page .woocommerce *,
body.ue-woo-page .wp-block-woocommerce-cart *,
body.ue-woo-page .wp-block-woocommerce-checkout * {
	box-sizing: border-box;
}
body.ue-woo-page .woocommerce h2,
body.ue-woo-page .woocommerce h3,
body.ue-woo-page .woocommerce legend,
body.ue-woo-page .wc-block-components-title,
body.ue-woo-page .wc-block-components-checkout-step__title,
body.ue-woo-page .wc-block-cart__totals-title {
	font-family: Fredoka, 'DM Sans', sans-serif;
	font-weight: 400;
	color: var(--ue-text);
	letter-spacing: -0.01em;
	text-transform: none;
	line-height: 1.25;
}
body.ue-woo-page .woocommerce h2 {
	font-size: 26px;
	margin: 0 0 18px;
}
body.ue-woo-page .woocommerce h3,
body.ue-woo-page .woocommerce legend,
body.ue-woo-page .wc-block-components-checkout-step__title,
body.ue-woo-page .wc-block-cart__totals-title {
	font-size: 20px;
	margin: 0 0 14px;
}
body.ue-woo-page .woocommerce p,
body.ue-woo-page .wc-block-components-checkout-step__description {
	color: var(--ue-muted);
}
body.ue-woo-page .woocommerce a:not(.button),
body.ue-woo-page .wp-block-woocommerce-cart a:not(.wc-block-components-button),
body.ue-woo-page .wp-block-woocommerce-checkout a:not(.wc-block-components-button) {
	color: var(--ue-text);
	text-decoration: underline;
	text-decoration-color: var(--ue-border);
	text-underline-offset: 3px;
	transition:
		color 0.15s,
		text-decoration-color 0.15s;
}
body.ue-woo-page .woocommerce a:not(.button):hover,
body.ue-woo-page .wp-block-woocommerce-cart a:not(.wc-block-components-button):hover,
body.ue-woo-page .wp-block-woocommerce-checkout a:not(.wc-block-components-button):hover {
	color: var(--ue-accent);
	text-decoration-color: var(--ue-accent);
}
body.ue-woo-page .woocommerce :focus-visible,
body.ue-woo-page .wp-block-woocommerce-cart :focus-visible,
body.ue-woo-page .wp-block-woocommerce-checkout :focus-visible {
	outline: 2px solid var(--ue-accent);
	outline-offset: 3px;
	box-shadow: none;
}
body.ue-woo-page .woocommerce .required,
body.ue-woo-page .woocommerce abbr.required {
	color: var(--ue-accent);
	text-decoration: none;
	border: 0;
}

/* -------------------------------------------------------------------------
 * Buttons
 * ---------------------------------------------------------------------- */
body.ue-woo-page .woocommerce a.button,
body.ue-woo-page .woocommerce button.button,
body.ue-woo-page .woocommerce input.button,
body.ue-woo-page .woocommerce #respond input#submit,
body.ue-woo-page .woocommerce .button.alt,
body.ue-woo-page .wc-block-components-button:not(.is-link) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	padding: 13px 22px;
	border: 1px solid var(--ue-accent);
	border-radius: 10px;
	background: var(--ue-accent);
	color: var(--ue-on-accent);
	font:
		500 14px/1.4 'DM Sans',
		Arial,
		sans-serif;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
	transition:
		background-color 0.15s,
		border-color 0.15s,
		color 0.15s;
}
body.ue-woo-page .woocommerce a.button:hover,
body.ue-woo-page .woocommerce button.button:hover,
body.ue-woo-page .woocommerce input.button:hover,
body.ue-woo-page .woocommerce .button.alt:hover,
body.ue-woo-page .wc-block-components-button:not(.is-link):hover {
	background: var(--ue-accent-hover);
	border-color: var(--ue-accent-hover);
	color: var(--ue-on-accent);
}
body.ue-woo-page .wc-block-components-button:not(.is-link) .wc-block-components-button__text {
	color: inherit;
}
/* Secondary actions: Update basket, Apply coupon, View, previous/next, Cancel. */
body.ue-woo-page .woocommerce button[name='update_cart'],
body.ue-woo-page .woocommerce button[name='apply_coupon'],
body.ue-woo-page .woocommerce .woocommerce-orders-table .button,
body.ue-woo-page .woocommerce .woocommerce-Button--previous,
body.ue-woo-page .woocommerce .woocommerce-Button--next,
body.ue-woo-page .woocommerce .order-again .button,
body.ue-woo-page .woocommerce a.button.cancel,
body.ue-woo-page .wc-block-components-button.is-style-outline,
body.ue-woo-page .wc-block-components-button.outlined {
	background: transparent;
	border-color: var(--ue-border);
	color: var(--ue-text);
	border-radius: 30px;
}
body.ue-woo-page .woocommerce button[name='update_cart']:hover,
body.ue-woo-page .woocommerce button[name='apply_coupon']:hover,
body.ue-woo-page .woocommerce .woocommerce-orders-table .button:hover,
body.ue-woo-page .woocommerce .woocommerce-Button--previous:hover,
body.ue-woo-page .woocommerce .woocommerce-Button--next:hover,
body.ue-woo-page .woocommerce .order-again .button:hover,
body.ue-woo-page .woocommerce a.button.cancel:hover,
body.ue-woo-page .wc-block-components-button.is-style-outline:hover,
body.ue-woo-page .wc-block-components-button.outlined:hover {
	background: var(--ue-panel);
	border-color: var(--ue-accent);
	color: var(--ue-accent);
}
body.ue-woo-page .woocommerce .button:disabled,
body.ue-woo-page .woocommerce .button.disabled,
body.ue-woo-page .woocommerce .button:disabled[disabled],
body.ue-woo-page .wc-block-components-button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	padding: 13px 22px;
}
body.ue-woo-page .wc-block-components-button.is-link,
body.ue-woo-page .wc-block-components-totals-coupon-link,
body.ue-woo-page .wc-block-cart-item__remove-link {
	color: var(--ue-muted) !important;
	font-size: 12px !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}
body.ue-woo-page .wc-block-cart-item__remove-link:hover,
body.ue-woo-page .wc-block-components-button.is-link:hover {
	color: var(--ue-accent) !important;
}

/* -------------------------------------------------------------------------
 * Form fields (classic forms, select2 and block inputs)
 * ---------------------------------------------------------------------- */
body.ue-woo-page .woocommerce form .form-row label,
body.ue-woo-page .woocommerce form label {
	color: var(--ue-muted);
	font-size: 12px;
	line-height: 1.5;
	margin-bottom: 6px;
}
body.ue-woo-page .woocommerce form .form-row {
	margin: 0 0 16px;
	padding: 0;
}
body.ue-woo-page .woocommerce input.input-text,
body.ue-woo-page .woocommerce textarea,
body.ue-woo-page .woocommerce select,
body.ue-woo-page .woocommerce .quantity .qty,
body.ue-woo-page .woocommerce form .form-row .input-text,
body.ue-woo-page .woocommerce form .form-row textarea,
body.ue-woo-page .woocommerce form .form-row select,
body.ue-woo-page .woocommerce table.cart td.actions .coupon .input-text,
body.ue-woo-page .woocommerce input[type='text'],
body.ue-woo-page .woocommerce input[type='email'],
body.ue-woo-page .woocommerce input[type='tel'],
body.ue-woo-page .woocommerce input[type='password'],
body.ue-woo-page .woocommerce input[type='number'],
body.ue-woo-page .select2-container--default .select2-selection--single,
body.ue-woo-page .wc-block-components-text-input input,
body.ue-woo-page .wc-block-components-textarea,
body.ue-woo-page .wc-blocks-components-select .wc-blocks-components-select__container,
body.ue-woo-page .wc-blocks-components-select .wc-blocks-components-select__select,
body.ue-woo-page .wc-block-components-combobox .wc-block-components-combobox-control input {
	width: 100%;
	min-height: 46px;
	padding: 12px 14px;
	border: 1px solid var(--ue-border);
	border-radius: var(--ue-field-radius);
	background: var(--ue-panel);
	color: var(--ue-text);
	font:
		400 14px/1.5 'DM Sans',
		Arial,
		sans-serif;
	box-shadow: none;
	outline: 0;
}
body.ue-woo-page .woocommerce textarea,
body.ue-woo-page .woocommerce form .form-row textarea,
body.ue-woo-page .wc-block-components-textarea {
	min-height: 110px;
}
body.ue-woo-page .woocommerce input.input-text:focus,
body.ue-woo-page .woocommerce textarea:focus,
body.ue-woo-page .woocommerce select:focus,
body.ue-woo-page .woocommerce .quantity .qty:focus,
body.ue-woo-page .select2-container--default.select2-container--focus .select2-selection--single,
body.ue-woo-page .select2-container--default.select2-container--open .select2-selection--single,
body.ue-woo-page .wc-block-components-text-input input:focus,
body.ue-woo-page .wc-block-components-textarea:focus,
body.ue-woo-page .wc-blocks-components-select .wc-blocks-components-select__select:focus {
	border-color: var(--ue-accent);
	box-shadow: 0 0 0 1px var(--ue-accent);
	background: var(--ue-panel);
	color: var(--ue-text);
}
body.ue-woo-page .woocommerce ::placeholder,
body.ue-woo-page .wc-block-components-text-input input::placeholder {
	color: var(--ue-muted);
	opacity: 0.8;
}
body.ue-woo-page .woocommerce form .form-row.woocommerce-invalid input.input-text,
body.ue-woo-page .woocommerce form .form-row.woocommerce-invalid select,
body.ue-woo-page .wc-block-components-text-input.has-error input {
	border-color: var(--ue-danger);
}
body.ue-woo-page .wc-block-components-validation-error,
body.ue-woo-page .wc-block-components-text-input.has-error label {
	color: var(--ue-danger) !important;
}
body.ue-woo-page .woocommerce .quantity .qty {
	width: 78px;
	text-align: center;
	padding: 10px 8px;
}

/* Block inputs float their label inside the field. */
body.ue-woo-page .wc-block-components-text-input input,
body.ue-woo-page .wc-block-components-combobox .wc-block-components-combobox-control input {
	padding: 22px 14px 6px;
	height: auto;
	min-height: 52px;
}
body.ue-woo-page .wc-block-components-text-input label,
body.ue-woo-page .wc-block-components-combobox .wc-block-components-combobox-control label,
body.ue-woo-page .wc-blocks-components-select .wc-blocks-components-select__label {
	color: var(--ue-muted) !important;
	left: 14px;
}
body.ue-woo-page .wc-blocks-components-select .wc-blocks-components-select__container {
	padding: 0;
	height: auto;
	min-height: 52px;
}
body.ue-woo-page .wc-blocks-components-select .wc-blocks-components-select__select {
	border: 0;
	padding-top: 20px;
	min-height: 52px;
	background: transparent;
}
body.ue-woo-page .wc-blocks-components-select .wc-blocks-components-select__expand {
	fill: var(--ue-muted);
}
body.ue-woo-page .wc-blocks-components-select .wc-blocks-components-select__select option {
	background: var(--ue-panel);
	color: var(--ue-text);
}

/* select2 (country/state pickers on classic checkout and addresses). */
body.ue-woo-page .select2-container--default .select2-selection--single {
	height: auto;
	display: flex;
	align-items: center;
}
body.ue-woo-page .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: var(--ue-text);
	line-height: 1.5;
	padding: 0 22px 0 0;
}
body.ue-woo-page .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100%;
	right: 8px;
}
body.ue-woo-page .select2-container--default .select2-selection--single .select2-selection__arrow b {
	border-top-color: var(--ue-muted);
}
body.ue-woo-page .select2-dropdown {
	background: var(--ue-panel);
	border-color: var(--ue-border);
	color: var(--ue-text);
	border-radius: var(--ue-field-radius);
	overflow: hidden;
}
body.ue-woo-page .select2-search--dropdown .select2-search__field {
	background: var(--ue-background);
	color: var(--ue-text);
	border: 1px solid var(--ue-border);
	border-radius: 6px;
	padding: 8px;
}
body.ue-woo-page .select2-container--default .select2-results__option--highlighted[aria-selected],
body.ue-woo-page .select2-container--default .select2-results__option--highlighted[data-selected] {
	background: var(--ue-accent);
	color: var(--ue-on-accent);
}
body.ue-woo-page .select2-container--default .select2-results__option[aria-selected='true'],
body.ue-woo-page .select2-container--default .select2-results__option[data-selected='true'] {
	background: var(--ue-background);
	color: var(--ue-text);
}

/* Checkboxes and radios. */
body.ue-woo-page .woocommerce input[type='checkbox'],
body.ue-woo-page .woocommerce input[type='radio'] {
	accent-color: var(--ue-accent);
}
body.ue-woo-page .wc-block-components-checkbox .wc-block-components-checkbox__input[type='checkbox'],
body.ue-woo-page .wc-block-components-radio-control__input {
	background: var(--ue-panel) !important;
	border: 1px solid var(--ue-muted) !important;
}
body.ue-woo-page .wc-block-components-checkbox .wc-block-components-checkbox__input[type='checkbox']:checked,
body.ue-woo-page .wc-block-components-radio-control__input:checked {
	border-color: var(--ue-accent) !important;
}
body.ue-woo-page .wc-block-components-checkbox .wc-block-components-checkbox__mark {
	fill: var(--ue-accent) !important;
}
body.ue-woo-page .wc-block-components-radio-control__input:checked::before {
	background: var(--ue-accent) !important;
}

/* -------------------------------------------------------------------------
 * Notices
 * ---------------------------------------------------------------------- */
body.ue-woo-page .woocommerce-message,
body.ue-woo-page .woocommerce-info,
body.ue-woo-page .woocommerce-error,
body.ue-woo-page .woocommerce-notice,
body.ue-woo-page .wc-block-components-notice-banner {
	background: var(--ue-panel) !important;
	color: var(--ue-text) !important;
	border: 1px solid var(--ue-border) !important;
	border-left: 3px solid var(--ue-accent) !important;
	border-radius: 10px;
	padding: 16px 18px 16px 50px;
	margin: 0 0 24px;
	font-size: 14px;
	line-height: 1.6;
	list-style: none;
	box-shadow: none;
}
body.ue-woo-page .wc-block-components-notice-banner {
	padding: 14px 16px;
}
body.ue-woo-page .woocommerce-error,
body.ue-woo-page .wc-block-components-notice-banner.is-error {
	border-left-color: var(--ue-danger) !important;
}
body.ue-woo-page .woocommerce-message::before,
body.ue-woo-page .woocommerce-info::before {
	color: var(--ue-accent);
	top: 16px;
	left: 18px;
}
body.ue-woo-page .woocommerce-error::before {
	color: var(--ue-danger);
	top: 16px;
	left: 18px;
}
body.ue-woo-page .wc-block-components-notice-banner > svg {
	background: var(--ue-accent);
	fill: var(--ue-on-accent);
}
body.ue-woo-page .wc-block-components-notice-banner.is-error > svg {
	background: var(--ue-danger);
}
body.ue-woo-page .woocommerce-message .button,
body.ue-woo-page .woocommerce-info .button {
	float: right;
	min-height: 36px;
	padding: 8px 16px;
	margin: -6px 0 0 16px;
}
body.ue-woo-page .woocommerce-notice--success.woocommerce-thankyou-order-received {
	font-family: Fredoka, 'DM Sans', sans-serif;
	font-size: 22px;
}

/* -------------------------------------------------------------------------
 * Tables (basket, order review, orders, order details)
 * ---------------------------------------------------------------------- */
body.ue-woo-page .woocommerce table.shop_table,
body.ue-woo-page .wc-block-cart-items {
	width: 100%;
	margin: 0 0 28px;
	border: 1px solid var(--ue-border);
	border-radius: var(--ue-radius);
	border-collapse: separate;
	border-spacing: 0;
	background: transparent;
	overflow: hidden;
}
body.ue-woo-page .woocommerce table.shop_table th,
body.ue-woo-page .woocommerce table.shop_table td,
body.ue-woo-page .wc-block-cart-items th,
body.ue-woo-page .wc-block-cart-items td {
	padding: 16px 18px;
	border: 0;
	border-top: 1px solid var(--ue-border);
	background: transparent;
	color: var(--ue-text);
	vertical-align: middle;
	text-align: left;
}
body.ue-woo-page .woocommerce table.shop_table thead th,
body.ue-woo-page .wc-block-cart-items thead th {
	border-top: 0;
	color: var(--ue-muted);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
body.ue-woo-page .woocommerce table.shop_table tbody th,
body.ue-woo-page .woocommerce table.shop_table tfoot th,
body.ue-woo-page .woocommerce table.shop_table tfoot td {
	font-weight: 400;
}
body.ue-woo-page .woocommerce table.shop_table tfoot tr:last-child th,
body.ue-woo-page .woocommerce table.shop_table tfoot tr:last-child td,
body.ue-woo-page .woocommerce table.shop_table .order-total th,
body.ue-woo-page .woocommerce table.shop_table .order-total td {
	font-size: 16px;
	font-weight: 500;
}
body.ue-woo-page .woocommerce table.shop_table .amount,
body.ue-woo-page .woocommerce .order-total .amount {
	color: var(--ue-text);
}

/* Product photos sit on white inside the warm frame, matching the shop cards. */
body.ue-woo-page .woocommerce table.cart img,
body.ue-woo-page .wc-block-cart-item__image img,
body.ue-woo-page .wc-block-components-order-summary-item__image img {
	width: 72px;
	height: 72px;
	object-fit: contain;
	background: #fff;
	border: 6px solid var(--ue-photo-frame);
	border-radius: 10px;
	box-shadow: none;
}
body.ue-woo-page .woocommerce table.cart td.product-name a {
	font-weight: 500;
	text-decoration: none;
}
body.ue-woo-page .woocommerce table.cart td.product-remove a.remove {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border: 1px solid var(--ue-border);
	border-radius: 50%;
	color: var(--ue-muted) !important;
	font-size: 18px;
	line-height: 1;
	text-decoration: none;
	background: transparent;
}
body.ue-woo-page .woocommerce table.cart td.product-remove a.remove:hover {
	background: var(--ue-panel);
	border-color: var(--ue-danger);
	color: var(--ue-danger) !important;
}
body.ue-woo-page .woocommerce table.cart td.actions {
	background: transparent;
	padding: 18px;
}
@media (min-width: 768px) {
	body.ue-woo-page .woocommerce table.cart tr:has(> td.actions) td.actions {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}
	body.ue-woo-page .woocommerce table.cart td.actions .button {
		float: none;
	}
}
body.ue-woo-page .woocommerce table.cart td.actions .coupon {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
body.ue-woo-page .woocommerce table.cart td.actions .coupon .input-text {
	width: 200px;
	max-width: 100%;
	margin: 0;
}

/* -------------------------------------------------------------------------
 * Panels: basket totals, order review, payment box, addresses
 * ---------------------------------------------------------------------- */
body.ue-woo-page .woocommerce .cart-collaterals .cart_totals,
body.ue-woo-page .woocommerce-checkout #order_review,
body.ue-woo-page .woocommerce .woocommerce-customer-details address,
body.ue-woo-page .woocommerce .woocommerce-Addresses .woocommerce-Address,
body.ue-woo-page .woocommerce form.checkout_coupon,
body.ue-woo-page .woocommerce form.login,
body.ue-woo-page .woocommerce form.register,
body.ue-woo-page .woocommerce form.lost_reset_password,
body.ue-woo-page .wc-block-components-sidebar.wc-block-cart__sidebar,
body.ue-woo-page .wc-block-components-sidebar.wc-block-checkout__sidebar {
	background: var(--ue-panel);
	border: 1px solid var(--ue-border);
	border-radius: var(--ue-radius);
	padding: 24px;
	color: var(--ue-text);
}
body.ue-woo-page .woocommerce .cart-collaterals .cart_totals table.shop_table,
body.ue-woo-page .woocommerce-checkout #order_review table.shop_table {
	border: 0;
	border-radius: 0;
	margin-bottom: 20px;
}
body.ue-woo-page .woocommerce .cart-collaterals .cart_totals table.shop_table th,
body.ue-woo-page .woocommerce .cart-collaterals .cart_totals table.shop_table td,
body.ue-woo-page .woocommerce-checkout #order_review table.shop_table th,
body.ue-woo-page .woocommerce-checkout #order_review table.shop_table td {
	padding: 14px 0;
}
body.ue-woo-page .woocommerce .cart-collaterals .cart_totals table.shop_table tr:first-child th,
body.ue-woo-page .woocommerce .cart-collaterals .cart_totals table.shop_table tr:first-child td {
	border-top: 0;
}
body.ue-woo-page .woocommerce .wc-proceed-to-checkout {
	padding: 0;
}
body.ue-woo-page .woocommerce .wc-proceed-to-checkout a.checkout-button,
body.ue-woo-page .woocommerce #place_order {
	display: flex;
	width: 100%;
	min-height: 52px;
	font-size: 15px;
	margin: 0;
}
body.ue-woo-page .woocommerce .woocommerce-shipping-methods {
	list-style: none;
	margin: 0;
	padding: 0;
}
body.ue-woo-page .woocommerce .woocommerce-shipping-methods li {
	margin: 0 0 6px;
}
body.ue-woo-page .woocommerce .woocommerce-shipping-destination,
body.ue-woo-page .woocommerce .shipping-calculator-button {
	color: var(--ue-muted);
	font-size: 12px;
}

/* Payment methods: WooCommerce paints these light grey by default. */
body.ue-woo-page .woocommerce-checkout #payment,
body.ue-woo-page .woocommerce #payment {
	background: transparent;
	border-radius: 0;
}
body.ue-woo-page .woocommerce #payment ul.payment_methods {
	border-bottom: 1px solid var(--ue-border);
	padding: 0 0 16px;
	margin: 0 0 16px;
}
body.ue-woo-page .woocommerce #payment ul.payment_methods li {
	color: var(--ue-text);
	line-height: 1.6;
}
body.ue-woo-page .woocommerce #payment div.payment_box {
	background: var(--ue-background);
	color: var(--ue-muted);
	border-radius: 10px;
	font-size: 13px;
}
body.ue-woo-page .woocommerce #payment div.payment_box::before {
	border-bottom-color: var(--ue-background);
}
body.ue-woo-page .woocommerce #payment div.form-row {
	padding: 0;
}
body.ue-woo-page .woocommerce .woocommerce-privacy-policy-text p,
body.ue-woo-page .woocommerce .woocommerce-terms-and-conditions-wrapper {
	font-size: 12px;
	color: var(--ue-muted);
}

/* -------------------------------------------------------------------------
 * Classic checkout layout: details left, order summary right on desktop.
 * ---------------------------------------------------------------------- */
@media (min-width: 1025px) {
	body.ue-woo-page form.woocommerce-checkout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
		gap: 0 48px;
		align-items: start;
	}
	body.ue-woo-page form.woocommerce-checkout > * {
		grid-column: 1;
	}
	body.ue-woo-page form.woocommerce-checkout #customer_details {
		grid-row: 1 / span 3;
	}
	body.ue-woo-page form.woocommerce-checkout #customer_details .col-1,
	body.ue-woo-page form.woocommerce-checkout #customer_details .col-2 {
		float: none;
		width: 100%;
	}
	body.ue-woo-page form.woocommerce-checkout #order_review_heading,
	body.ue-woo-page form.woocommerce-checkout #order_review {
		grid-column: 2;
	}
	body.ue-woo-page form.woocommerce-checkout #order_review {
		position: sticky;
		top: 110px;
	}
}
body.ue-woo-page .woocommerce form .form-row-first,
body.ue-woo-page .woocommerce form .form-row-last {
	width: 48.5%;
}

/* -------------------------------------------------------------------------
 * My Account
 * ---------------------------------------------------------------------- */
@supports selector(:has(*)) {
	body.ue-woo-page.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		display: grid;
		grid-template-columns: 240px minmax(0, 1fr);
		gap: 0 48px;
		align-items: start;
	}
	body.ue-woo-page.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > * {
		grid-column: 1 / -1;
	}
	body.ue-woo-page.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::before,
	body.ue-woo-page.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::after {
		display: none;
	}
	body.ue-woo-page.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation {
		grid-column: 1;
		float: none;
		width: auto;
		position: sticky;
		top: 110px;
	}
	body.ue-woo-page.woocommerce-account .woocommerce > .woocommerce-MyAccount-content {
		grid-column: 2;
		float: none;
		width: auto;
	}
}
body.ue-woo-page .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 10px;
	background: var(--ue-panel);
	border: 1px solid var(--ue-border);
	border-radius: var(--ue-radius);
}
body.ue-woo-page .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
	border: 0;
}
body.ue-woo-page .woocommerce .woocommerce-MyAccount-navigation li a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 10px 14px;
	border-radius: 9px;
	color: var(--ue-muted);
	font-size: 14px;
	text-decoration: none;
	transition:
		background-color 0.15s,
		color 0.15s;
}
body.ue-woo-page .woocommerce .woocommerce-MyAccount-navigation li a::before {
	content: '';
	flex: none;
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: var(--ue-nav-icon) center / contain no-repeat;
	mask: var(--ue-nav-icon) center / contain no-repeat;
}
body.ue-woo-page .woocommerce .woocommerce-MyAccount-navigation li a:hover {
	background: var(--ue-background);
	color: var(--ue-text);
}
body.ue-woo-page .woocommerce .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--ue-accent);
	color: var(--ue-on-accent);
}
body.ue-woo-page .woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 6px !important;
	padding-top: 6px !important;
	border-top: 1px solid var(--ue-border) !important;
}

/* Menu icons (same line style as the mobile app menu). */
body.ue-woo-page .woocommerce-MyAccount-navigation li {
	--ue-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E");
}
body.ue-woo-page .woocommerce-MyAccount-navigation-link--dashboard {
	--ue-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 10 9-7 9 7v11h-6v-7H9v7H3Z'/%3E%3C/svg%3E") !important;
}
body.ue-woo-page .woocommerce-MyAccount-navigation-link--orders {
	--ue-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7h14l2 14H3L5 7Z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") !important;
}
body.ue-woo-page .woocommerce-MyAccount-navigation-link--downloads {
	--ue-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m-5-5 5 5 5-5M4 20h16'/%3E%3C/svg%3E") !important;
}
body.ue-woo-page .woocommerce-MyAccount-navigation-link--edit-address {
	--ue-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") !important;
}
body.ue-woo-page .woocommerce-MyAccount-navigation-link--payment-methods {
	--ue-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2'/%3E%3Cpath d='M2.5 10h19M6 15h4'/%3E%3C/svg%3E") !important;
}
body.ue-woo-page .woocommerce-MyAccount-navigation-link--edit-account {
	--ue-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4 22v-3a8 8 0 0 1 16 0v3'/%3E%3C/svg%3E") !important;
}
body.ue-woo-page .woocommerce-MyAccount-navigation-link--customer-logout {
	--ue-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4h4v16h-4M10 8l-4 4 4 4M6 12h10'/%3E%3C/svg%3E") !important;
}

body.ue-woo-page .woocommerce-MyAccount-content > p:first-child {
	font-size: 15px;
	color: var(--ue-text);
}
body.ue-woo-page .woocommerce-MyAccount-content > p:first-child strong {
	font-family: Fredoka, 'DM Sans', sans-serif;
	font-weight: 500;
	color: var(--ue-accent);
}
body.ue-woo-page .woocommerce .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}
body.ue-woo-page .woocommerce .woocommerce-Addresses::before,
body.ue-woo-page .woocommerce .woocommerce-Addresses::after {
	display: none;
}
body.ue-woo-page .woocommerce .woocommerce-Addresses .woocommerce-Address {
	float: none;
	width: auto;
	margin: 0;
}
body.ue-woo-page .woocommerce .woocommerce-Address-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}
body.ue-woo-page .woocommerce .woocommerce-Address-title h2,
body.ue-woo-page .woocommerce .woocommerce-Address-title h3 {
	margin: 0;
	font-size: 20px;
}
body.ue-woo-page .woocommerce .woocommerce-Address-title .edit {
	float: none;
	font-size: 12px;
	color: var(--ue-accent);
}
body.ue-woo-page .woocommerce address {
	font-style: normal;
	color: var(--ue-muted);
	line-height: 1.8;
	border: 0;
	padding: 0;
}
body.ue-woo-page .woocommerce fieldset {
	border: 1px solid var(--ue-border);
	border-radius: var(--ue-radius);
	padding: 20px 22px 6px;
	margin: 24px 0;
}
body.ue-woo-page .woocommerce mark {
	background: transparent;
	color: var(--ue-accent);
	font-weight: 500;
}

/* Login and register (logged out). */
body.ue-woo-page .woocommerce #customer_login.col2-set {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 32px;
}
body.ue-woo-page .woocommerce #customer_login.col2-set::before,
body.ue-woo-page .woocommerce #customer_login.col2-set::after {
	display: none;
}
body.ue-woo-page .woocommerce #customer_login .u-column1,
body.ue-woo-page .woocommerce #customer_login .u-column2 {
	float: none;
	width: auto;
}
body.ue-woo-page .woocommerce form.login,
body.ue-woo-page .woocommerce form.register {
	margin: 0;
}
body.ue-woo-page .woocommerce form.login .form-row:last-of-type {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
body.ue-woo-page .woocommerce .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--ue-muted);
}
body.ue-woo-page .woocommerce .lost_password a {
	color: var(--ue-muted);
	font-size: 12px;
}
body.ue-woo-page .woocommerce .password-input {
	display: block;
	position: relative;
}
body.ue-woo-page .woocommerce .show-password-input {
	top: 50%;
	transform: translateY(-50%);
	right: 12px;
	background: transparent;
	border: 0;
	color: var(--ue-muted);
}
body.ue-woo-page .woocommerce .woocommerce-password-strength {
	border-radius: 6px;
	margin-top: 8px;
	font-size: 12px;
}

/* Order received / view order. */
body.ue-woo-page .woocommerce ul.order_details,
body.ue-woo-page .woocommerce ul.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
	border: 1px solid var(--ue-border);
	border-radius: var(--ue-radius);
	overflow: hidden;
}
body.ue-woo-page .woocommerce ul.order_details::before,
body.ue-woo-page .woocommerce ul.order_details::after {
	display: none;
}
body.ue-woo-page .woocommerce ul.order_details li {
	float: none;
	margin: 0;
	padding: 16px 18px;
	border: 0;
	border-right: 1px solid var(--ue-border);
	color: var(--ue-muted);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
body.ue-woo-page .woocommerce ul.order_details li strong {
	display: block;
	margin-top: 6px;
	color: var(--ue-text);
	font-size: 15px;
	letter-spacing: 0;
	text-transform: none;
}

/* -------------------------------------------------------------------------
 * Cart and Checkout blocks
 * ---------------------------------------------------------------------- */
body.ue-woo-page .wc-block-cart-items .wc-block-cart-items__row {
	background: transparent;
}
body.ue-woo-page .wc-block-components-product-name {
	color: var(--ue-text) !important;
	font-weight: 500;
	text-decoration: none !important;
}
body.ue-woo-page .wc-block-components-product-metadata,
body.ue-woo-page .wc-block-components-product-details,
body.ue-woo-page .wc-block-components-totals-item__description,
body.ue-woo-page .wc-block-components-checkout-step__description,
body.ue-woo-page .wc-block-components-address-card {
	color: var(--ue-muted);
}
body.ue-woo-page .wc-block-components-product-price,
body.ue-woo-page .wc-block-components-formatted-money-amount,
body.ue-woo-page .wc-block-components-totals-item__value {
	color: var(--ue-text);
}
body.ue-woo-page .wc-block-components-product-badge,
body.ue-woo-page .wc-block-components-sale-badge,
body.ue-woo-page .wc-block-components-product-sale-badge {
	background: var(--ue-accent) !important;
	color: var(--ue-on-accent) !important;
	border: 0 !important;
	border-radius: 5px;
}
body.ue-woo-page .wc-block-components-quantity-selector {
	border: 1px solid var(--ue-border) !important;
	border-radius: 30px !important;
	background: transparent;
	overflow: hidden;
}
body.ue-woo-page .wc-block-components-quantity-selector::after {
	display: none !important;
}
body.ue-woo-page .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input,
body.ue-woo-page .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	background: transparent !important;
	color: var(--ue-text) !important;
	border: 0 !important;
	box-shadow: none !important;
}
body.ue-woo-page .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover {
	color: var(--ue-accent) !important;
}
body.ue-woo-page .wc-block-components-totals-wrapper {
	border-top: 1px solid var(--ue-border) !important;
}
body.ue-woo-page .wc-block-components-totals-wrapper:first-child,
body.ue-woo-page .wc-block-components-sidebar .wc-block-components-totals-wrapper:first-of-type {
	border-top: 0 !important;
}
body.ue-woo-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.ue-woo-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 17px;
	font-weight: 500;
}
body.ue-woo-page .wc-block-components-panel__button,
body.ue-woo-page .wc-block-components-panel__button:hover {
	color: var(--ue-text) !important;
	background: transparent !important;
}
body.ue-woo-page .wc-block-cart__submit-button,
body.ue-woo-page .wc-block-components-checkout-place-order-button {
	width: 100%;
	min-height: 52px !important;
	font-size: 15px !important;
}
body.ue-woo-page .wc-block-components-checkout-step {
	border-color: var(--ue-border);
}
body.ue-woo-page .wc-block-components-checkout-step__container::after {
	border-color: var(--ue-border) !important;
}
body.ue-woo-page .wc-block-components-checkout-step__heading-content,
body.ue-woo-page .wc-block-checkout__login-prompt {
	color: var(--ue-accent);
}
body.ue-woo-page .wc-block-components-radio-control--highlight-checked,
body.ue-woo-page .wc-block-components-radio-control-accordion-option,
body.ue-woo-page .wc-block-checkout__shipping-method-option {
	border-color: var(--ue-border) !important;
	box-shadow: none !important;
	border-radius: 10px !important;
}
body.ue-woo-page .wc-block-components-radio-control--highlight-checked::after,
body.ue-woo-page
	.wc-block-components-radio-control--highlight-checked
	.wc-block-components-radio-control-accordion-option--checked-option-highlighted,
body.ue-woo-page
	.wc-block-components-radio-control--highlight-checked
	label.wc-block-components-radio-control__option--checked-option-highlighted,
body.ue-woo-page .wc-block-checkout__shipping-method-option--selected {
	background: var(--ue-panel) !important;
	border-color: var(--ue-accent) !important;
	box-shadow: inset 0 0 0 1px var(--ue-accent) !important;
	color: var(--ue-text) !important;
}
body.ue-woo-page .wc-block-components-radio-control__option,
body.ue-woo-page .wc-block-components-radio-control__label,
body.ue-woo-page .wc-block-components-radio-control__secondary-label {
	color: var(--ue-text);
}
body.ue-woo-page .wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
	background: var(--ue-accent) !important;
	color: var(--ue-on-accent) !important;
	border-color: var(--ue-panel) !important;
	box-shadow: none !important;
}
body.ue-woo-page .wc-block-gateway-container,
body.ue-woo-page .wc-block-gateway-container .wc-block-gateway-input {
	background: var(--ue-panel) !important;
	color: var(--ue-text) !important;
	border-color: var(--ue-border) !important;
}
body.ue-woo-page .wc-block-components-checkout-return-to-cart-button {
	color: var(--ue-muted) !important;
}
@media (max-width: 782px) {
	body.ue-woo-page .wc-block-cart .wc-block-cart__submit-container--sticky {
		background: var(--ue-background) !important;
		border-top: 1px solid var(--ue-border);
		/* Sit above the plugin's mobile app menu. */
		bottom: calc(66px + env(safe-area-inset-bottom));
	}
	body.ue-woo-page:not(.ues-mobile-app) .wc-block-cart .wc-block-cart__submit-container--sticky {
		bottom: 0;
	}
}

/* -------------------------------------------------------------------------
 * Phones and tablets
 * ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
	@supports selector(:has(*)) {
		body.ue-woo-page.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
			grid-template-columns: minmax(0, 1fr);
		}
		body.ue-woo-page.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation,
		body.ue-woo-page.woocommerce-account .woocommerce > .woocommerce-MyAccount-content {
			grid-column: 1;
			position: static;
		}
	}
	/* Account menu becomes a row of swipeable chips. */
	body.ue-woo-page .woocommerce-MyAccount-navigation {
		margin: 0 0 24px;
	}
	body.ue-woo-page .woocommerce-MyAccount-navigation ul {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		padding: 0 0 4px;
		background: transparent;
		border: 0;
		border-radius: 0;
		scrollbar-width: none;
		scroll-snap-type: x proximity;
	}
	body.ue-woo-page .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
		display: none;
	}
	body.ue-woo-page .woocommerce .woocommerce-MyAccount-navigation li a {
		white-space: nowrap;
		border: 1px solid var(--ue-border);
		border-radius: 30px;
		padding: 8px 14px;
		gap: 8px;
		font-size: 13px;
		scroll-snap-align: start;
	}
	body.ue-woo-page .woocommerce .woocommerce-MyAccount-navigation li.is-active a {
		border-color: var(--ue-accent);
	}
	body.ue-woo-page .woocommerce .woocommerce-MyAccount-navigation li a::before {
		width: 17px;
		height: 17px;
	}
	body.ue-woo-page .woocommerce-MyAccount-navigation-link--customer-logout {
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
	}
}

@media (max-width: 767px) {
	body.ue-woo-page .woocommerce h2 {
		font-size: 22px;
	}
	body.ue-woo-page .woocommerce form .form-row-first,
	body.ue-woo-page .woocommerce form .form-row-last {
		width: 100%;
		float: none;
	}
	body.ue-woo-page .woocommerce input.input-text,
	body.ue-woo-page .woocommerce textarea,
	body.ue-woo-page .woocommerce select,
	body.ue-woo-page .wc-block-components-text-input input {
		font-size: 16px; /* stops iOS zooming into the field */
	}
	body.ue-woo-page .cart-collaterals .cart_totals,
	body.ue-woo-page .woocommerce-checkout #order_review,
	body.ue-woo-page .woocommerce form.login,
	body.ue-woo-page .woocommerce form.register {
		padding: 18px;
	}

	/* WooCommerce turns basket and order tables into stacked cards on phones. */
	body.ue-woo-page .woocommerce table.shop_table_responsive tr,
	body.ue-woo-page .woocommerce-page table.shop_table_responsive tr {
		display: block;
		border-top: 1px solid var(--ue-border);
		padding: 8px 0;
	}
	body.ue-woo-page .woocommerce table.shop_table_responsive tbody tr:first-child {
		border-top: 0;
	}
	body.ue-woo-page .woocommerce table.shop_table_responsive tr td,
	body.ue-woo-page .woocommerce-page table.shop_table_responsive tr td {
		border-top: 0;
		padding: 8px 16px;
		background: transparent !important;
	}
	/* Keep the order number visible (WooCommerce hides row headings on phones). */
	body.ue-woo-page .woocommerce table.shop_table_responsive tbody th[data-title] {
		display: block;
		padding: 8px 16px;
		border: 0;
		text-align: right;
	}
	body.ue-woo-page .woocommerce table.shop_table_responsive tbody th[data-title]::before {
		content: attr(data-title) ': ';
		float: left;
		color: var(--ue-muted);
		font-weight: 400;
		font-size: 12px;
	}
	body.ue-woo-page .woocommerce table.shop_table_responsive tr td::before {
		color: var(--ue-muted);
		font-weight: 400;
		font-size: 12px;
	}
	body.ue-woo-page .woocommerce table.cart td.product-remove {
		display: flex !important;
		justify-content: flex-end;
		padding-bottom: 0 !important;
	}
	body.ue-woo-page .woocommerce table.cart td.product-thumbnail {
		display: flex !important;
		justify-content: center;
	}
	body.ue-woo-page .woocommerce table.cart td.product-thumbnail img {
		width: 110px;
		height: 110px;
	}
	body.ue-woo-page .woocommerce table.cart td.actions .coupon {
		flex-direction: column;
		align-items: stretch;
		padding-bottom: 14px;
		margin-bottom: 14px;
		border-bottom: 1px solid var(--ue-border);
	}
	body.ue-woo-page .woocommerce table.cart td.actions .coupon .input-text,
	body.ue-woo-page .woocommerce table.cart td.actions .button {
		width: 100% !important;
		float: none;
	}
	body.ue-woo-page .woocommerce ul.order_details li {
		border-right: 0;
		border-bottom: 1px solid var(--ue-border);
	}
	body.ue-woo-page .woocommerce-message .button,
	body.ue-woo-page .woocommerce-info .button {
		float: none;
		display: flex;
		width: 100%;
		margin: 12px 0 0;
	}
}
