/*
 * Resonate – WooCommerce styles
 *
 * Brings the shop, single product, cart, checkout and My Account pages in
 * line with the Pagelayer design used on the rest of resonateskills.com:
 * near-black background, Lexend type, white headings, grey body copy,
 * amber (#ffbd59) buttons and gold (#f6b900) accents on dark rounded cards.
 */

:root {
	--rs-bg: #0a0a0a;
	--rs-surface: #141414;
	--rs-surface-2: #1c1c1c;
	--rs-card: linear-gradient(135deg, #0c0c0c 0%, #1b1b1b 100%);
	--rs-border: rgba(204, 204, 204, 0.18);
	--rs-border-strong: rgba(204, 204, 204, 0.35);
	--rs-gold: var(--pagelayer-color-primary, #f6b900);
	--rs-amber: var(--pagelayer-color-secondary, #ffbd59);
	--rs-text: var(--pagelayer-color-text, #9fa0a4);
	--rs-heading: #ffffff;
	--rs-danger: #f26b6b;
	--rs-success: #1fb874;
	--rs-font: "Lexend", sans-serif;
	--rs-radius: 15px;
	--rs-radius-sm: 10px;
	--rs-container: 1170px;
}

/* ---------------------------------------------------------------------------
 * Page canvas
 * ------------------------------------------------------------------------ */

body.woocommerce,
body.woocommerce-page {
	background: var(--rs-bg);
	color: var(--rs-text);
	font-family: var(--rs-font);
	font-size: 16px;
	line-height: 1.6;
}

body.woocommerce p,
body.woocommerce-page p,
body.woocommerce li,
body.woocommerce-page li,
body.woocommerce td,
body.woocommerce-page td,
body.woocommerce label,
body.woocommerce-page label {
	font-family: var(--rs-font);
}

body.woocommerce h1, body.woocommerce-page h1,
body.woocommerce h2, body.woocommerce-page h2,
body.woocommerce h3, body.woocommerce-page h3,
body.woocommerce h4, body.woocommerce-page h4,
body.woocommerce h5, body.woocommerce-page h5,
body.woocommerce h6, body.woocommerce-page h6 {
	color: var(--rs-heading);
	font-family: var(--rs-font);
	letter-spacing: 0;
}

/*
 * The footer's dark tone is a 0.95 black overlay drawn over the page colour,
 * designed against a white page. Keep that base so the footer stays #252525.
 */
body.woocommerce .pagelayer-footer,
body.woocommerce-page .pagelayer-footer {
	background-color: #fff;
}

/* Keep Pagelayer header/footer exactly as designed. */
body.woocommerce .pagelayer-header h1, body.woocommerce-page .pagelayer-header h1,
body.woocommerce .pagelayer-footer h2, body.woocommerce-page .pagelayer-footer h2 {
	font-family: inherit;
}

body.woocommerce-page #primary.site-main,
body.woocommerce #primary.site-main {
	max-width: none;
	margin: 0 auto;
	padding: 40px 20px 80px;
	background: transparent;
	border: 0;
	box-shadow: none;
	float: none;
	width: auto;
}

body.woocommerce-page #primary.site-main a,
body.woocommerce #primary.site-main a {
	color: var(--rs-amber);
	text-decoration: none;
	transition: color 0.2s ease;
}

body.woocommerce-page #primary.site-main a:hover,
body.woocommerce #primary.site-main a:hover {
	color: var(--rs-gold);
}

/* Page-type templates (cart / checkout / my account) */
body.woocommerce-page .site-main article.page,
body.woocommerce-page .site-main .entry-content {
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
}

body.woocommerce-page .site-main .entry-header {
	margin-bottom: 30px;
	text-align: center;
}

body.woocommerce-page .site-main .entry-title {
	font-size: 45px;
	font-weight: 500;
	line-height: 1.2;
}

body.woocommerce-page .site-main .entry-footer,
body.woocommerce-page .site-main .edit-link {
	display: none;
}

/* ---------------------------------------------------------------------------
 * Breadcrumb, title, result count, sorting
 * ------------------------------------------------------------------------ */

.woocommerce .woocommerce-breadcrumb {
	color: var(--rs-text);
	font-size: 14px;
	margin: 0 0 30px;
}

.woocommerce .woocommerce-breadcrumb a {
	color: var(--rs-text) !important;
}

.woocommerce .woocommerce-breadcrumb a:hover {
	color: var(--rs-amber) !important;
}

.woocommerce-products-header {
	text-align: center;
	margin: 0 0 40px;
}

.woocommerce-products-header__title.page-title {
	display: inline-flex;
	align-items: center;
	gap: 22px;
	margin: 0;
	padding: 0;
	font-size: 45px;
	font-weight: 500;
	line-height: 1.2;
}

/* Gold rules either side of the title, like the section headings on Home. */
.woocommerce-products-header__title.page-title::before,
.woocommerce-products-header__title.page-title::after {
	content: "";
	width: 60px;
	height: 1px;
	background: var(--rs-gold);
}

.term-description,
.page-description {
	max-width: 760px;
	margin: 16px auto 0;
	color: var(--rs-text);
}

.woocommerce .woocommerce-result-count {
	color: var(--rs-text);
	font-size: 14px;
	margin: 0 0 30px;
	line-height: 44px;
}

.woocommerce .woocommerce-ordering {
	margin: 0 0 30px;
}

/* ---------------------------------------------------------------------------
 * Form controls
 * ------------------------------------------------------------------------ */

.woocommerce-page select,
.woocommerce-page input[type="text"],
.woocommerce-page input[type="email"],
.woocommerce-page input[type="tel"],
.woocommerce-page input[type="password"],
.woocommerce-page input[type="number"],
.woocommerce-page input[type="search"],
.woocommerce-page input[type="url"],
.woocommerce-page textarea,
.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce-page .select2-container .select2-selection,
.woocommerce .quantity .qty {
	background-color: var(--rs-surface);
	color: #fff;
	border: 1px solid var(--rs-border-strong);
	border-radius: var(--rs-radius-sm);
	font-family: var(--rs-font);
	font-size: 15px;
	padding: 10px 14px;
	min-height: 44px;
	box-shadow: none;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-page select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23ffbd59' stroke-width='1.6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}

.woocommerce-page select option {
	background: var(--rs-surface);
	color: #fff;
}

.woocommerce-page select:focus,
.woocommerce-page input:focus,
.woocommerce-page textarea:focus,
.woocommerce .quantity .qty:focus {
	border-color: var(--rs-amber);
	box-shadow: 0 0 0 3px rgba(255, 189, 89, 0.15);
}

.woocommerce-page ::placeholder {
	color: rgba(159, 160, 164, 0.7);
}

.woocommerce-page .select2-container .select2-selection--single {
	height: 44px;
	display: flex;
	align-items: center;
}

.woocommerce-page .select2-container .select2-selection__rendered {
	color: #fff;
	line-height: normal;
	padding: 0;
}

.woocommerce-page .select2-container .select2-selection__arrow {
	height: 42px;
}

.woocommerce-page .select2-dropdown {
	background: var(--rs-surface);
	border-color: var(--rs-border-strong);
	color: #fff;
}

.woocommerce-page .select2-container--default .select2-results__option--highlighted[aria-selected],
.woocommerce-page .select2-container--default .select2-results__option--highlighted[data-selected] {
	background: var(--rs-amber);
	color: #000;
}

.woocommerce form .form-row label,
.woocommerce-page .comment-form label {
	color: #fff;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	margin-bottom: 6px;
}

.woocommerce form .form-row .required {
	color: var(--rs-amber);
}

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

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input.button,
.woocommerce-page #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce-page .wc-block-components-button:not(.is-link),
.woocommerce-page .wp-block-button__link,
.woocommerce-page .wc-block-grid__product-add-to-cart .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--rs-amber);
	color: #000 !important;
	/* PopularFX sets "border: solid" (3px, currentColor) with higher specificity. */
	border: 1px solid var(--rs-amber) !important;
	border-radius: var(--rs-radius-sm);
	font-family: var(--rs-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.3;
	padding: 10px 22px;
	min-height: 44px;
	text-align: center;
	text-decoration: none;
	text-shadow: none;
	box-shadow: none;
	outline: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover,
.woocommerce-page input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce-page .wc-block-components-button:not(.is-link):hover,
.woocommerce-page .wp-block-button__link:hover {
	background: var(--rs-gold);
	border-color: var(--rs-gold) !important;
	color: #000 !important;
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(246, 185, 0, 0.18);
}

.woocommerce a.button:focus-visible,
.woocommerce button.button:focus-visible,
.woocommerce-page .wc-block-components-button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.woocommerce a.button.disabled,
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled],
.woocommerce button.button.alt.disabled,
.woocommerce button.button.alt:disabled {
	background: var(--rs-surface-2);
	border-color: var(--rs-border-strong) !important;
	color: var(--rs-text) !important;
	opacity: 1;
	transform: none;
	box-shadow: none;
}

