/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

:root {
    --cxe-space-xs: 8px;
    --cxe-space-s: 12px;
    --cxe-space-m: 20px;
    --cxe-space-l: 32px;
    --cxe-space-xl: 48px;
    --cxe-space-2xl: 64px;
}

/* CXE product brand above title */
.cxe-product-brand {
    margin-bottom: var(--cxe-space-xs);
    color: var(--theme-palette-color-3);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cxe-product-brand a {
    color: inherit;
    text-decoration: none;
}

.cxe-product-brand a:hover {
    color: var(--theme-palette-color-1);
    text-decoration: underline;
}

/**
 * CXE — Product gallery thumbnail rail
 */

.single-product .ct-product-gallery-container .flexy-pills {
	width: 100%;
	max-width: 100%;

	overflow: hidden;
}

.single-product .ct-product-gallery-container .flexy-pills > ol,
.single-product .ct-product-gallery-container .flexy-pills > ul {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;

	gap: 10px !important;

	width: 100% !important;
	max-width: 100% !important;

	margin: 10px 0 0 !important;
	padding: 0 !important;

	overflow-x: auto !important;
	overflow-y: hidden !important;

	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;

	list-style: none !important;

	scrollbar-width: none;
}

.single-product .ct-product-gallery-container .flexy-pills > ol::-webkit-scrollbar,
.single-product .ct-product-gallery-container .flexy-pills > ul::-webkit-scrollbar {
	display: none;
}

/* Desktop thumbnails */
.single-product .ct-product-gallery-container .flexy-pills > ol > li,
.single-product .ct-product-gallery-container .flexy-pills > ul > li {
	flex: 0 0 72px !important;

	width: 72px !important;
	min-width: 72px !important;
	max-width: 72px !important;

	margin: 0 !important;
}

/* Thumbnail images */
.single-product .ct-product-gallery-container .flexy-pills img {
	display: block;

	width: 100% !important;
	height: auto !important;

	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* Mobile */
@media (max-width: 689.98px) {

	.single-product .ct-product-gallery-container .flexy-pills > ol,
	.single-product .ct-product-gallery-container .flexy-pills > ul {
		gap: 8px !important;
	}

	.single-product .ct-product-gallery-container .flexy-pills > ol > li,
	.single-product .ct-product-gallery-container .flexy-pills > ul > li {
		flex-basis: 64px !important;

		width: 64px !important;
		min-width: 64px !important;
		max-width: 64px !important;
	}
}

/* CXE — Normalize the gap before Product Tabs on tablet and mobile. */
@media (max-width: 999px) {
    .single-product div.product .woocommerce-tabs {
        margin-top: var(--cxe-space-l);
    }
}

/* CXE — Keep long product descriptions readable on desktop. */
@media (min-width: 1000px) {
    .single-product .woocommerce-Tabs-panel--description {
        max-width: 900px;
        margin-inline: auto;
    }
}

/* =========================================================
   CXE — Frosted navigation surfaces
   ========================================================= */

/* Mobile and tablet off-canvas */
@media (max-width: 999px) {

    #offcanvas .ct-panel-inner {
        background: rgba(248, 243, 245, 0.96) !important;
        border-left: 1px solid rgba(255, 255, 255, 0.72);
        box-shadow: -18px 0 48px rgba(23, 38, 56, 0.18);
    }

    @supports ((-webkit-backdrop-filter: blur(1px)) or
              (backdrop-filter: blur(1px))) {

        #offcanvas .ct-panel-inner {
            background: rgba(248, 243, 245, 0.72) !important;
            -webkit-backdrop-filter: blur(22px) saturate(145%);
            backdrop-filter: blur(22px) saturate(145%);
        }
    }

    #offcanvas .mobile-menu .ct-menu-link {
        color: #172638 !important;
    }

    #offcanvas .mobile-menu li:hover > .ct-menu-link,
    #offcanvas .mobile-menu li.current-menu-item > .ct-menu-link,
    #offcanvas .mobile-menu li.current-menu-ancestor
        > .ct-sub-menu-parent
        > .ct-menu-link {
        color: #8c4a5e !important;
    }

    #offcanvas .ct-toggle-dropdown-mobile,
    #offcanvas .ct-toggle-close {
        color: #172638 !important;
        --theme-icon-color: #172638;
    }
}

/* Desktop dropdown and flyout menus */
@media (min-width: 1000px) {

    .ct-header [data-id="menu"] .sub-menu {
        background: rgba(248, 243, 245, 0.96) !important;
        border: 1px solid rgba(255, 255, 255, 0.78);
        border-radius: 14px;
        box-shadow: 0 18px 45px rgba(23, 38, 56, 0.16);
    }

    @supports ((-webkit-backdrop-filter: blur(1px)) or
              (backdrop-filter: blur(1px))) {

        .ct-header [data-id="menu"] .sub-menu {
            background: rgba(248, 243, 245, 0.80) !important;
            -webkit-backdrop-filter: blur(18px) saturate(145%);
            backdrop-filter: blur(18px) saturate(145%);
        }
    }

    .ct-header [data-id="menu"] .sub-menu .ct-menu-link,
    .ct-header [data-id="menu"] .sub-menu
        .ct-toggle-dropdown-desktop {
        color: #172638 !important;
    }

    .ct-header [data-id="menu"] .sub-menu li:hover
        > .ct-menu-link,
    .ct-header [data-id="menu"] .sub-menu li.current-menu-item
        > .ct-menu-link {
        color: #8c4a5e !important;
    }
}

/* CXE — Keep all mobile dropdown arrows visible */
@media (max-width: 999px) {

    #offcanvas .ct-toggle-dropdown-mobile,
    #offcanvas .ct-toggle-dropdown-mobile[aria-expanded="true"],
    #offcanvas .ct-toggle-dropdown-mobile[aria-expanded="false"] {
        color: #172638 !important;
        --theme-icon-color: #172638 !important;
        opacity: 1 !important;
    }

    #offcanvas .ct-toggle-dropdown-mobile .ct-icon,
    #offcanvas .ct-toggle-dropdown-mobile .ct-icon path {
        color: #172638 !important;
        fill: #172638 !important;
        opacity: 1 !important;
    }
}

/* CXE — Compact header search overlay */

body #search-modal {
	--vertical-alignment: flex-start;

	background-color: rgba(255, 255, 255, 0.78);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

body #search-modal .ct-panel-content {
	justify-content: flex-start;

	overflow-y: auto;
	padding: clamp(50px, 7vh, 64px) 24px 40px;
}

/* Search field size */
body #search-modal .ct-search-form {
	--theme-form-max-width: 680px;
	--theme-form-field-height: 60px;
	--theme-form-font-size: 17px;
}

