/* Cartlumen – Smart Side Cart for WooCommerce */

:root {
	--cw-primary: #4f46e5;
	--cw-primary-text: #fff;
	--cw-bg: #fff;
	--cw-text: #111827;
	--cw-muted: #6b7280;
	--cw-accent: #10b981;
	--cw-radius: 14px;
	--cw-width: 440px;
	--cw-mwidth: 100%;
}

.cw-root,
.cw-fab,
.cw-toast,
.cw-sticky {
	--cw-surface: #f5f6f8;
	--cw-border: #e8eaee;
	--cw-surface: color-mix(in srgb, var(--cw-text) 4.5%, var(--cw-bg));
	--cw-border: color-mix(in srgb, var(--cw-text) 10%, var(--cw-bg));
	--cw-primary-soft: color-mix(in srgb, var(--cw-primary) 12%, var(--cw-bg));
	--cw-accent-soft: color-mix(in srgb, var(--cw-accent) 14%, var(--cw-bg));
	--cw-r-sm: calc(var(--cw-radius) * 0.6);
	--cw-ease: cubic-bezier(0.32, 0.72, 0, 1);
	--cw-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.28), 0 8px 20px -8px rgba(15, 23, 42, 0.16);
	font-size: 15px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

.cw-root *,
.cw-root *::before,
.cw-root *::after,
.cw-sticky *,
.cw-toast * {
	box-sizing: border-box;
}

/* Theme-proof resets: many themes style every <button> and <input> globally. */
.cw-root button,
.cw-fab,
.cw-toast button,
.cw-sticky button {
	-webkit-appearance: none;
	appearance: none;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: inherit;
	cursor: pointer;
	font: inherit;
	letter-spacing: normal;
	line-height: inherit;
	margin: 0;
	min-height: 0;
	min-width: 0;
	padding: 0;
	text-shadow: none;
	text-transform: none;
	width: auto;
}

.cw-root a {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

.cw-root h2,
.cw-root h3,
.cw-root p,
.cw-root ul,
.cw-root dl,
.cw-root dd {
	margin: 0;
	padding: 0;
}

.cw-root ul {
	list-style: none;
}

.cw-i {
	display: block;
	flex: none;
}

html.cw-lock,
html.cw-lock body {
	overflow: hidden !important;
}

/* ---------- Shell ---------- */

.cw-root {
	position: fixed;
	inset: 0;
	z-index: 999990;
	pointer-events: none;
	visibility: hidden;
	color: var(--cw-text);
	transition: visibility 0s linear 0.45s;
}

.cw-root.is-open {
	pointer-events: auto;
	visibility: visible;
	transition: none;
}

.cw-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.42);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.cw-blur .cw-overlay {
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.cw-root.is-open .cw-overlay {
	opacity: 1;
}

.cw-panel {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	width: min(var(--cw-width), 100vw);
	background: var(--cw-bg);
	box-shadow: var(--cw-shadow);
	transform: translateX(104%);
	transition: transform 0.45s var(--cw-ease), width 0.45s var(--cw-ease);
	outline: none;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.cw-pos-left .cw-panel {
	right: auto;
	left: 0;
	transform: translateX(-104%);
}

.cw-root.is-open .cw-panel {
	transform: none;
}

@media (max-width: 600px) {
	.cw-panel {
		width: var(--cw-mwidth);
	}
}

.cw-content {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

/* ---------- Checkout & thank-you step ---------- */

.cw-panel.is-checkout {
	width: min(max(var(--cw-width), var(--cw-cwidth, 560px)), 100vw);
}

@media (max-width: 600px) {
	.cw-panel.is-checkout {
		width: 100%;
	}
}

.cw-content[hidden],
.cw-checkout[hidden] {
	display: none !important;
}

.cw-checkout {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

.cw-checkout .cw-head {
	gap: 6px;
}

.cw-checkout .cw-title {
	flex: 1;
}

.cw-root .cw-back {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin-left: -8px;
	border-radius: 999px;
	color: var(--cw-text);
	transition: background 0.2s;
}

.cw-root .cw-back:hover {
	background: var(--cw-surface);
}

.is-thanks .cw-back {
	visibility: hidden;
}

.is-thanks .cw-checkout .cw-title {
	color: var(--cw-accent);
}

.cw-checkout__frame {
	position: relative;
	flex: 1;
	min-height: 0;
}

.cw-checkout__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: var(--cw-bg);
}

.cw-checkout__loading {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	background: var(--cw-bg);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s;
}

.cw-checkout.is-loading .cw-checkout__loading {
	opacity: 1;
	pointer-events: auto;
}

.cw-checkout__loading span {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 3px solid var(--cw-border);
	border-top-color: var(--cw-primary);
	animation: cw-spin 0.8s linear infinite;
}

@keyframes cw-spin {
	to { transform: rotate(360deg); }
}

.cw-thanks-foot {
	display: none;
	flex: none;
	padding: 14px 20px 18px;
	border-top: 1px solid var(--cw-border);
}

.is-thanks .cw-thanks-foot {
	display: block;
}

/* Top progress line while a request is in flight. */
.cw-busy {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	overflow: hidden;
	opacity: 0;
	transition: opacity 0.2s;
	pointer-events: none;
}

.cw-busy::after {
	content: "";
	position: absolute;
	inset: 0;
	width: 40%;
	background: var(--cw-primary);
	border-radius: 3px;
	animation: cw-slide 0.9s ease-in-out infinite;
}

.cw-root.is-busy .cw-busy {
	opacity: 1;
}

@keyframes cw-slide {
	from { transform: translateX(-100%); }
	to { transform: translateX(260%); }
}

/* ---------- Header ---------- */

.cw-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px 14px;
	border-bottom: 1px solid var(--cw-border);
	flex: none;
}

.cw-root .cw-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--cw-text);
	line-height: 1.2;
}