/* "Added to cart" / loading state */
.woocommerce a.button.loading::after,
.woocommerce button.button.loading::after {
	top: auto;
	right: auto;
	position: static;
	margin-left: 4px;
}

.woocommerce a.added_to_cart {
	display: inline-block;
	margin-left: 10px;
	padding: 0;
	color: #fff !important;
	font-size: 14px;
	border-bottom: 1px solid var(--rs-amber);
}

/* ---------------------------------------------------------------------------
 * Product grid (shop / categories / related / upsells)
 * ------------------------------------------------------------------------ */

.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
	margin: 0 0 40px;
	padding: 0;
	clear: both;
}

.woocommerce ul.products.columns-1 { grid-template-columns: minmax(0, 1fr); }
.woocommerce ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.woocommerce ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.woocommerce ul.products.columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
	display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	float: none;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 14px 14px 20px;
	background: var(--rs-card);
	border: 1px solid var(--rs-border);
	border-radius: var(--rs-radius);
	text-align: left;
	transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
	border-color: var(--rs-gold);
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	color: inherit;
}

.woocommerce ul.products li.product a img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin: 0 0 18px;
	border-radius: var(--rs-radius-sm);
	background: var(--rs-surface-2);
	box-shadow: none;
}

/* WooCommerce placeholder image is light grey – turn it into a dark tile. */
.woocommerce img.woocommerce-placeholder,
.woocommerce-page img.woocommerce-placeholder,
.woocommerce div.product div.images img[src*="woocommerce-placeholder"],
.wc-block-components-product-image img[src*="woocommerce-placeholder"],
.wc-block-grid__product-image img[src*="woocommerce-placeholder"] {
	filter: invert(1) brightness(0.55) contrast(0.9);
	opacity: 0.6;
	background: #fff;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-category__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
	color: var(--rs-heading);
	font-family: var(--rs-font);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.35;
	padding: 0;
	margin: 0 0 10px;
	transition: color 0.2s ease;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
	color: var(--rs-amber);
}

.woocommerce ul.products li.product .woocommerce-loop-category__title .count {
	background: none;
	color: var(--rs-text);
}

.woocommerce ul.products li.product .price {
	display: block;
	color: var(--rs-amber);
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 16px;
}

.woocommerce ul.products li.product .price del {
	color: var(--rs-text);
	font-weight: 400;
	opacity: 0.8;
}

.woocommerce ul.products li.product .price ins {
	text-decoration: none;
}

.woocommerce ul.products li.product .star-rating {
	margin: 0 0 10px;
}

.woocommerce ul.products li.product .button {
	margin-top: auto;
	align-self: stretch;
}

/* Sale badge */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
	top: 22px;
	left: 22px;
	right: auto;
	margin: 0;
	min-width: 0;
	min-height: 0;
	padding: 4px 12px;
	background: var(--rs-gold);
	color: #000;
	border-radius: 999px;
	font-family: var(--rs-font);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.6;
	z-index: 2;
}

/* Star ratings */
.woocommerce .star-rating,
.woocommerce .star-rating span::before,
.woocommerce p.stars a,
.woocommerce p.stars a::before {
	color: var(--rs-gold);
}

.woocommerce .star-rating::before {
	color: rgba(246, 185, 0, 0.3);
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
	display: inline-flex;
	gap: 8px;
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	min-width: 42px;
	padding: 10px 14px;
	border: 1px solid var(--rs-border-strong);
	border-radius: var(--rs-radius-sm);
	background: transparent;
	color: #fff !important;
	font-size: 15px;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:focus,
.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--rs-amber);
	border-color: var(--rs-amber);
	color: #000 !important;
}