/* Search input */
body #search-modal .ct-search-form input[type="search"] {
	padding-inline-start: 22px;
	padding-inline-end: 64px;

	background-color: rgba(255, 255, 255, 0.94);
	border-width: 1px;
	border-radius: 14px;

	box-shadow: 0 8px 24px rgba(23, 38, 56, 0.07);
}

/* Search button */
body #search-modal .ct-search-form button[type="submit"] {
	position: absolute;
	inset-block-start: 9px;
	inset-block-end: auto;
	inset-inline-end: 9px;

	width: 42px;
	min-width: 42px;

	height: 42px;
	min-height: 42px;
	padding: 0;

	border-radius: 10px;
}

/* Mobile */
@media (max-width: 689px) {
	body #search-modal .ct-panel-content {
		padding: 46px 16px 28px;
	}

	body #search-modal .ct-search-form {
		--theme-form-max-width: 100%;
		--theme-form-field-height: 54px;
		--theme-form-font-size: 16px;
	}

	body #search-modal .ct-search-form input[type="search"] {
		padding-inline-start: 18px;
		padding-inline-end: 56px;
		border-radius: 12px;
	}

	body #search-modal .ct-search-form button[type="submit"] {
		inset-block-start: 8px;
		inset-inline-end: 8px;

		width: 38px;
		min-width: 38px;
		height: 38px;
		min-height: 38px;

		border-radius: 9px;
	}
}

/* =========================================================
   CXE — Custom cart drawer
   ========================================================= */

/* Disable only Blocksy's native hover cart dropdown. */
html body .ct-header-cart > .ct-cart-content,
html body [data-id="cart"] > .ct-cart-content {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	transform: none !important;
}

/* Preserve the normal quantity text in any mini-cart outside this drawer. */
.cxe-cart-item-actions {
	display: none;
}

html.cxe-cart-drawer-open,
body.cxe-cart-drawer-open {
	overflow: hidden;
	overscroll-behavior: none;
}

.cxe-cart-drawer,
.cxe-cart-drawer *,
.cxe-cart-drawer *::before,
.cxe-cart-drawer *::after {
	box-sizing: border-box;
}

.cxe-cart-drawer {
	position: fixed;
	z-index: 9999999;
	inset: 0;

	width: 100%;
	max-width: 100vw;
	height: 100vh;
	height: 100dvh;

	overflow: hidden;
	visibility: hidden;
	pointer-events: none;
	color: #172638;

	transition: visibility 0s linear 0.34s;
}

.cxe-cart-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

.cxe-cart-drawer__overlay {
	position: absolute;
	inset: 0;
	display: block;

	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;

	-webkit-appearance: none;
	appearance: none;
	border: 0;
	border-radius: 0;
	background: rgba(23, 38, 56, 0.54);
	box-shadow: none;
	cursor: default;
	opacity: 0;
	touch-action: none;

	-webkit-backdrop-filter: blur(7px) saturate(90%);
	backdrop-filter: blur(7px) saturate(90%);
	transition: opacity 0.28s ease;
}

.cxe-cart-drawer.is-open .cxe-cart-drawer__overlay {
	opacity: 1;
}

.cxe-cart-drawer__panel {
	position: absolute;
	top: 16px;
	right: 16px;
	bottom: 16px;
	display: flex;
	flex-direction: column;

	width: min(410px, calc(100vw - 32px));
	max-width: calc(100vw - 32px);
	height: auto;
	min-width: 0;
	min-height: 0;

	overflow: hidden;
	isolation: isolate;
	border: 1px solid rgba(140, 74, 94, 0.14);
	border-radius: 20px;
	background: rgba(248, 243, 245, 0.98);
	box-shadow:
		-18px 20px 60px rgba(23, 38, 56, 0.24),
		0 5px 20px rgba(23, 38, 56, 0.10);
	touch-action: pan-y;

	transform: translate3d(calc(100% + 48px), 0, 0);
	transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or
			  (backdrop-filter: blur(1px))) {
	.cxe-cart-drawer__panel {
		background: rgba(248, 243, 245, 0.86);
		-webkit-backdrop-filter: blur(24px) saturate(145%);
		backdrop-filter: blur(24px) saturate(145%);
	}
}

.cxe-cart-drawer.is-open .cxe-cart-drawer__panel {
	transform: translate3d(0, 0, 0);
}

.cxe-cart-drawer__header {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-width: 0;
	padding: 22px 24px 18px;
	border-bottom: 1px solid rgba(23, 38, 56, 0.09);
}

.cxe-cart-drawer__header h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	margin: 0;
	color: #172638;
	font-size: clamp(21px, 2vw, 25px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.cxe-cart-drawer__count {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	min-width: 26px;
	height: 26px;
	padding: 0 7px;
	border-radius: 999px;
	color: #ffffff;
	background: #8c4a5e;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.cxe-cart-drawer__close {
	display: grid;
	place-items: center;
	flex: 0 0 42px;

	width: 42px;
	height: 42px;
	min-width: 42px;
	min-height: 42px;
	margin: 0;
	padding: 0;

	-webkit-appearance: none;
	appearance: none;
	border: 0;
	border-radius: 50%;
	color: #172638;
	background: rgba(23, 38, 56, 0.07);
	box-shadow: none;
	cursor: pointer;

	transition:
		color 0.2s ease,
		background-color 0.2s ease,
		transform 0.2s ease;
}

.cxe-cart-drawer__close:hover {
	color: #ffffff;
	background: #8c4a5e;
	transform: rotate(4deg);
}

.cxe-cart-drawer__close:focus-visible {
	outline: 2px solid #8c4a5e;
	outline-offset: 3px;
}

.cxe-cart-drawer__close svg {
	width: 18px;
	height: 18px;
}

.cxe-cart-drawer__close path {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
}

.cxe-cart-drawer__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	padding: 0 24px 24px;
}

.cxe-cart-drawer__status {
	flex: 0 0 auto;
	margin: 12px 0 4px;
	padding: 10px 12px;
	border: 1px solid rgba(140, 74, 94, 0.18);
	border-radius: 10px;
	color: #74384c;
	background: rgba(255, 255, 255, 0.62);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}

.cxe-cart-drawer__status[hidden] {
	display: none;
}

.cxe-cart-drawer .widget_shopping_cart_content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}

.cxe-cart-drawer .woocommerce-mini-cart {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 4px 6px 4px 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-gutter: stable;
	list-style: none;
}

.cxe-cart-drawer .woocommerce-mini-cart::-webkit-scrollbar {
	width: 6px;
}

.cxe-cart-drawer .woocommerce-mini-cart::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: rgba(23, 38, 56, 0.18);
}