.cw-title__count {
	display: inline-grid;
	place-items: center;
	min-width: 24px;
	height: 24px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--cw-primary-soft);
	color: var(--cw-primary);
	font-size: 12.5px;
	font-weight: 700;
}

.cw-root .cw-close {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	color: var(--cw-muted);
	transition: background 0.2s, color 0.2s, transform 0.2s;
}

.cw-root .cw-close:hover {
	background: var(--cw-surface);
	color: var(--cw-text);
	transform: rotate(90deg);
}

/* ---------- Body ---------- */

.cw-body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 4px 20px 20px;
	scrollbar-width: thin;
}

.cw-skeleton {
	padding-top: 20px;
}

.cw-skeleton i {
	display: block;
	height: 86px;
	margin-bottom: 14px;
	border-radius: var(--cw-r-sm);
	background: linear-gradient(90deg, var(--cw-surface) 0%, var(--cw-border) 50%, var(--cw-surface) 100%);
	background-size: 200% 100%;
	animation: cw-shimmer 1.2s linear infinite;
}

@keyframes cw-shimmer {
	to { background-position: -200% 0; }
}

/* Countdown */
.cw-countdown {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 14px 0 0;
	padding: 9px 12px;
	border-radius: var(--cw-r-sm);
	background: #fff7ed;
	color: #9a3412;
	font-size: 13.5px;
}

.cw-countdown b {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

.cw-countdown.is-expired {
	background: var(--cw-surface);
	color: var(--cw-muted);
}

/* Rewards ladder */
.cw-rewards {
	margin: 14px 0 4px;
	padding: 14px 14px 12px;
	border-radius: var(--cw-radius);
	background: var(--cw-surface);
}

.cw-rewards__msg {
	font-size: 14px;
	text-align: center;
	margin-bottom: 14px !important;
}

.cw-rewards__msg strong {
	color: var(--cw-text);
	font-weight: 700;
}

.cw-rewards.is-complete .cw-rewards__msg strong {
	color: var(--cw-accent);
}

.cw-rewards__track {
	position: relative;
	height: 8px;
	margin: 0 12px;
	border-radius: 99px;
	background: var(--cw-border);
}

.cw-rewards__fill {
	position: absolute;
	inset: 0 auto 0 0;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--cw-primary), var(--cw-accent));
	transition: width 0.7s var(--cw-ease);
}