/* ---------------------------------------------------------------------------
 * Single product
 * ------------------------------------------------------------------------ */

.woocommerce div.product {
	margin-bottom: 0;
}

/*
 * Gallery and summary are floats. Normally the tabs below clear them, but
 * with reviews/description disabled there are no tabs, so contain the floats
 * here or the footer (white base layer) slides up behind them.
 */
.woocommerce div.product,
body.woocommerce #primary.site-main,
body.woocommerce-page #primary.site-main {
	display: flow-root;
}

body.woocommerce .pagelayer-footer,
body.woocommerce-page .pagelayer-footer {
	clear: both;
}

.woocommerce div.product div.images {
	margin-bottom: 40px;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce div.product div.images .woocommerce-product-gallery__image img,
.woocommerce div.product div.images .flex-viewport {
	border-radius: var(--rs-radius);
	overflow: hidden;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image,
.woocommerce div.product div.images .woocommerce-product-gallery__image--placeholder {
	border: 0;
	background: var(--rs-card);
	border-radius: var(--rs-radius);
	overflow: hidden;
}

.woocommerce div.product div.images .flex-control-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}

.woocommerce div.product div.images .flex-control-thumbs li {
	width: auto;
	flex: 0 0 calc(25% - 8px);
}

.woocommerce div.product div.images .flex-control-thumbs li img {
	border-radius: var(--rs-radius-sm);
	border: 1px solid var(--rs-border);
	opacity: 0.55;
}

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover {
	opacity: 1;
	border-color: var(--rs-gold);
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
	background: var(--rs-amber);
}

.woocommerce div.product div.summary {
	padding: 30px;
	background: var(--rs-card);
	border: 1px solid var(--rs-gold);
	border-radius: var(--rs-radius);
}

.woocommerce div.product .product_title {
	font-size: 38px;
	font-weight: 500;
	line-height: 1.2;
	margin: 0 0 16px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--rs-amber);
	font-size: 26px;
	font-weight: 600;
	margin: 0 0 20px;
}

.woocommerce div.product p.price:empty,
.woocommerce div.product span.price:empty {
	display: none;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
	color: var(--rs-text);
	font-size: 0.75em;
	font-weight: 400;
}

.woocommerce div.product p.price ins {
	text-decoration: none;
}

.woocommerce div.product .woocommerce-product-details__short-description {
	color: var(--rs-text);
	margin-bottom: 24px;
}

.woocommerce div.product .woocommerce-product-details__short-description ul {
	padding-left: 0;
	list-style: none;
}

.woocommerce div.product .woocommerce-product-details__short-description ul li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 8px;
}

.woocommerce div.product .woocommerce-product-details__short-description ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--rs-success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M4.5 8.2l2.3 2.3 4.7-4.8'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.woocommerce div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 24px;
	padding-bottom: 0;
	/* The parent theme draws a line under the form; nothing follows it now. */
	border-bottom: 0;
}

.woocommerce div.product form.cart::before,
.woocommerce div.product form.cart::after {
	display: none;
}

.woocommerce div.product form.cart div.quantity {
	float: none;
	margin: 0;
}

.woocommerce .quantity .qty {
	width: 80px;
	text-align: center;
	padding: 10px 6px;
}

.woocommerce div.product form.cart .button {
	float: none;
	flex: 1 1 auto;
}

.woocommerce div.product form.cart table.variations {
	width: 100%;
	margin-bottom: 10px;
}

.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td {
	color: #fff;
	padding: 6px 0;
	vertical-align: middle;
}

.woocommerce div.product form.cart .reset_variations {
	color: var(--rs-text) !important;
	font-size: 13px;
}

.woocommerce div.product .stock {
	color: var(--rs-success);
}

.woocommerce div.product .out-of-stock {
	color: var(--rs-danger);
}

.woocommerce div.product .product_meta {
	padding-top: 18px;
	border-top: 1px solid var(--rs-border);
	color: var(--rs-text);
	font-size: 14px;
}

.woocommerce div.product .product_meta > span {
	display: block;
	margin-bottom: 4px;
}

.woocommerce div.product .product_meta:empty,
.woocommerce div.product .product_meta:not(:has(*)) {
	display: none;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs {
	clear: both;
	padding-top: 20px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
	margin: 0 0 30px;
	border-bottom: 1px solid var(--rs-border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li,
.woocommerce div.product .woocommerce-tabs ul.tabs li:hover,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 12px 4px;
	margin-bottom: -1px;
	color: var(--rs-text) !important;
	font-size: 16px;
	font-weight: 400;
	border-bottom: 2px solid transparent;
	background: transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li + li a {
	margin-left: 22px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
	color: #fff !important;
	border-bottom-color: var(--rs-gold);
}

.woocommerce div.product .woocommerce-tabs .panel {
	margin: 0 0 40px;
	color: var(--rs-text);
}

.woocommerce div.product .woocommerce-tabs .panel > h2:first-child {
	font-size: 28px;
	font-weight: 400;
	margin-bottom: 16px;
}

.woocommerce table.shop_attributes {
	border-top: 1px solid var(--rs-border);
}

.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
	color: var(--rs-text);
	border-bottom: 1px solid var(--rs-border);
	padding: 12px;
	font-style: normal;
}

.woocommerce table.shop_attributes th {
	color: #fff;
	font-weight: 500;
}

.woocommerce table.shop_attributes tr:nth-child(even) td,
.woocommerce table.shop_attributes tr:nth-child(even) th {
	background: rgba(255, 255, 255, 0.02);
}

/* Reviews */
.woocommerce #reviews #comments h2,
.woocommerce #reviews .woocommerce-Reviews-title {
	font-size: 28px;
	font-weight: 400;
}

.woocommerce #reviews #comments ol.commentlist li .comment-text {
	border: 1px solid var(--rs-border);
	border-radius: var(--rs-radius-sm);
	background: var(--rs-surface);
	color: var(--rs-text);
}

.woocommerce #reviews #comments ol.commentlist li img.avatar {
	background: var(--rs-surface-2);
	border: 1px solid var(--rs-border);
	border-radius: 50%;
}

.woocommerce #review_form #respond {
	padding: 30px;
	background: var(--rs-card);
	border: 1px solid var(--rs-border);
	border-radius: var(--rs-radius);
}