.cxe-cart-drawer .woocommerce-mini-cart-item {
	position: relative;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	align-items: start;
	column-gap: 15px;
	min-width: 0;
	margin: 0;
	padding: 16px 32px 16px 0;
	border-bottom: 1px solid rgba(23, 38, 56, 0.09);

	transition: opacity 0.2s ease;
}

.cxe-cart-drawer .woocommerce-mini-cart-item.processing,
.cxe-cart-drawer .woocommerce-mini-cart-item.cxe-is-updating {
	opacity: 0.46;
	pointer-events: none;
}

.cxe-cart-drawer .woocommerce-mini-cart-item > .ct-media-container {
	grid-column: 1;
	grid-row: 1;
	display: block;
	width: 72px;
	max-width: 72px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.82);
}

.cxe-cart-drawer .woocommerce-mini-cart-item > .ct-media-container img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cxe-cart-drawer .woocommerce-mini-cart-item .product-data {
	grid-column: 2;
	grid-row: 1;
	align-self: center;
	min-width: 0;
	font-size: 13px;
}

.cxe-cart-drawer .woocommerce-mini-cart-item .product-title {
	display: block;
	min-width: 0;
	margin: 0 0 6px;
	padding-inline-end: 2px;
	color: #172638;
	font-size: 15px;
	font-weight: 650;
	line-height: 1.35;
	overflow-wrap: anywhere;
	text-decoration: none;
}

.cxe-cart-drawer .woocommerce-mini-cart-item .product-title:hover {
	color: #8c4a5e;
}

.cxe-cart-drawer .woocommerce-mini-cart-item .quantity {
	display: block;
	width: auto;
	height: auto;
	color: rgba(23, 38, 56, 0.68);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
}

.cxe-cart-drawer .cxe-cart-quantity-fallback {
	display: none;
}

.cxe-cart-drawer .cxe-cart-item-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 10px;
	min-width: 0;
	margin-top: 8px;
}

.cxe-cart-drawer .cxe-cart-quantity {
	display: inline-grid;
	grid-template-columns: 30px minmax(28px, auto) 30px;
	align-items: center;
	flex: 0 0 auto;
	min-width: 88px;
	height: 32px;
	overflow: hidden;
	border: 1px solid rgba(23, 38, 56, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.64);
}

.cxe-cart-drawer .cxe-cart-quantity__button {
	display: grid;
	place-items: center;

	width: 30px;
	height: 30px;
	min-width: 30px;
	min-height: 30px;
	margin: 0;
	padding: 0;

	-webkit-appearance: none;
	appearance: none;
	border: 0;
	border-radius: 50%;
	color: #172638;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	font-size: 17px;
	font-weight: 500;
	line-height: 1;
}

.cxe-cart-drawer .cxe-cart-quantity__button:hover:not(:disabled) {
	color: #ffffff;
	background: #8c4a5e;
}

.cxe-cart-drawer .cxe-cart-quantity__button:focus-visible {
	position: relative;
	z-index: 1;
	outline: 2px solid #8c4a5e;
	outline-offset: -2px;
}

.cxe-cart-drawer .cxe-cart-quantity__button:disabled {
	cursor: not-allowed;
	opacity: 0.32;
}

.cxe-cart-drawer .cxe-cart-quantity__value {
	min-width: 28px;
	color: #172638;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

.cxe-cart-drawer .cxe-cart-item-price {
	min-width: 0;
	color: rgba(23, 38, 56, 0.68);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}

.cxe-cart-drawer .cxe-cart-item-price .amount {
	font: inherit;
}

.cxe-cart-drawer .woocommerce-mini-cart-item dl.variation {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 2px 5px;
	min-width: 0;
	margin: 5px 0;
	font-size: 12px;
}

.cxe-cart-drawer .woocommerce-mini-cart-item dl.variation dt,
.cxe-cart-drawer .woocommerce-mini-cart-item dl.variation dd,
.cxe-cart-drawer .woocommerce-mini-cart-item dl.variation p {
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
}

.cxe-cart-drawer .woocommerce-mini-cart-item a.remove {
	position: absolute;
	z-index: 2;
	top: 12px;
	inset-inline-end: 0;
	display: grid;
	place-items: center;

	width: 30px;
	height: 30px;
	min-width: 30px;
	min-height: 30px;
	margin: 0;
	padding: 0;

	border: 0;
	border-radius: 50%;
	color: rgba(23, 38, 56, 0.62);
	background: rgba(23, 38, 56, 0.06);
	font-size: 19px;
	line-height: 1;
	text-decoration: none;
}

.cxe-cart-drawer .woocommerce-mini-cart-item a.remove:hover {
	color: #ffffff;
	background: #8c4a5e;
}

.cxe-cart-drawer .woocommerce-mini-cart-item a.remove:focus-visible {
	outline: 2px solid #8c4a5e;
	outline-offset: 2px;
}

.cxe-cart-drawer .woocommerce-mini-cart-item a.remove .ct-icon {
	width: 12px;
	height: 12px;
	fill: currentColor;
}

/* The summary is emitted by the shared mini-cart hook; expose it only here. */
.cxe-cart-drawer__summary {
	display: none;
}

.cxe-cart-drawer .woocommerce-mini-cart__total {
	display: none;
}

.cxe-cart-drawer .cxe-cart-drawer__summary {
	flex: 0 1 auto;
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 0;
	margin: 12px 0;
	padding: 12px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	border: 1px solid #e7e9ed;
	border-radius: 12px;
	color: #172638;
	background: #ffffff;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.35;
	transition: opacity 0.2s ease;
}

.cxe-cart-drawer .cxe-cart-drawer__summary-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 8px 14px;
	min-width: 0;
	padding: 4px 0;
}

.cxe-cart-drawer .cxe-cart-drawer__summary-label,
.cxe-cart-drawer .cxe-cart-drawer__summary-value,
.cxe-cart-drawer .cxe-cart-drawer__discount-value {
	min-width: 0;
}

.cxe-cart-drawer .cxe-cart-drawer__summary-label {
	color: #4d6072;
	font-weight: 550;
	overflow-wrap: anywhere;
}

.cxe-cart-drawer .cxe-cart-drawer__summary-value {
	justify-self: end;
	max-width: 100%;
	color: #172638;
	font-weight: 700;
	text-align: end;
	overflow-wrap: anywhere;
}

.cxe-cart-drawer .cxe-cart-drawer__summary-value strong,
.cxe-cart-drawer .cxe-cart-drawer__summary-value .amount {
	color: inherit;
	font: inherit;
}

.cxe-cart-drawer .cxe-cart-drawer__summary-value .amount {
	white-space: nowrap;
}

.cxe-cart-drawer .cxe-cart-drawer__summary-value small {
	display: block;
	margin-top: 2px;
	color: #4d6072;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.25;
}

.cxe-cart-drawer .cxe-cart-drawer__discount-row {
	color: #8c4a5e;
}