.cw-rewards__stop {
	position: absolute;
	top: 50%;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: var(--cw-bg);
	color: var(--cw-muted);
	border: 2px solid var(--cw-border);
	transform: translate(-50%, -50%);
	transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.cw-rewards__stop .cw-i {
	width: 14px;
	height: 14px;
}

.cw-rewards__stop.is-done {
	background: var(--cw-accent);
	border-color: var(--cw-accent);
	color: #fff;
	animation: cw-pop 0.45s var(--cw-ease);
}

@keyframes cw-pop {
	0% { transform: translate(-50%, -50%) scale(0.6); }
	60% { transform: translate(-50%, -50%) scale(1.18); }
	100% { transform: translate(-50%, -50%) scale(1); }
}

.cw-rewards__labels {
	position: relative;
	height: 16px;
	margin: 12px 12px 0;
	font-size: 11.5px;
	color: var(--cw-muted);
}

.cw-rewards__labels span {
	position: absolute;
	top: 0;
	transform: translateX(-50%);
	white-space: nowrap;
}

.cw-rewards__labels span.is-last {
	transform: translateX(-85%);
}

.cw-rewards__labels span.is-done {
	color: var(--cw-accent);
	font-weight: 600;
}

/* Notices */
.cw-notice {
	margin: 14px 0 0;
	padding: 10px 12px;
	border-radius: var(--cw-r-sm);
	font-size: 13.5px;
}

.cw-notice--error {
	background: #fef2f2;
	color: #b91c1c;
}

.cw-undo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 14px 0 0;
	padding: 10px 12px;
	border-radius: var(--cw-r-sm);
	background: var(--cw-text);
	color: var(--cw-bg);
	font-size: 13.5px;
	animation: cw-in 0.3s var(--cw-ease);
}

.cw-root .cw-undo button {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@keyframes cw-in {
	from { opacity: 0; transform: translateY(-6px); }
}

/* ---------- Items ---------- */

.cw-items {
	margin-top: 6px !important;
}

.cw-item {
	display: grid;
	grid-template-columns: 76px 1fr auto;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--cw-border);
	transition: opacity 0.25s, transform 0.25s;
	animation: cw-in 0.35s var(--cw-ease) both;
}

.cw-item:last-child {
	border-bottom: 0;
}

.cw-item.is-removing {
	opacity: 0;
	transform: translateX(24px);
}

.cw-item.is-pending .cw-item__total {
	opacity: 0.45;
}

.cw-item__thumb {
	width: 76px;
	height: 76px;
	border-radius: var(--cw-r-sm);
	overflow: hidden;
	background: var(--cw-surface);
}

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

.cw-item__info {
	min-width: 0;
}

.cw-item__name {
	font-weight: 600;
	line-height: 1.3;
	font-size: 14.5px;
}

.cw-item__name a:hover {
	color: var(--cw-primary);
}

.cw-item .variation {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0 6px;
	margin: 4px 0 0;
	font-size: 12.5px;
	color: var(--cw-muted);
}

.cw-item .variation dt,
.cw-item .variation dd,
.cw-item .variation p {
	margin: 0;
	float: none;
	font-weight: 400;
}

.cw-item__price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 5px;
	font-size: 13.5px;
	color: var(--cw-muted);
}

.cw-item__price del {
	opacity: 0.75;
}

.cw-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.5;
}

.cw-badge .cw-i {
	width: 13px;
	height: 13px;
}

.cw-badge--save,
.cw-badge--gift {
	background: var(--cw-accent-soft);
	color: var(--cw-accent);
}

.cw-item__row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}

.cw-qty {
	display: inline-flex;
	align-items: center;
	height: 34px;
	border: 1px solid var(--cw-border);
	border-radius: 999px;
	overflow: hidden;
}

.cw-root .cw-qty button {
	display: grid;
	place-items: center;
	width: 32px;
	height: 100%;
	color: var(--cw-text);
	transition: background 0.15s;
}

.cw-root .cw-qty button:hover:not(:disabled) {
	background: var(--cw-surface);
}

.cw-root .cw-qty button:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.cw-qty .cw-i {
	width: 15px;
	height: 15px;
}