.woocommerce #review_form #respond .comment-reply-title {
	display: block;
	color: #fff;
	font-size: 22px;
	font-weight: 500;
	margin-bottom: 14px;
}

.woocommerce #review_form #respond textarea {
	width: 100%;
	min-height: 120px;
}

.woocommerce #review_form #respond .form-submit input {
	margin-top: 6px;
}

/* Related / up-sells */
.woocommerce .related > h2,
.woocommerce .upsells > h2,
.woocommerce .cross-sells > h2 {
	font-size: 28px;
	font-weight: 400;
	margin: 20px 0 28px;
}

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

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments,
.woocommerce-page .wc-block-components-notice-banner {
	background: var(--rs-surface);
	color: #fff;
	border: 1px solid var(--rs-border-strong);
	border-left: 4px solid var(--rs-gold);
	border-radius: var(--rs-radius-sm);
	padding: 16px 20px 16px 52px;
	font-family: var(--rs-font);
	font-size: 15px;
	list-style: none;
}

.woocommerce-noreviews,
p.no-comments {
	padding-left: 20px;
	color: var(--rs-text);
}

/* WooCommerce focuses notices (tabindex="-1") for screen readers; they are not interactive. */
.woocommerce-message:focus,
.woocommerce-info:focus,
.woocommerce-error:focus,
.woocommerce-notices-wrapper:focus {
	outline: none;
}

.woocommerce-message { border-left-color: var(--rs-success); }
.woocommerce-error { border-left-color: var(--rs-danger); }

/*
 * WooCommerce draws these icons from its icon font, but the copy that loads on
 * this site lacks the glyphs (renders as an empty box). Use SVG masks instead.
 */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	content: "" !important;
	font-family: inherit !important;
	top: 18px !important;
	left: 20px !important;
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask: var(--rs-notice-icon) center / contain no-repeat;
	mask: var(--rs-notice-icon) center / contain no-repeat;
}

.woocommerce-info::before {
	color: var(--rs-gold);
	--rs-notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
}

.woocommerce-message::before {
	color: var(--rs-success);
	--rs-notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.4 14.6L6 12l1.4-1.4 3.2 3.2 6-6L18 9.2l-7.4 7.4z'/%3E%3C/svg%3E");
}

.woocommerce-error::before {
	color: var(--rs-danger);
	--rs-notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	float: right;
	margin: -6px 0 -6px 16px;
	padding: 6px 16px;
	min-height: 34px;
	font-size: 14px;
}

.woocommerce-page .wc-block-components-notice-banner {
	padding-left: 16px;
	align-items: center;
}

.woocommerce-page .wc-block-components-notice-banner > svg {
	background: var(--rs-gold);
	fill: #000;
}

.woocommerce-page .wc-block-components-notice-banner.is-success > svg { background: var(--rs-success); fill: #fff; }
.woocommerce-page .wc-block-components-notice-banner.is-error > svg { background: var(--rs-danger); fill: #fff; }

/* ---------------------------------------------------------------------------
 * Tables (classic cart, orders, order details)
 * ------------------------------------------------------------------------ */

.woocommerce table.shop_table {
	border: 1px solid var(--rs-border);
	border-radius: var(--rs-radius);
	border-collapse: separate;
	background: var(--rs-card);
	color: var(--rs-text);
	overflow: hidden;
}

/* PopularFX paints the header black and forces body rows white (!important). */
.woocommerce table.shop_table thead {
	background: transparent;
	color: #fff;
}

.woocommerce table.shop_table tbody tr,
.woocommerce table.shop_table tbody tr:nth-child(odd),
.woocommerce table.shop_table tbody tr:nth-child(even),
.woocommerce table.shop_table tbody tr:last-child,
.woocommerce table.shop_table tbody tr:last-child:hover,
.woocommerce .woocommerce-MyAccount-content table.shop_table tbody tr:last-child {
	background: transparent !important;
}

.woocommerce table.shop_table tbody tr:hover {
	background: rgba(255, 255, 255, 0.03) !important;
}

/* Rows also get a light-grey outline from the parent theme. */
.woocommerce table.shop_table tr {
	outline: none !important;
}

.woocommerce table.shop_table th {
	color: #fff;
	font-weight: 500;
	padding: 14px 16px;
}

.woocommerce table.shop_table thead th {
	border-bottom: 1px solid var(--rs-border-strong);
	font-size: 14px;
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table th,
.woocommerce table.shop_table tbody th,
.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th {
	border-color: var(--rs-border) !important;
}

.woocommerce table.shop_table td {
	color: var(--rs-text);
}

.woocommerce table.shop_table .product-quantity {
	color: var(--rs-text);
	font-weight: 400;
	text-decoration: none;
}

.woocommerce table.shop_table tfoot th {
	font-weight: 500;
}

.woocommerce table.shop_table tfoot tr:last-child td,
.woocommerce table.shop_table tfoot tr:last-child th {
	border-bottom: 0;
}

/* Order number link + status */
.woocommerce-orders-table__cell-order-number a {
	font-weight: 600;
}

.woocommerce-orders-table__cell-order-status {
	color: #fff !important;
}

/* Secondary order actions (Cancel) – quieter than the primary button */
.woocommerce-account a.button.cancel,
.woocommerce-account .order-actions-button.cancel {
	background: transparent !important;
	border-color: var(--rs-border-strong) !important;
	color: var(--rs-text) !important;
}

.woocommerce-account a.button.cancel:hover {
	border-color: var(--rs-danger) !important;
	color: var(--rs-danger) !important;
	box-shadow: none;
}

.woocommerce-account a.button.pay {
	background: var(--rs-amber) !important;
	color: #000 !important;
}

.woocommerce-orders-table__cell-order-actions a.button + a.button {
	margin-top: 8px;
}

.woocommerce table.shop_table td {
	border-top: 1px solid var(--rs-border);
	padding: 14px 16px;
}

.woocommerce table.shop_table tbody th,
.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th {
	border-top: 1px solid var(--rs-border);
}

.woocommerce table.shop_table .product-name a {
	color: #fff !important;
}

.woocommerce table.shop_table img {
	width: 64px;
	border-radius: 8px;
}

.woocommerce a.remove {
	color: var(--rs-danger) !important;
	border: 1px solid rgba(242, 107, 107, 0.4);
}

.woocommerce a.remove:hover {
	background: var(--rs-danger);
	color: #fff !important;
}

.woocommerce .cart-collaterals .cart_totals h2,
.woocommerce-checkout h3,
.woocommerce .woocommerce-order-details__title,
.woocommerce .woocommerce-column__title {
	font-size: 24px;
	font-weight: 500;
	margin-bottom: 16px;
}

.woocommerce table.shop_table .order-total .amount,
.woocommerce .cart_totals .order-total .amount {
	color: var(--rs-amber);
	font-size: 20px;
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
	width: 180px;
	margin-right: 8px;
}

/* Classic checkout */
.woocommerce-checkout #payment {
	background: var(--rs-card);
	border: 1px solid var(--rs-border);
	border-radius: var(--rs-radius);
}

.woocommerce-checkout #payment ul.payment_methods {
	border-bottom-color: var(--rs-border);
}

.woocommerce-checkout #payment ul.payment_methods li {
	color: #fff;
}