.cxe-cart-drawer .cxe-cart-drawer__discount-row .cxe-cart-drawer__summary-label,
.cxe-cart-drawer .cxe-cart-drawer__discount-row .cxe-cart-drawer__summary-value {
	color: inherit;
}

.cxe-cart-drawer .cxe-cart-drawer__discount-value {
	justify-self: end;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 4px 8px;
	max-width: 100%;
	text-align: end;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 0;
	min-height: 36px;
	margin: -7px 0;
	padding: 7px 2px;

	-webkit-appearance: none;
	appearance: none;
	border: 0;
	border-radius: 6px;
	color: #8c4a5e;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	font: inherit;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-remove:hover:not(:disabled) {
	color: #74384c;
	background: #f8f3f5;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 7px 0 5px;
	overflow: hidden;
	border: 1px solid #e7e9ed;
	border-radius: 10px;
	background: #f8f3f5;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 9px 11px;
	color: #172638;
	cursor: pointer;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	list-style: none;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-toggle::-webkit-details-marker {
	display: none;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-toggle::marker {
	display: none;
	content: '';
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-toggle:hover {
	color: #74384c;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-toggle-icon {
	display: block;
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	margin-inline-end: 2px;
	border-right: 2px solid #8c4a5e;
	border-bottom: 2px solid #8c4a5e;
	transform: rotate(45deg) translate(-1px, -1px);
	transform-origin: center;
	transition: transform 0.18s ease;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon[open] .cxe-cart-drawer__coupon-toggle-icon {
	transform: rotate(225deg) translate(-1px, -1px);
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-content {
	min-width: 0;
	padding: 0 10px 10px;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 76px;
	align-items: stretch;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-input,
.cxe-cart-drawer .cxe-cart-drawer__coupon-apply {
	width: 100%;
	min-width: 0;
	height: 44px;
	min-height: 44px;
	margin: 0;
	font-family: inherit;
	line-height: 1.2;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-input {
	-webkit-appearance: none;
	appearance: none;
	padding: 9px 11px;
	border: 1px solid #e7e9ed;
	border-radius: 9px;
	color: #172638;
	background: #ffffff;
	box-shadow: none;
	font-size: 13px;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-input::placeholder {
	color: #4d6072;
	opacity: 0.82;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-apply {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 10px;

	-webkit-appearance: none;
	appearance: none;
	border: 1px solid #8c4a5e;
	border-radius: 9px;
	color: #ffffff;
	background: #8c4a5e;
	box-shadow: none;
	cursor: pointer;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	text-transform: none;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-apply:hover:not(:disabled) {
	border-color: #74384c;
	color: #ffffff;
	background: #74384c;
	transform: none;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-toggle:focus-visible {
	outline: 2px solid #8c4a5e;
	outline-offset: -2px;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-input:focus-visible,
.cxe-cart-drawer .cxe-cart-drawer__coupon-apply:focus-visible,
.cxe-cart-drawer .cxe-cart-drawer__coupon-remove:focus-visible {
	outline: 2px solid #8c4a5e;
	outline-offset: 2px;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-message {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 8px 0 0;
	padding: 8px 9px;
	border: 1px solid #e7e9ed;
	border-radius: 8px;
	color: #4d6072;
	background: #ffffff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-message[hidden] {
	display: none;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-message.is-success {
	border-color: #e7e9ed;
	color: #172638;
	background: #ffffff;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-message.is-error {
	border-color: #8c4a5e;
	color: #74384c;
	background: #f8f3f5;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-message.is-success::before,
.cxe-cart-drawer .cxe-cart-drawer__coupon-message.is-error::before {
	display: inline-block;
	margin-inline-end: 5px;
	color: #8c4a5e;
	font-weight: 800;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-message.is-success::before {
	content: '\2713';
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-message.is-error::before {
	content: '!';
}

.cxe-cart-drawer .cxe-cart-drawer__total-row {
	align-items: center;
	margin-top: 7px;
	padding-top: 10px;
	border-top: 1px solid #e7e9ed;
}

.cxe-cart-drawer .cxe-cart-drawer__total-row .cxe-cart-drawer__summary-label,
.cxe-cart-drawer .cxe-cart-drawer__total-row .cxe-cart-drawer__summary-value {
	color: #172638;
	font-size: 15px;
	font-weight: 750;
}

.cxe-cart-drawer .widget_shopping_cart_content[aria-busy="true"] {
	cursor: progress;
}

.cxe-cart-drawer .cxe-cart-drawer__summary[aria-busy="true"] {
	opacity: 0.58;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-input:disabled,
.cxe-cart-drawer .cxe-cart-drawer__coupon-apply:disabled,
.cxe-cart-drawer .cxe-cart-drawer__coupon-remove:disabled,
.cxe-cart-drawer .woocommerce-mini-cart-item a.remove[aria-disabled="true"] {
	cursor: wait;
	opacity: 0.48;
}

.cxe-cart-drawer .cxe-cart-drawer__coupon-apply:disabled,
.cxe-cart-drawer .cxe-cart-drawer__coupon-remove:disabled,
.cxe-cart-drawer .woocommerce-mini-cart-item a.remove[aria-disabled="true"] {
	pointer-events: none;
}

.cxe-cart-drawer .woocommerce-mini-cart__buttons {
	flex: 0 0 auto;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	border: 0;
}

.cxe-cart-drawer .woocommerce-mini-cart__buttons .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	min-height: 48px;
	margin: 0;
	padding: 10px 12px;

	border: 1px solid rgba(23, 38, 56, 0.18);
	border-radius: 12px;
	color: #172638;
	background: rgba(255, 255, 255, 0.58);
	box-shadow: none;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.025em;
	text-align: center;
	text-transform: none;
	white-space: normal;
}

.cxe-cart-drawer .woocommerce-mini-cart__buttons .button:hover {
	border-color: #8c4a5e;
	color: #8c4a5e;
	background: #ffffff;
	transform: none;
}

.cxe-cart-drawer .woocommerce-mini-cart__buttons .checkout {
	border-color: #8c4a5e;
	color: #ffffff;
	background: #8c4a5e;
}

.cxe-cart-drawer .woocommerce-mini-cart__buttons .checkout:hover {
	border-color: #74384c;
	color: #ffffff;
	background: #74384c;
}

.cxe-cart-drawer .woocommerce-mini-cart__buttons .button:focus-visible,
.cxe-cart-drawer .return-to-shop .button:focus-visible {
	outline: 2px solid #8c4a5e;
	outline-offset: 3px;
}

.cxe-cart-drawer .cxe-cart-empty {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
	padding: clamp(28px, 8vh, 64px) 20px;
	text-align: center;
}

.cxe-cart-drawer .cxe-cart-empty__icon {
	display: grid;
	place-items: center;
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	margin-bottom: 18px;
	border-radius: 50%;
	color: #8c4a5e;
	background: rgba(140, 74, 94, 0.10);
}

.cxe-cart-drawer .cxe-cart-empty__icon svg {
	width: 32px;
	height: 32px;
}

.cxe-cart-drawer .cxe-cart-empty__icon path {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cxe-cart-drawer .cxe-cart-empty h3 {
	margin: 0 0 8px;
	color: #172638;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.cxe-cart-drawer .cxe-cart-empty p {
	max-width: 260px;
	margin: 0;
	color: rgba(23, 38, 56, 0.66);
	font-size: 14px;
	line-height: 1.55;
}

.cxe-cart-drawer .cxe-cart-empty__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: 22px;
	padding: 10px 20px;
	border: 1px solid #8c4a5e;
	border-radius: 12px;
	color: #ffffff;
	background: #8c4a5e;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.cxe-cart-drawer .cxe-cart-empty__button:hover {
	border-color: #74384c;
	color: #ffffff;
	background: #74384c;
}

.cxe-cart-drawer .cxe-cart-empty__button:focus-visible {
	outline: 2px solid #8c4a5e;
	outline-offset: 3px;
}

/* Fallback for WooCommerce's default empty-cart template. */
.cxe-cart-drawer .wc-empty-cart-message {
	flex: 0 0 auto;
	width: 100%;
	margin: auto 0 0;
}

.cxe-cart-drawer .cart-empty.woocommerce-info {
	display: block;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 24px 18px;
	clear: none;
	border: 1px solid rgba(140, 74, 94, 0.12);
	border-radius: 14px;
	color: rgba(23, 38, 56, 0.72);
	background: rgba(255, 255, 255, 0.52);
	box-shadow: none;
	line-height: 1.5;
	text-align: center;
}

.cxe-cart-drawer .cart-empty.woocommerce-info::before,
.cxe-cart-drawer .cart-empty.woocommerce-info::after {
	display: none;
	content: none;
}

.cxe-cart-drawer .return-to-shop {
	flex: 0 0 auto;
	margin: 18px 0 auto;
	text-align: center;
}

.cxe-cart-drawer .return-to-shop .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin: 0;
	padding: 10px 20px;
	border-radius: 12px;
}

@media (max-width: 689.98px) {
	.cxe-cart-drawer__panel {
		--cxe-cart-right-offset: max(
			18px,
			env(safe-area-inset-right, 0px)
		);

		top: max(26px, env(safe-area-inset-top, 0px));
		right: var(--cxe-cart-right-offset);
		bottom: max(26px, env(safe-area-inset-bottom, 0px));

		width: calc(
			100vw - 50px - var(--cxe-cart-right-offset)
		);
		max-width: calc(
			100vw - 50px - var(--cxe-cart-right-offset)
		);

		border-radius: 18px;
		transform: translate3d(calc(100% + 64px), 0, 0);
	}

	.cxe-cart-drawer__header {
		gap: 14px;
		padding: 18px 18px 15px;
	}

	.cxe-cart-drawer__header h2 {
		font-size: 21px;
	}

	.cxe-cart-drawer__close {
		flex-basis: 40px;
		width: 40px;
		height: 40px;
		min-width: 40px;
		min-height: 40px;
	}

	.cxe-cart-drawer__body {
		padding: 0 18px 18px;
	}

	.cxe-cart-drawer .cxe-cart-drawer__summary {
		margin-block: 10px;
		padding: 10px;
	}

	.cxe-cart-drawer .cxe-cart-drawer__summary-row {
		column-gap: 10px;
	}

	.cxe-cart-drawer .cxe-cart-drawer__coupon-content {
		padding: 0 8px 8px;
	}

	.cxe-cart-drawer .cxe-cart-drawer__coupon-form {
		grid-template-columns: minmax(0, 1fr) 72px;
		gap: 7px;
	}

	.cxe-cart-drawer .cxe-cart-empty {
		padding: 26px 12px;
	}

	.cxe-cart-drawer .woocommerce-mini-cart-item {
		grid-template-columns: 62px minmax(0, 1fr);
		column-gap: 12px;
		padding: 14px 30px 14px 0;
	}

	.cxe-cart-drawer .woocommerce-mini-cart-item > .ct-media-container {
		width: 62px;
		max-width: 62px;
		border-radius: 10px;
	}

	.cxe-cart-drawer .woocommerce-mini-cart-item .product-title {
		font-size: 14px;
	}

	.cxe-cart-drawer .woocommerce-mini-cart__buttons {
		gap: 9px;
	}

	.cxe-cart-drawer .woocommerce-mini-cart__buttons .button {
		min-height: 46px;
		padding-inline: 8px;
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cxe-cart-drawer,
	.cxe-cart-drawer__overlay,
	.cxe-cart-drawer__panel,
	.cxe-cart-drawer__close,
	.cxe-cart-drawer__summary,
	.cxe-cart-drawer__coupon-toggle-icon {
		transition-duration: 0.01ms;
	}
}

/* =========================================================
   CXE TYPE 1 PRODUCT CARDS — FLUSH DESIGN
   ========================================================= */

[data-products="type-1"] > li.product.type-product {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0;
	overflow: hidden;

	background: #ffffff;
	border: 1px solid rgba(140, 74, 94, 0.16);
	border-radius: 14px;
	box-shadow: 0 5px 18px rgba(23, 38, 56, 0.055);

	transition:
		transform 220ms ease,
		border-color 220ms ease,
		box-shadow 220ms ease;
}

/* Product link and information flow */
[data-products="type-1"]
> li.product.type-product
> .woocommerce-loop-product__link {
	display: flex;
	flex-direction: column;
}

/* Image touches the container edges */
[data-products="type-1"]
> li.product.type-product
.ct-image-container {
	display: block;
	width: 100%;
	margin: 0 !important;
	overflow: hidden;
	border-radius: 0 !important;
}

/* Consistent compact title area */
[data-products="type-1"] .woocommerce-loop-product__title {
    display: -webkit-box;
    min-height: 2.6em;
    margin: 14px 12px 0 !important;
    overflow: hidden;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* Compact price spacing */
[data-products="type-1"] .price {
	margin: 8px 12px 0 !important;
}

/* Category spacing */
[data-products="type-1"]
> li.product.type-product
> .entry-meta {
	margin: 10px 12px 0 !important;
	color: #4d6072;
	font-size: 11px;
}

/* Button area */
[data-products="type-1"]
> li.product.type-product
.ct-woo-card-actions {
	width: auto;
	margin: 14px 12px 12px !important;
	padding: 0;
}

/* Balanced Add to Cart button */
[data-products="type-1"]
> li.product.type-product
.ct-woo-card-actions .button {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 100%;
	min-height: 42px;
	margin: 0 !important;
	padding: 9px 10px;

	border-radius: 8px;
	text-align: center;
}

/* Smaller, cleaner sale badge */
[data-products="type-1"] .onsale {
	padding: 6px 11px;
	font-size: 11px;
	line-height: 1.2;
}

/* Desktop-only interaction */
@media (hover: hover) and (pointer: fine) {
	[data-products="type-1"] > li.product.type-product:hover {
		transform: translateY(-3px);
		border-color: rgba(140, 74, 94, 0.3);
		box-shadow: 0 12px 28px rgba(23, 38, 56, 0.1);
	}

	[data-products="type-1"] .ct-image-container img {
		transition: transform 350ms ease;
	}

	[data-products="type-1"]
	> li.product.type-product:hover
	.ct-image-container img {
		transform: scale(1.025);
	}
}

/* Mobile refinement */
@media (max-width: 689px) {
	[data-products="type-1"] > li.product.type-product {
		border-radius: 12px;
		box-shadow: 0 3px 12px rgba(23, 38, 56, 0.05);
	}

	[data-products="type-1"] .woocommerce-loop-product__title {
		min-height: 2.6em;
		margin: 11px 8px 0 !important;
		font-size: 15px;
		line-height: 1.3;
	}

	[data-products="type-1"] .price {
		margin: 7px 8px 0 !important;
	}

	[data-products="type-1"]
	> li.product.type-product
	> .entry-meta {
		margin: 8px 8px 0 !important;
		font-size: 10px;
	}

	[data-products="type-1"]
	> li.product.type-product
	.ct-woo-card-actions {
		margin: 11px 8px 8px !important;
	}

	[data-products="type-1"]
	> li.product.type-product
	.ct-woo-card-actions .button {
		min-height: 40px;
		padding: 8px 4px;
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	[data-products="type-1"] > li.product.type-product,
	[data-products="type-1"] .ct-image-container img {
		transition: none;
	}

	[data-products="type-1"] > li.product.type-product:hover,
	[data-products="type-1"]
	> li.product.type-product:hover
	.ct-image-container img {
		transform: none;
	}
}

/* =========================================================
   CXE — MY ACCOUNT MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 689px) {

	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		margin: 0 0 24px !important;
		padding: 0 !important;
		list-style: none;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul li {
		min-width: 0;
		margin: 0 !important;
		overflow: hidden;
		background: #ffffff;
		border: 1px solid #e7e9ed !important;
		border-radius: 6px;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
		display: flex !important;
		min-height: 48px;
		align-items: center;
		gap: 8px;
		padding: 10px 12px !important;
		color: #4d6072;
		border: 0 !important;
		font-size: 13px;
		font-weight: 600;
		line-height: 1.35;
		text-decoration: none;
	}

	.woocommerce-account
	.woocommerce-MyAccount-navigation
	ul
	li.is-active {
		background: #8c4a5e;
		border-color: #8c4a5e !important;
	}

	.woocommerce-account
	.woocommerce-MyAccount-navigation
	ul
	li.is-active
	a {
		color: #ffffff !important;
		background: #8c4a5e !important;
	}

	.woocommerce-account
	.woocommerce-MyAccount-navigation-link--customer-logout {
		grid-column: 1 / -1;
	}

	.woocommerce-account .woocommerce-MyAccount-content {
		margin-top: 0;
	}
}

@media (max-width: 360px) {

	.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
		gap: 6px;
		padding-inline: 9px !important;
		font-size: 12px;
	}
}

/**
 * CXE — Optional routine add-ons
 */

.single-product form.cart .cxe-routine-addons {
	grid-column: 1 / -1;
	flex: 0 0 100%;
	order: 20;
	width: 100%;
	margin-top: var(--cxe-space-m);
	box-sizing: border-box;
}

.cxe-routine-addons__intro h3 {
	margin: 0;
	color: var(--theme-palette-color-4);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.cxe-routine-addons__intro p {
	margin: 4px 0 0;
	color: var(--theme-palette-color-3);
	font-size: 13px;
	line-height: 1.5;
}

.cxe-routine-addons__list {
	display: grid;
	margin-top: var(--cxe-space-s);
	overflow: hidden;
	background: var(--theme-palette-color-8);
	border: 1px solid var(--theme-palette-color-5);
	border-radius: 10px;
}

.cxe-routine-addons__item {
	position: relative;
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	width: 100%;
	min-height: 72px;
	margin: 0;
	padding: 9px 12px;
	color: var(--theme-palette-color-3);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--theme-palette-color-5);
	border-radius: 0;
	box-sizing: border-box;
	cursor: pointer;
	transition: background-color 160ms ease;
}

.cxe-routine-addons__item:last-child {
	border-bottom: 0;
}

.cxe-routine-addons__item:hover {
	background: var(--theme-palette-color-6);
}

.cxe-routine-addons__item:has(
	.cxe-routine-addons__checkbox:checked
) {
	background: var(--cxe-accent-surface, #f8f3f5);
}

.cxe-routine-addons__item:has(
	.cxe-routine-addons__checkbox:focus-visible
) {
	box-shadow: inset 0 0 0 2px var(--theme-palette-color-1);
}

.cxe-routine-addons__checkbox {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.cxe-routine-addons__image {
	display: block;
	width: 54px;
	height: 54px;
	overflow: hidden;
	background: var(--theme-palette-color-6);
	border-radius: 6px;
}

.cxe-routine-addons__image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: cover;
}

.cxe-routine-addons__details {
	display: block;
	min-width: 0;
}

.cxe-routine-addons__name {
	display: block;
	color: var(--theme-palette-color-4);
	font-size: 13px;
	font-weight: 650;
	line-height: 1.35;
}

.cxe-routine-addons__price {
	display: block;
	margin-top: 3px;
	color: var(--theme-palette-color-3);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}

.cxe-routine-addons__price del {
	margin-right: 4px;
	opacity: 0.6;
	font-size: 0.9em;
}

.cxe-routine-addons__price ins {
	color: var(--theme-palette-color-1);
	text-decoration: none;
}

.cxe-routine-addons__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 68px;
	height: 34px;
	padding: 0 12px;
	color: var(--theme-palette-color-1);
	background: var(--theme-palette-color-8);
	border: 1px solid var(--theme-palette-color-1);
	border-radius: 6px;
	box-sizing: border-box;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	transition:
		color 160ms ease,
		background-color 160ms ease,
		border-color 160ms ease;
}

.cxe-routine-addons__toggle::before {
	content: "Add";
}

.cxe-routine-addons__item:has(
	.cxe-routine-addons__checkbox:checked
) .cxe-routine-addons__toggle {
	color: var(--theme-palette-color-8);
	background: var(--theme-palette-color-1);
	border-color: var(--theme-palette-color-1);
}

.cxe-routine-addons__item:has(
	.cxe-routine-addons__checkbox:checked
) .cxe-routine-addons__toggle::before {
	content: "Remove";
}

.cxe-routine-addons__footer {
	display: none;
	margin-top: 10px;
}

.cxe-routine-addons:has(
	.cxe-routine-addons__checkbox:checked
) .cxe-routine-addons__footer {
	display: block;
}

.cxe-routine-addons__submit {
	width: 100%;
	min-height: 46px;
	margin: 0 !important;
}

@media (max-width: 689px) {
	.single-product form.cart .cxe-routine-addons {
		margin-top: var(--cxe-space-s);
	}

	.cxe-routine-addons__item {
		grid-template-columns: 46px minmax(0, 1fr) auto;
		gap: 9px;
		min-height: 66px;
		padding: 9px;
	}

	.cxe-routine-addons__image {
		width: 46px;
		height: 46px;
	}

	.cxe-routine-addons__toggle {
		min-width: 58px;
		height: 32px;
		padding-inline: 9px;
		font-size: 11.5px;
	}
}

/* CXE — Hide redundant View cart link inside routine add-ons. */
.cxe-routine-addons .added_to_cart,
.cxe-routine-addons a.added_to_cart.wc-forward {
	display: none !important;
}

/**
 * CXE — Native WooCommerce product reviews
 */

.single-product #reviews.cxe-reviews,
.single-product #reviews.cxe-reviews * {
	box-sizing: border-box;
}

.single-product #reviews.cxe-reviews {
	display: block !important;
	width: 100% !important;
	max-width: 1180px;
	margin-inline: auto;
	color: var(--theme-palette-color-3, #4d6072);
}

.single-product #reviews.cxe-reviews #comments,
.single-product #reviews.cxe-reviews #review_form_wrapper,
.single-product #reviews.cxe-reviews .cxe-review-gate {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
}

.cxe-reviews__overview {
	margin-bottom: var(--cxe-space-l, 32px);
}

.cxe-reviews__intro {
	margin-bottom: var(--cxe-space-m, 20px);
}

.cxe-reviews__eyebrow {
	display: block;
	margin-bottom: 6px;
	color: var(--theme-palette-color-1, #8c4a5e);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.12em;
}

.cxe-reviews__intro h2 {
	margin: 0;
	color: var(--theme-palette-color-4, #172638);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.cxe-reviews__intro p {
	margin: 8px 0 0;
	color: var(--theme-palette-color-3, #4d6072);
	font-size: 14px;
	line-height: 1.6;
}

.cxe-rating-summary {
	display: grid;
	grid-template-columns: minmax(180px, 0.72fr) minmax(280px, 1.28fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
	padding: clamp(24px, 3.5vw, 38px);
	border: 1px solid var(--theme-palette-color-5, #e7e9ed);
	border-radius: 16px;
	background: var(--cxe-accent-surface, #f8f3f5);
}

.cxe-rating-summary__score {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
	text-align: center;
}

.cxe-rating-summary__score > strong {
	color: var(--theme-palette-color-4, #172638);
	font-size: 50px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
}

.cxe-rating-summary__score > .cxe-review-stars {
	margin-top: 10px;
	font-size: 21px;
}

.cxe-rating-summary__score > span:last-child {
	margin-top: 8px;
	color: var(--theme-palette-color-3, #4d6072);
	font-size: 13px;
	line-height: 1.5;
}

.cxe-rating-summary__distribution {
	display: grid;
	gap: 9px;
	min-width: 0;
}

.cxe-rating-row {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 32px;
	gap: 10px;
	align-items: center;
	font-size: 13px;
	line-height: 1.3;
}

.cxe-rating-row > span:first-child {
	color: var(--theme-palette-color-4, #172638);
	font-weight: 600;
}

.cxe-rating-row > strong {
	color: var(--theme-palette-color-3, #4d6072);
	font-size: 12px;
	font-weight: 600;
	text-align: right;
}

.cxe-rating-row__track {
	display: block;
	height: 7px;
	overflow: hidden;
	border-radius: 99px;
	background: rgba(23, 38, 56, 0.12);
}

.cxe-rating-row__track > span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--theme-palette-color-1, #8c4a5e);
}

.cxe-review-stars {
	display: inline-flex;
	direction: ltr;
	font-size: 16px;
	line-height: 1;
	white-space: nowrap;
}

.cxe-review-stars__visual {
	display: inline-block;
	color: transparent;
	letter-spacing: 0.12em;
	background: linear-gradient(
		90deg,
		var(--theme-palette-color-1, #8c4a5e) 0 var(--cxe-rating),
		#d8dde3 var(--cxe-rating) 100%
	);
	-webkit-background-clip: text;
	background-clip: text;
}

.cxe-review-list {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--cxe-space-m, 20px);
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.cxe-review-card {
	min-width: 0;
	height: 100%;
	margin: 0 !important;
	padding: var(--cxe-space-m, 20px) !important;
	border: 1px solid var(--theme-palette-color-5, #e7e9ed);
	border-radius: 14px;
	background: var(--theme-palette-color-7, #ffffff);
	box-shadow: 0 8px 24px rgba(23, 38, 56, 0.045);
}

.cxe-review-card:focus {
	outline: 2px solid var(--theme-palette-color-1, #8c4a5e);
	outline-offset: 3px;
}

.cxe-review-card > article {
	height: 100%;
}

.cxe-review-card__header {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: start;
}

.cxe-review-card__avatar {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	color: var(--theme-palette-color-1, #8c4a5e);
	background: var(--cxe-accent-surface, #f8f3f5);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.cxe-review-card__person {
	min-width: 0;
}

.cxe-review-card__name-line {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 8px;
	align-items: center;
}

.cxe-review-card__name-line > strong {
	min-width: 0;
	color: var(--theme-palette-color-4, #172638);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.cxe-review-card__verified {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	min-height: 22px;
	padding: 3px 7px;
	border-radius: 99px;
	color: var(--theme-palette-color-1, #8c4a5e);
	background: var(--cxe-accent-surface, #f8f3f5);
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.cxe-review-card__verified svg {
	width: 13px;
	height: 13px;
	fill: currentColor;
}

.cxe-review-card__person time {
	display: block;
	margin-top: 4px;
	color: var(--theme-palette-color-3, #4d6072);
	font-size: 11px;
	line-height: 1.4;
}

.cxe-review-card__header > .cxe-review-stars {
	margin-top: 3px;
}

.cxe-review-card__title {
	margin: 17px 0 6px;
	color: var(--theme-palette-color-4, #172638);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.01em;
}

.cxe-review-card__text {
	color: var(--theme-palette-color-3, #4d6072);
	font-size: 14.5px;
	line-height: 1.7;
}

.cxe-review-card__text p {
	margin: 0;
}

.cxe-review-card__text p + p {
	margin-top: 10px;
}

.cxe-review-load-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: var(--cxe-space-l, 32px);
}

.cxe-review-load-more__button {
	display: inline-flex;
	gap: 7px;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 20px;
	border: 1px solid var(--theme-palette-color-1, #8c4a5e);
	border-radius: 8px;
	color: #ffffff;
	background: var(--theme-palette-color-1, #8c4a5e);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.cxe-review-load-more__button:hover,
.cxe-review-load-more__button:focus-visible {
	border-color: var(--theme-palette-color-2, #74384c);
	color: #ffffff;
	background: var(--theme-palette-color-2, #74384c);
}

.cxe-review-load-more__button:active {
	transform: translateY(1px);
}

.cxe-review-load-more__button:disabled {
	opacity: 0.65;
	cursor: wait;
}

.cxe-review-load-more__button[hidden],
.cxe-review-load-more__message[hidden] {
	display: none !important;
}

.cxe-review-load-more__button small {
	font-size: 11px;
	font-weight: 500;
	opacity: 0.82;
}

.cxe-review-load-more__message {
	margin: 10px 0 0;
	color: #b42318;
	font-size: 13px;
}

.cxe-review-gate,
.cxe-review-form-wrapper {
	margin-top: var(--cxe-space-xl, 48px);
	padding: clamp(20px, 3vw, 30px);
	border: 1px solid var(--theme-palette-color-5, #e7e9ed);
	border-radius: 14px;
	background: var(--theme-palette-color-6, #f7f8fa);
}

.cxe-review-gate strong,
.cxe-review-form-wrapper .comment-reply-title {
	display: block;
	margin: 0;
	color: var(--theme-palette-color-4, #172638);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
}

.cxe-review-gate p,
.cxe-review-form-wrapper .comment-notes,
.cxe-review-form-wrapper .must-log-in {
	margin: 6px 0 0;
	color: var(--theme-palette-color-3, #4d6072);
	font-size: 13px;
	line-height: 1.6;
}

.cxe-review-form-wrapper form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 18px;
}

.cxe-review-form-wrapper form > p,
.cxe-review-form-wrapper .comment-form-rating {
	margin: 0;
}

.cxe-review-form-wrapper .comment-form-rating,
.cxe-review-form-wrapper .comment-notes,
.cxe-review-form-wrapper .comment-form-cxe-title,
.cxe-review-form-wrapper .comment-form-comment,
.cxe-review-form-wrapper .comment-form-cookies-consent,
.cxe-review-form-wrapper .form-submit,
.cxe-review-form-wrapper .must-log-in,
.cxe-review-form-wrapper .logged-in-as {
	grid-column: 1 / -1;
}

.cxe-review-form-wrapper label {
	display: block;
	margin-bottom: 6px;
	color: var(--theme-palette-color-4, #172638);
	font-size: 13px;
	font-weight: 600;
}

.cxe-review-form-wrapper .optional {
	color: var(--theme-palette-color-3, #4d6072);
	font-size: 11px;
	font-weight: 400;
}

.cxe-review-form-wrapper input:not([type="checkbox"]),
.cxe-review-form-wrapper textarea,
.cxe-review-form-wrapper select {
	width: 100%;
	border: 1px solid var(--theme-palette-color-5, #e7e9ed);
	border-radius: 7px;
	color: var(--theme-palette-color-4, #172638);
	background: #ffffff;
	font: inherit;
	font-size: 14px;
}

.cxe-review-form-wrapper textarea {
	min-height: 130px;
	resize: vertical;
}

.cxe-review-form-wrapper input:focus,
.cxe-review-form-wrapper textarea:focus,
.cxe-review-form-wrapper select:focus {
	border-color: var(--theme-palette-color-1, #8c4a5e);
	box-shadow: 0 0 0 2px rgba(140, 74, 94, 0.13);
	outline: 0;
}

.cxe-review-form-wrapper .form-submit input {
	width: auto;
	min-height: 46px;
	padding-inline: 20px;
	border-color: var(--theme-palette-color-1, #8c4a5e);
	color: #ffffff;
	background: var(--theme-palette-color-1, #8c4a5e);
}

.cxe-reviews__empty {
	margin: 0;
	padding: 20px;
	border: 1px solid var(--theme-palette-color-5, #e7e9ed);
	border-radius: 12px;
	background: var(--theme-palette-color-6, #f7f8fa);
}

@media (max-width: 899px) {
	.cxe-review-list {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 689px) {
	.cxe-reviews__overview {
		margin-bottom: var(--cxe-space-m, 20px);
	}

	.cxe-reviews__intro h2 {
		font-size: 23px;
	}

	.cxe-reviews__intro p {
		font-size: 13px;
	}

	.cxe-rating-summary {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
		padding: 20px 16px;
		border-radius: 13px;
	}

	.cxe-rating-summary__score > strong {
		font-size: 42px;
	}

	.cxe-rating-summary__score > .cxe-review-stars {
		font-size: 19px;
	}

	.cxe-rating-row {
		grid-template-columns: 40px minmax(0, 1fr) 28px;
		gap: 8px;
	}

	.cxe-review-list {
		gap: 12px;
	}

	.cxe-review-card {
		padding: 16px !important;
		border-radius: 12px;
		box-shadow: none;
	}

	.cxe-review-card__header {
		grid-template-columns: 38px minmax(0, 1fr);
		gap: 10px;
	}

	.cxe-review-card__avatar {
		width: 38px;
		height: 38px;
	}

	.cxe-review-card__header > .cxe-review-stars {
		grid-column: 2;
		justify-self: start;
		margin-top: 0;
		font-size: 15px;
	}

	.cxe-review-card__title {
		margin-top: 14px;
		font-size: 16px;
	}

	.cxe-review-card__text {
		font-size: 14px;
		line-height: 1.65;
	}

	.cxe-review-load-more {
		margin-top: 20px;
	}

	.cxe-review-load-more__button {
		width: 100%;
	}

	.cxe-review-gate,
	.cxe-review-form-wrapper {
		margin-top: 32px;
		padding: 18px 16px;
		border-radius: 12px;
	}

	.cxe-review-form-wrapper form {
		grid-template-columns: minmax(0, 1fr);
	}

	.cxe-review-form-wrapper form > * {
		grid-column: 1 !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cxe-review-load-more__button {
		transition: none;
	}
}

/* CXE — Keep product reviews away from mobile screen edges. */
@media (max-width: 689px) {
	.single-product #reviews.cxe-reviews {
		width: 100% !important;
		padding-inline: 16px;
	}
}