.cw-root .cw-qty input {
	width: 34px;
	height: 100%;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--cw-text);
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

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

.cw-qty-fixed {
	font-size: 13px;
	color: var(--cw-muted);
}

.cw-root .cw-remove {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	color: var(--cw-muted);
	transition: background 0.15s, color 0.15s;
}

.cw-root .cw-remove:hover {
	background: #fef2f2;
	color: #dc2626;
}

.cw-remove .cw-i {
	width: 17px;
	height: 17px;
}

.cw-item__total {
	font-weight: 700;
	font-size: 14.5px;
	white-space: nowrap;
	text-align: right;
	transition: opacity 0.2s;
}

.cw-item.is-gift .cw-item__total {
	color: var(--cw-accent);
}

/* ---------- Empty ---------- */

.cw-empty {
	text-align: center;
	padding: 48px 12px 28px;
}

.cw-empty__icon {
	display: inline-grid;
	place-items: center;
	width: 76px;
	height: 76px;
	margin-bottom: 16px;
	border-radius: 999px;
	background: var(--cw-primary-soft);
	color: var(--cw-primary);
}

.cw-empty__icon .cw-i {
	width: 34px;
	height: 34px;
}

.cw-root .cw-empty h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--cw-text);
	margin-bottom: 6px;
}

.cw-empty p {
	color: var(--cw-muted);
	margin-bottom: 20px !important;
}

.cw-empty .cw-btn {
	display: inline-flex;
	width: auto;
	padding: 0 26px;
}

/* ---------- Recommendations ---------- */

.cw-recs {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--cw-border);
}

.cw-recs__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.cw-root .cw-recs h3 {
	font-size: 15px;
	font-weight: 700;
	color: var(--cw-text);
}

.cw-recs__nav {
	display: flex;
	gap: 6px;
}

.cw-root .cw-recs__nav button {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	border: 1px solid var(--cw-border);
	color: var(--cw-text);
}

.cw-root .cw-recs__nav button:hover {
	background: var(--cw-surface);
}

.cw-recs__nav .cw-i {
	width: 16px;
	height: 16px;
}

.cw-recs--carousel .cw-recs__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc(50% - 6px);
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 2px;
}

.cw-recs--carousel .cw-recs__track::-webkit-scrollbar {
	display: none;
}

.cw-recs--carousel .cw-rec {
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	padding: 10px;
	border-radius: var(--cw-radius);
	background: var(--cw-surface);
}

.cw-recs--carousel .cw-rec__img {
	display: block;
	aspect-ratio: 1;
	border-radius: var(--cw-r-sm);
	overflow: hidden;
	background: var(--cw-bg);
	margin-bottom: 8px;
}

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

.cw-rec__body {
	flex: 1;
	min-width: 0;
}

.cw-rec__name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
}

.cw-rec__price {
	margin-top: 3px;
	font-size: 13px;
	color: var(--cw-muted);
}

.cw-rec__price del {
	opacity: 0.7;
}

.cw-rec__price ins {
	text-decoration: none;
	color: var(--cw-text);
	font-weight: 600;
}

.cw-root .cw-rec__add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 32px;
	margin-top: 10px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--cw-bg);
	border: 1px solid var(--cw-border);
	color: var(--cw-text);
	font-size: 13px;
	font-weight: 600;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cw-root .cw-rec__add:hover {
	background: var(--cw-primary);
	border-color: var(--cw-primary);
	color: var(--cw-primary-text);
}

.cw-rec__add .cw-i {
	width: 15px;
	height: 15px;
}

.cw-rec__add.loading {
	opacity: 0.6;
	pointer-events: none;
}

.cw-recs--list .cw-rec {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
}

.cw-recs--list .cw-rec__img {
	width: 56px;
	height: 56px;
	border-radius: var(--cw-r-sm);
	overflow: hidden;
	background: var(--cw-surface);
}

.cw-root .cw-recs--list .cw-rec__add {
	margin-top: 0;
}

/* ---------- Footer ---------- */

.cw-foot {
	flex: none;
	padding: 14px 20px 18px;
	border-top: 1px solid var(--cw-border);
	background: var(--cw-bg);
	box-shadow: 0 -12px 24px -18px rgba(15, 23, 42, 0.25);
}