.woocommerce-checkout #payment div.payment_box {
	background: var(--rs-surface-2);
	color: var(--rs-text);
	border-radius: var(--rs-radius-sm);
}

.woocommerce-checkout #payment div.payment_box::before {
	border-bottom-color: var(--rs-surface-2);
}

.woocommerce-checkout #payment div.form-row {
	padding: 1em;
}

.woocommerce-checkout #order_review_heading {
	margin-top: 10px;
}

.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.lost_reset_password {
	background: var(--rs-card);
	border: 1px solid var(--rs-border);
	border-radius: var(--rs-radius);
	padding: 28px;
	color: var(--rs-text);
}

/* Order received */
.woocommerce ul.order_details {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	padding: 20px;
	border: 1px solid var(--rs-gold);
	border-radius: var(--rs-radius);
	background: var(--rs-card);
}

.woocommerce ul.order_details li {
	color: var(--rs-text);
	border-right-color: var(--rs-border);
	font-size: 13px;
}

.woocommerce ul.order_details li strong {
	color: #fff;
	font-size: 16px;
	margin-top: 4px;
}

.woocommerce .woocommerce-customer-details address {
	border: 1px solid var(--rs-border);
	border-radius: var(--rs-radius-sm);
	background: var(--rs-surface);
	color: var(--rs-text);
	padding: 18px;
}

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

.woocommerce-account .woocommerce {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	align-items: flex-start;
	margin: 0;
	border: 0;
	box-shadow: none;
}

.woocommerce-account .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-account .woocommerce > .woocommerce-message,
.woocommerce-account .woocommerce > .woocommerce-info,
.woocommerce-account .woocommerce > .woocommerce-error,
.woocommerce-account .woocommerce > .u-columns,
.woocommerce-account .woocommerce > h2,
.woocommerce-account .woocommerce > form {
	flex: 1 1 100%;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	float: none;
	flex: 0 0 260px;
	width: auto;
	padding: 12px;
	background: var(--rs-card);
	border: 1px solid var(--rs-border);
	border-radius: var(--rs-radius);
}

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

.woocommerce-account .woocommerce-MyAccount-navigation ul li,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link.is-active {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	display: block;
	padding: 11px 16px;
	border-radius: var(--rs-radius-sm);
	color: var(--rs-text) !important;
	background: transparent;
	font-size: 15px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:not(.is-active) a:hover {
	color: #fff !important;
	background: rgba(255, 255, 255, 0.05);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
	color: #000 !important;
	background: var(--rs-amber);
}

.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	padding: 30px;
	background: var(--rs-card);
	border: 1px solid var(--rs-border);
	border-radius: var(--rs-radius);
	color: var(--rs-text);
}

.woocommerce-account .woocommerce-MyAccount-content strong {
	color: #fff;
	font-weight: 500;
}

.woocommerce-account .woocommerce-MyAccount-content fieldset {
	margin-top: 24px;
	padding: 20px;
	border: 1px solid var(--rs-border);
	border-radius: var(--rs-radius-sm);
}

.woocommerce-account .woocommerce-MyAccount-content legend {
	padding: 0 8px;
	color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title h3 {
	font-size: 22px;
	font-weight: 500;
}

.woocommerce-account .woocommerce-MyAccount-content address {
	color: var(--rs-text);
	font-style: normal;
	padding: 16px;
	border: 1px solid var(--rs-border);
	border-radius: var(--rs-radius-sm);
	background: var(--rs-surface);
	box-shadow: none;
}

/* "View Courses" (orders) – grid of purchased courses */
.woocommerce-account .resonate-course-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-account .resonate-course-grid .resonate-course-card {
	margin: 0;
	padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-content a.resonate-course-card__link {
	display: flex;
	flex-direction: column;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--rs-surface);
	border: 1px solid var(--rs-border);
	border-radius: var(--rs-radius);
	color: var(--rs-text);
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-content a.resonate-course-card__link:hover,
.woocommerce-account .woocommerce-MyAccount-content a.resonate-course-card__link:focus-visible {
	color: var(--rs-text);
	border-color: var(--rs-amber);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
	transform: translateY(-3px);
	outline: none;
}

.woocommerce-account .resonate-course-card__media {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	background: var(--rs-surface-2);
}

.woocommerce-account .resonate-course-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	margin: 0;
}

.woocommerce-account .resonate-course-card__status {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(10, 10, 10, 0.8);
	border: 1px solid var(--rs-border-strong);
	color: #fff;
	font-size: 12px;
	line-height: 1.4;
}

.woocommerce-account .resonate-course-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px 16px;
	border-top: 1px solid var(--rs-border);
}

.woocommerce-account .resonate-course-card__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
}

.woocommerce-account .resonate-course-card__meta {
	color: var(--rs-text);
	font-size: 13px;
}

.woocommerce-account .resonate-course-material {
	margin: 28px 0 0;
}

/* On the order page it sits above the order details. */
.woocommerce-view-order .woocommerce-MyAccount-content .resonate-course-material {
	margin: 0 0 28px;
}

@media (prefers-reduced-motion: reduce) {
	.woocommerce-account .woocommerce-MyAccount-content a.resonate-course-card__link {
		transition: none;
	}

	.woocommerce-account .woocommerce-MyAccount-content a.resonate-course-card__link:hover {
		transform: none;
	}
}