.cw-coupon {
	margin-bottom: 12px;
}

.cw-root .cw-coupon__toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--cw-text);
}

.cw-coupon__toggle .cw-i {
	width: 17px;
	height: 17px;
	color: var(--cw-muted);
}

.cw-coupon__toggle .cw-i--chevron {
	margin-left: auto;
	transition: transform 0.25s;
}

.cw-coupon.is-open .cw-i--chevron {
	transform: rotate(180deg);
}

.cw-coupon__form {
	display: none;
	gap: 8px;
	margin-top: 10px;
}

.cw-coupon.is-open .cw-coupon__form {
	display: flex;
	animation: cw-in 0.25s var(--cw-ease);
}

.cw-root .cw-coupon__form input {
	flex: 1;
	min-width: 0;
	height: 42px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--cw-border);
	border-radius: var(--cw-r-sm);
	background: var(--cw-bg);
	color: var(--cw-text);
	box-shadow: none;
	font: inherit;
	font-size: 14px;
	text-transform: uppercase;
}

.cw-root .cw-coupon__form input:focus {
	outline: none;
	border-color: var(--cw-primary);
	box-shadow: 0 0 0 3px var(--cw-primary-soft);
}

.cw-root .cw-coupon__form button {
	height: 42px;
	padding: 0 18px;
	border-radius: var(--cw-r-sm);
	background: var(--cw-text);
	color: var(--cw-bg);
	font-weight: 600;
	font-size: 14px;
}

.cw-totals {
	display: grid;
	gap: 6px;
	font-size: 14px;
}

.cw-totals > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.cw-totals dt {
	color: var(--cw-muted);
	font-weight: 400;
}

.cw-totals dd {
	font-weight: 600;
	margin: 0;
}

.cw-totals__discount dd {
	color: var(--cw-accent);
}

.cw-totals__total {
	margin-top: 4px;
	padding-top: 8px;
	border-top: 1px dashed var(--cw-border);
}

.cw-totals__total dt,
.cw-totals__total dd {
	color: var(--cw-text);
	font-weight: 700;
	font-size: 16.5px;
}

.cw-totals .tax_label,
.cw-totals small {
	font-size: 11.5px;
	font-weight: 400;
	color: var(--cw-muted);
}

.cw-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 4px 2px 8px;
	border-radius: 999px;
	background: var(--cw-accent-soft);
	color: var(--cw-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.cw-chip .cw-i {
	width: 13px;
	height: 13px;
}

.cw-root .cw-chip button {
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	font-size: 15px;
	line-height: 1;
}

.cw-root .cw-chip button:hover {
	background: var(--cw-accent);
	color: #fff;
}

.cw-savings {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 10px !important;
	padding: 7px 10px;
	border-radius: var(--cw-r-sm);
	background: var(--cw-accent-soft);
	color: var(--cw-accent);
	font-size: 13px;
}

.cw-savings .cw-i {
	width: 16px;
	height: 16px;
}

.cw-note {
	margin-top: 10px !important;
	font-size: 12px;
	color: var(--cw-muted);
	text-align: center;
}

.cw-root .cw-btn,
.cw-sticky .cw-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 52px;
	border-radius: var(--cw-radius);
	font-size: 15.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition: transform 0.15s, box-shadow 0.2s, filter 0.2s, background 0.2s;
}

.cw-root .cw-btn--primary,
.cw-sticky .cw-btn--primary {
	background: var(--cw-primary);
	color: var(--cw-primary-text);
	box-shadow: 0 10px 22px -10px var(--cw-primary);
}

.cw-root .cw-btn--primary:hover,
.cw-sticky .cw-btn--primary:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
	color: var(--cw-primary-text);
}

.cw-root .cw-btn--primary:active {
	transform: translateY(0) scale(0.99);
}

.cw-btn--checkout {
	margin-top: 12px;
}

.cw-btn .cw-i {
	width: 18px;
	height: 18px;
}

.cw-btn__sep {
	opacity: 0.6;
}

.cw-btn .woocommerce-Price-amount,
.cw-btn .amount {
	color: inherit;
}