@media (max-width: 500px) {
	.woocommerce-account .resonate-course-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.woocommerce-account .resonate-course-material .button {
		width: 100%;
	}
}

/* Logged-out account page: login + register side by side */
.woocommerce-account .u-columns.col2-set {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px;
}

.woocommerce-account .u-columns.col2-set::before,
.woocommerce-account .u-columns.col2-set::after {
	display: none;
}

.woocommerce-account .u-columns.col2-set .u-column1,
.woocommerce-account .u-columns.col2-set .u-column2 {
	float: none;
	width: auto;
}

/* ---------------------------------------------------------------------------
 * Block-based Cart & Checkout
 * ------------------------------------------------------------------------ */

.woocommerce-page .wp-block-woocommerce-cart,
.woocommerce-page .wp-block-woocommerce-checkout,
.woocommerce-page .wc-block-components-sidebar-layout {
	color: var(--rs-text);
	font-family: var(--rs-font);
}

.woocommerce-page .wc-block-components-title,
.woocommerce-page .wc-block-components-checkout-step__title,
.woocommerce-page .wc-block-cart__totals-title,
.woocommerce-page .wc-block-components-product-name,
.woocommerce-page .wc-block-components-totals-item__label,
.woocommerce-page .wc-block-components-order-summary-item__description .wc-block-components-product-name {
	color: #fff !important;
	font-family: var(--rs-font);
}

.woocommerce-page .wc-block-components-product-name:hover {
	color: var(--rs-amber) !important;
}

.woocommerce-page .wc-block-components-checkout-step__description,
.woocommerce-page .wc-block-components-product-metadata,
.woocommerce-page .wc-block-components-checkout-step__heading-content,
.woocommerce-page .wc-block-components-totals-item__description {
	color: var(--rs-text);
}

.woocommerce-page .wc-block-components-sidebar,
.woocommerce-page .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__content,
.woocommerce-page .wp-block-woocommerce-checkout-order-summary-block,
.woocommerce-page .wp-block-woocommerce-cart-order-summary-block {
	background: var(--rs-card);
	border: 1px solid var(--rs-border);
	border-radius: var(--rs-radius);
	padding: 20px;
}

.woocommerce-page .wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block,
.woocommerce-page .wc-block-components-sidebar .wp-block-woocommerce-cart-order-summary-block {
	border: 0;
	padding: 0;
	background: transparent;
}

.woocommerce-page .wc-block-components-totals-wrapper,
.woocommerce-page .wc-block-components-panel,
.woocommerce-page .wc-block-cart-items,
.woocommerce-page .wc-block-cart-items td,
.woocommerce-page .wc-block-cart-items th,
.woocommerce-page .wc-block-checkout__actions,
.woocommerce-page .wc-block-components-order-summary-item,
.woocommerce-page .wc-block-components-checkout-step,
.woocommerce-page .wc-block-components-radio-control-accordion-option,
.woocommerce-page .wc-block-components-radio-control__option {
	border-color: var(--rs-border) !important;
}

.woocommerce-page .wc-block-cart-items th,
.woocommerce-page .wc-block-cart-items__header {
	color: #fff;
	font-weight: 500;
}

.woocommerce-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.woocommerce-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.woocommerce-page .wc-block-components-product-price__value,
.woocommerce-page .wc-block-formatted-money-amount {
	color: var(--rs-amber);
}

.woocommerce-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	color: #fff;
}

.woocommerce-page .wc-block-components-product-badge {
	border-color: var(--rs-gold);
	color: var(--rs-gold);
	border-radius: 999px;
}

.woocommerce-page .wc-block-components-text-input input,
.woocommerce-page .wc-block-components-text-input input[type],
.woocommerce-page .wc-block-components-textarea,
.woocommerce-page .wc-blocks-components-select .wc-blocks-components-select__select,
.woocommerce-page .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.woocommerce-page .wc-block-components-form .wc-block-components-text-input input {
	background-color: var(--rs-surface) !important;
	color: #fff !important;
	border: 1px solid var(--rs-border-strong) !important;
	border-radius: var(--rs-radius-sm) !important;
	font-family: var(--rs-font);
}

.woocommerce-page .wc-block-components-text-input input:focus,
.woocommerce-page .wc-blocks-components-select .wc-blocks-components-select__select:focus {
	border-color: var(--rs-amber) !important;
	box-shadow: 0 0 0 3px rgba(255, 189, 89, 0.15) !important;
}

.woocommerce-page .wc-block-components-text-input label,
.woocommerce-page .wc-blocks-components-select .wc-blocks-components-select__label,
.woocommerce-page .wc-block-components-combobox .wc-block-components-combobox-control label {
	color: var(--rs-text) !important;
}

.woocommerce-page .wc-blocks-components-select .wc-blocks-components-select__expand {
	fill: var(--rs-amber);
}

.woocommerce-page .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"],
.woocommerce-page .wc-block-components-radio-control__input {
	background: var(--rs-surface);
	border-color: var(--rs-border-strong);
}

.woocommerce-page .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
	background: var(--rs-amber);
	border-color: var(--rs-amber);
}

.woocommerce-page .wc-block-components-checkbox .wc-block-components-checkbox__mark {
	fill: #000;
}

.woocommerce-page .wc-block-components-radio-control__input:checked::before {
	background: var(--rs-amber);
}

.woocommerce-page .wc-block-components-radio-control__label,
.woocommerce-page .wc-block-components-checkbox__label {
	color: #fff;
}

.woocommerce-page .wc-block-components-quantity-selector {
	border-color: var(--rs-border-strong);
	border-radius: var(--rs-radius-sm);
	background: var(--rs-surface);
}

.woocommerce-page .wc-block-components-quantity-selector::after {
	border-color: var(--rs-border-strong) !important;
}

.woocommerce-page .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input,
.woocommerce-page .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	color: #fff;
	background: transparent;
}

.woocommerce-page .wc-block-cart-item__remove-link,
.woocommerce-page .wc-block-components-button.is-link {
	color: var(--rs-text) !important;
}

.woocommerce-page .wc-block-cart-item__remove-link:hover {
	color: var(--rs-danger) !important;
}

.woocommerce-page .wc-block-components-panel__button,
.woocommerce-page .wc-block-components-totals-coupon__button,
.woocommerce-page .wc-block-components-checkout-return-to-cart-button {
	color: #fff !important;
}

.woocommerce-page .wc-block-components-checkout-return-to-cart-button svg {
	fill: currentColor;
}

.woocommerce-page .wc-block-components-checkout-place-order-button,
.woocommerce-page .wc-block-cart__submit-button {
	width: 100%;
	min-height: 52px;
	font-size: 17px;
}

/* Disabled until the terms box is ticked (assets/js/checkout-terms.js). */
.woocommerce-page .wc-block-components-checkout-place-order-button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.woocommerce-page .wc-block-checkout__terms .wc-block-components-checkbox__label {
	color: var(--rs-text);
	line-height: 1.5;
}

.woocommerce-page .wc-block-checkout__terms a {
	color: var(--rs-amber);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.woocommerce-page .wc-block-checkout__terms a:hover {
	color: var(--rs-gold);
}

/* Empty cart block */
.woocommerce-page .wp-block-woocommerce-empty-cart-block {
	text-align: center;
}

.woocommerce-page .wc-block-cart__empty-cart__title,
.woocommerce-page .wp-block-woocommerce-empty-cart-block > h2 {
	font-size: 32px;
	font-weight: 500;
	color: #fff;
}

.woocommerce-page .wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
	background-color: var(--rs-amber);
	width: 6em;
	height: 6em;
	opacity: 0.9;
}

.woocommerce-page .wp-block-woocommerce-empty-cart-block .wp-block-separator {
	color: var(--rs-gold);
	border-color: var(--rs-gold);
}

.woocommerce-page .wp-block-woocommerce-empty-cart-block .wp-block-separator.is-style-dots::before {
	color: var(--rs-gold);
}

.woocommerce-page .wp-block-woocommerce-empty-cart-block a:not(.wp-block-button__link):not(.wc-block-components-product-button__button) {
	display: inline-block;
	padding: 10px 22px;
	border: 1px solid var(--rs-amber);
	border-radius: var(--rs-radius-sm);
	color: #fff !important;
}

/* Product grid blocks (e.g. "New in store" on the empty cart) */
.woocommerce-page .wc-block-grid__products,
.woocommerce-page .wc-block-product-template {
	gap: 28px;
}

.woocommerce-page .wc-block-grid__product,
.woocommerce-page .wc-block-product-template > li,
.woocommerce-page .wc-block-product {
	padding: 14px 14px 20px;
	background: var(--rs-card);
	border: 1px solid var(--rs-border) !important;
	border-radius: var(--rs-radius);
	transition: border-color 0.25s ease, transform 0.25s ease;
}

.woocommerce-page .wc-block-grid__product:hover,
.woocommerce-page .wc-block-product-template > li:hover {
	border-color: var(--rs-gold) !important;
	transform: translateY(-4px);
}

.woocommerce-page .wc-block-grid__product-image img,
.woocommerce-page .wc-block-components-product-image img {
	border-radius: var(--rs-radius-sm);
}

.woocommerce-page .wc-block-grid__product-title,
.woocommerce-page .wp-block-post-title a,
.woocommerce-page .wc-block-product .wp-block-post-title {
	color: #fff !important;
	font-family: var(--rs-font);
	font-size: 17px;
	font-weight: 500;
}

.woocommerce-page .wc-block-grid__product-price,
.woocommerce-page .wc-block-components-product-price {
	color: var(--rs-amber);
}

/* ---------------------------------------------------------------------------
 * Coming soon admin bar banner (only visible to logged in admins)
 * ------------------------------------------------------------------------ */

.woocommerce-page .woocommerce-coming-soon-banner,
.woocommerce .woocommerce-coming-soon-banner {
	background: var(--rs-surface-2);
	color: var(--rs-text);
	border-top: 1px solid var(--rs-border);
}

/* ---------------------------------------------------------------------------
 * Store "coming soon" page (logged-out visitors while the store isn't live)
 * ------------------------------------------------------------------------ */

.wp-block-woocommerce-coming-soon.woocommerce-coming-soon-store-only {
	background: transparent !important;
	color: var(--rs-text);
	font-family: var(--rs-font);
	padding: 40px 20px 80px;
}

.wp-block-woocommerce-coming-soon.woocommerce-coming-soon-store-only h1,
.wp-block-woocommerce-coming-soon.woocommerce-coming-soon-store-only h2 {
	color: var(--rs-heading) !important;
	font-family: var(--rs-font) !important;
	font-size: 45px !important;
	font-weight: 500 !important;
	line-height: 1.2;
	letter-spacing: 0 !important;
}

.wp-block-woocommerce-coming-soon.woocommerce-coming-soon-store-only p {
	color: var(--rs-text) !important;
	font-family: var(--rs-font) !important;
	font-size: 17px !important;
}

/* ---------------------------------------------------------------------------
 * Social login (Loginizer Pro) on the My Account login / register forms
 * ------------------------------------------------------------------------ */

.woocommerce-account #lz-social-login-btns {
	max-width: none;
	width: 100%;
	padding: 0;
	margin: 0 0 6px;
	font-family: var(--rs-font);
}

/* Only Google here; Loginizer's other providers stay on wp-login.php. */
.woocommerce-account #lz-social-login-btns .loginizer-social-button:not([onclick*="'Google'"]) {
	display: none !important;
}

.woocommerce-account #lz-social-login-btns .loginizer-social-button {
	position: relative;
	justify-content: center;
	width: 100%;
	max-width: none;
	min-height: 48px;
	margin: 0;
	padding: 0 20px;
	background: #fff !important;
	color: #1f1f1f !important;
	border: 1px solid #fff !important;
	border-radius: var(--rs-radius-sm);
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-account #lz-social-login-btns .loginizer-social-button:hover {
	background: #f1f1f1 !important;
	box-shadow: 0 0 0 3px rgba(255, 189, 89, 0.35);
}

.woocommerce-account #lz-social-login-btns .loginizer-social-btn-logo {
	padding: 0;
}

.woocommerce-account #lz-social-login-btns .loginizer-social-button img {
	width: 20px;
	height: 20px;
}

.woocommerce-account #lz-social-login-btns .loginizer-social-btn-text {
	margin-left: 12px;
	padding: 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
}

.woocommerce-account #lz-social-login-btns .loginizer-social-btn-text strong {
	font-weight: 600;
}