.cw-btn small {
	display: none;
}

.cw-root .cw-btn--ghost {
	height: 40px;
	margin-top: 6px;
	color: var(--cw-muted);
	font-size: 13.5px;
	font-weight: 600;
}

.cw-root .cw-btn--ghost:hover {
	color: var(--cw-text);
}

.cw-trust {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-top: 8px;
	font-size: 12px;
	color: var(--cw-muted);
}

.cw-trust__text {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.cw-trust__text .cw-i {
	width: 15px;
	height: 15px;
	color: var(--cw-accent);
}

.cw-trust__pay {
	display: inline-flex;
	gap: 4px;
}

.cw-trust__pay i {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	height: 20px;
	padding: 0 6px;
	border: 1px solid var(--cw-border);
	border-radius: 4px;
	font-size: 9.5px;
	font-style: normal;
	font-weight: 800;
	letter-spacing: 0.03em;
	color: var(--cw-muted);
}

.cw-trust__pay .cw-i {
	width: 10px;
	height: 10px;
}

/* ---------- Floating button ---------- */

.cw-fab {
	position: fixed;
	bottom: 22px;
	right: 22px;
	z-index: 999980;
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	height: 60px;
	min-width: 60px;
	padding: 0 18px !important;
	border-radius: 999px !important;
	background: var(--cw-primary) !important;
	color: var(--cw-primary-text) !important;
	box-shadow: 0 14px 32px -10px var(--cw-primary), 0 4px 12px -4px rgba(15, 23, 42, 0.3) !important;
	transition: transform 0.25s var(--cw-ease), opacity 0.25s, bottom 0.35s var(--cw-ease);
}

.cw-fab--bottom-left {
	right: auto;
	left: 22px;
}

.cw-fab:hover {
	transform: translateY(-2px) scale(1.03);
}

.cw-fab .cw-i {
	width: 24px;
	height: 24px;
}

.cw-fab__badge {
	position: absolute;
	top: -4px;
	right: -4px;
	display: grid;
	place-items: center;
	min-width: 23px;
	height: 23px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--cw-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	border: 2px solid #fff;
	line-height: 1;
}

.cw-fab.is-empty .cw-fab__badge {
	display: none;
}

.cw-fab__total {
	font-weight: 700;
	font-size: 14.5px;
	white-space: nowrap;
}

.cw-fab__total:empty {
	display: none;
}

.cw-fab.is-hidden {
	opacity: 0;
	pointer-events: none;
	transform: scale(0.6);
}

.cw-fab.is-bump {
	animation: cw-bump 0.6s var(--cw-ease);
}

@keyframes cw-bump {
	0% { transform: scale(1); }
	30% { transform: scale(1.18) rotate(-6deg); }
	60% { transform: scale(0.96) rotate(3deg); }
	100% { transform: scale(1); }
}

html.cw-lock .cw-fab {
	opacity: 0;
	pointer-events: none;
}

html.cw-sticky-on .cw-fab {
	bottom: 96px;
}

/* ---------- Toast ---------- */

.cw-toast {
	position: fixed;
	left: 50%;
	bottom: 26px;
	z-index: 999995;
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: calc(100vw - 32px);
	padding: 12px 14px 12px 18px;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.5);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 16px);
	transition: opacity 0.3s, transform 0.4s var(--cw-ease);
}

.cw-toast:empty {
	display: none;
}

.cw-toast.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

.cw-toast button {
	padding: 6px 14px !important;
	border-radius: 999px !important;
	background: var(--cw-primary) !important;
	color: var(--cw-primary-text) !important;
	font-weight: 700 !important;
	font-size: 13px !important;
}

html.cw-sticky-on .cw-toast {
	bottom: 100px;
}

/* ---------- Sticky add to cart ---------- */

.cw-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999970;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: var(--cw-bg);
	color: var(--cw-text);
	border-top: 1px solid var(--cw-border);
	box-shadow: 0 -10px 30px -12px rgba(15, 23, 42, 0.25);
	transform: translateY(110%);
	transition: transform 0.4s var(--cw-ease);
}

.cw-sticky.is-visible {
	transform: none;
}