.woocommerce-account #lz-social-login-btns br {
	display: none;
}

.woocommerce-account #lz-social-login-btns .loginizer-social-divider {
	display: flex;
	flex: 1 0 100%;
	align-items: center;
	gap: 14px;
	margin: 22px 0 4px;
	color: var(--rs-text);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.woocommerce-account #lz-social-login-btns .loginizer-social-divider::before,
.woocommerce-account #lz-social-login-btns .loginizer-social-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	margin: 0;
	padding: 0;
	background: var(--rs-border-strong);
}

/* Register form: terms checkbox, and buttons disabled until it's ticked. */
.woocommerce-account .resonate-register-terms label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--rs-text);
	line-height: 1.5;
	cursor: pointer;
}

.woocommerce-account .resonate-register-terms input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--rs-amber);
}

.woocommerce-account .resonate-register-terms a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* The Google button's own checkbox, under it in Loginizer's flex row. */
.woocommerce-account #lz-social-login-btns .resonate-register-terms {
	flex: 1 0 100%;
	margin: 14px 0 0;
	padding: 0;
	text-align: left;
}

/* Clicked a locked button before ticking its box. */
.woocommerce-account .resonate-register-terms.is-highlighted label {
	animation: resonate-terms-flash 1.6s ease;
	border-radius: var(--rs-radius-sm);
}

@keyframes resonate-terms-flash {
	0%, 60% {
		color: #fff;
		box-shadow: 0 0 0 6px rgba(255, 189, 89, 0.25);
		background: rgba(255, 189, 89, 0.12);
	}
	100% {
		box-shadow: 0 0 0 6px rgba(255, 189, 89, 0);
		background: transparent;
	}
}

@media (prefers-reduced-motion: reduce) {
	.woocommerce-account .resonate-register-terms.is-highlighted label {
		animation: none;
		color: #fff;
	}
}

.woocommerce-account .woocommerce-form-register button[name="register"]:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.woocommerce-account #lz-social-login-btns .loginizer-social-button[aria-disabled="true"] {
	opacity: 0.45;
	cursor: not-allowed;
	box-shadow: none;
}

/*
 * Wrapper the script puts around each button. While locked it takes the
 * pointer (a disabled button gets no hover) and shows why on hover.
 */
.woocommerce-account .resonate-terms-gate {
	position: relative;
	display: inline-block;
}

.woocommerce-account #lz-social-login-btns .resonate-terms-gate {
	display: block;
	flex: 1 0 100%;
}

.woocommerce-account .resonate-terms-gate.is-locked {
	cursor: not-allowed;
}

.woocommerce-account .resonate-terms-gate.is-locked > * {
	pointer-events: none;
}

.woocommerce-account .resonate-terms-gate.is-locked::after {
	content: attr(data-tip);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	z-index: 5;
	width: max-content;
	max-width: min(300px, 80vw);
	padding: 8px 12px;
	border: 1px solid var(--rs-border-strong);
	border-radius: var(--rs-radius-sm);
	background: var(--rs-surface-2);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
	color: #fff;
	font-family: var(--rs-font);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	text-align: center;
	white-space: normal;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	pointer-events: none;
}

/*
 * The Register button sits at the left edge with its checkbox just above:
 * show its tip below, anchored left, so it doesn't cover the checkbox.
 */
.woocommerce-account .woocommerce-form-register > p .resonate-terms-gate.is-locked::after {
	left: 0;
	top: calc(100% + 10px);
	bottom: auto;
	transform: translate(0, -4px);
}

.woocommerce-account .resonate-terms-gate.is-locked:hover::after {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.woocommerce-account .woocommerce-form-register > p .resonate-terms-gate.is-locked:hover::after {
	transform: translate(0, 0);
}

/* ---------------------------------------------------------------------------
 * Responsive – same breakpoints as Pagelayer (768px / 500px)
 * ------------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products,
	.woocommerce ul.products[class*="columns-"] {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	body.woocommerce-page #primary.site-main,
	body.woocommerce #primary.site-main {
		padding: 30px 16px 60px;
	}

	.woocommerce-products-header__title.page-title,
	body.woocommerce-page .site-main .entry-title {
		font-size: 34px;
	}

	.woocommerce-products-header__title.page-title::before,
	.woocommerce-products-header__title.page-title::after {
		width: 36px;
	}

	.woocommerce ul.products,
	.woocommerce-page ul.products,
	.woocommerce ul.products[class*="columns-"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}

	.woocommerce .woocommerce-result-count,
	.woocommerce .woocommerce-ordering {
		float: none;
		text-align: center;
		margin-bottom: 16px;
		line-height: 1.5;
	}

	.woocommerce .woocommerce-ordering select {
		width: 100%;
	}

	.woocommerce div.product div.images,
	.woocommerce div.product div.summary {
		float: none;
		width: 100%;
	}

	.woocommerce div.product div.summary {
		padding: 22px;
	}

	.woocommerce div.product .product_title {
		font-size: 30px;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation,
	.woocommerce-account .woocommerce-MyAccount-content {
		flex: 1 1 100%;
	}

	.woocommerce-account .woocommerce-MyAccount-content {
		padding: 22px;
	}

	.woocommerce-account .u-columns.col2-set {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce table.shop_table_responsive tr td,
	.woocommerce-page table.shop_table_responsive tr td {
		background: transparent !important;
	}
}

@media (max-width: 500px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products,
	.woocommerce ul.products[class*="columns-"] {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce ul.products li.product a img {
		aspect-ratio: 16 / 10;
	}

	.woocommerce-products-header__title.page-title,
	body.woocommerce-page .site-main .entry-title {
		font-size: 28px;
	}

	.woocommerce-products-header__title.page-title::before,
	.woocommerce-products-header__title.page-title::after {
		display: none;
	}

	.woocommerce div.product .product_title {
		font-size: 26px;
	}

	.woocommerce-message .button,
	.woocommerce-info .button,
	.woocommerce-error .button {
		float: none;
		display: flex;
		margin: 12px 0 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.woocommerce ul.products li.product,
	.woocommerce-page .wc-block-grid__product,
	.woocommerce a.button,
	.woocommerce button.button {
		transition: none;
	}

	.woocommerce ul.products li.product:hover,
	.woocommerce a.button:hover,
	.woocommerce button.button:hover {
		transform: none;
	}
}