.cw-sticky__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 1200px;
	margin: 0 auto;
}

.cw-sticky__img {
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: var(--cw-r-sm);
	overflow: hidden;
	background: var(--cw-surface);
}

.cw-sticky__img img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	margin: 0 !important;
}

.cw-sticky__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.cw-sticky__info strong {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 15px;
}

.cw-sticky__price {
	font-size: 13.5px;
	color: var(--cw-muted);
}

.cw-sticky__price ins {
	text-decoration: none;
	color: var(--cw-text);
	font-weight: 600;
}

.cw-sticky .cw-btn {
	width: auto;
	height: 46px;
	padding: 0 28px;
	flex: none;
}

@media (min-width: 769px) {
	.cw-sticky--mobile {
		display: none;
	}
}

@media (max-width: 480px) {
	.cw-sticky__img {
		display: none;
	}
	.cw-sticky .cw-btn {
		padding: 0 18px;
	}
}

/* ---------- Confetti ---------- */

.cw-confetti {
	position: absolute;
	left: 0;
	right: 0;
	top: 120px;
	height: 0;
	pointer-events: none;
	z-index: 5;
}

.cw-confetti i {
	position: absolute;
	top: 0;
	width: 8px;
	height: 12px;
	border-radius: 2px;
	animation: cw-confetti 1.5s cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
}

@keyframes cw-confetti {
	0% { transform: translate(0, 0) rotate(0); opacity: 1; }
	45% { transform: translate(calc(var(--x) * 0.7), var(--y)) rotate(calc(var(--r) * 0.5)); opacity: 1; }
	100% { transform: translate(var(--x), 260px) rotate(var(--r)); opacity: 0; }
}

/* ---------- Focus ---------- */

.cw-root :focus-visible,
.cw-fab:focus-visible,
.cw-sticky :focus-visible,
.cw-toast :focus-visible {
	outline: 2px solid var(--cw-primary);
	outline-offset: 2px;
}

/* ---------- Presets ---------- */

/* Minimal: flat, hairline borders, square-ish corners. */
.cw-preset-minimal {
	--cw-shadow: 0 0 0 1px var(--cw-border);
}

.cw-preset-minimal .cw-rewards,
.cw-preset-minimal.cw-root .cw-recs--carousel .cw-rec {
	background: transparent;
	border: 1px solid var(--cw-border);
}

.cw-preset-minimal.cw-root .cw-btn--primary,
.cw-sticky.cw-preset-minimal .cw-btn--primary,
.cw-fab.cw-preset-minimal {
	box-shadow: none !important;
}

.cw-preset-minimal .cw-foot {
	box-shadow: none;
}

/* Bold: confident type, solid header band, chunky progress. */
.cw-preset-bold .cw-head {
	background: var(--cw-primary);
	border-bottom: 0;
}

.cw-preset-bold.cw-root .cw-title,
.cw-preset-bold.cw-root .cw-close,
.cw-preset-bold.cw-root .cw-back {
	color: var(--cw-primary-text);
}

.cw-preset-bold.cw-root .cw-close:hover {
	background: rgba(255, 255, 255, 0.15);
	color: var(--cw-primary-text);
}

.cw-preset-bold .cw-title__count {
	background: var(--cw-primary-text);
	color: var(--cw-primary);
}

.cw-preset-bold .cw-rewards__track {
	height: 12px;
}

.cw-preset-bold.cw-root .cw-btn--primary,
.cw-sticky.cw-preset-bold .cw-btn--primary {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 800;
}

/* Midnight: tuned for dark surfaces (pair with the dark colour set in settings). */
.cw-preset-midnight .cw-notice--error {
	background: rgba(220, 38, 38, 0.15);
	color: #fca5a5;
}

.cw-preset-midnight .cw-countdown {
	background: rgba(251, 146, 60, 0.14);
	color: #fdba74;
}

.cw-preset-midnight .cw-fab__badge {
	border-color: var(--cw-bg);
}

@media (prefers-reduced-motion: reduce) {
	.cw-root *,
	.cw-panel,
	.cw-fab,
	.cw-sticky,
	.cw-toast {
		animation: none !important;
		transition: none !important;
	}
}
