:root {
	--cwl-icon-color: #6b7280;
	--cwl-active-icon-color: #e11d48;
	--cwl-counter-color: #e11d48;
	--cwl-bg: #ffffff;
	--cwl-card-bg: #ffffff;
	--cwl-text: #111827;
	--cwl-muted: #6b7280;
	--cwl-border: rgba(17, 24, 39, 0.12);
	--cwl-soft: rgba(17, 24, 39, 0.04);
	--cwl-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
	--cwl-radius: 18px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--cwl-bg: #0b0f19;
		--cwl-card-bg: #111827;
		--cwl-text: #f9fafb;
		--cwl-muted: #a1a1aa;
		--cwl-border: rgba(255, 255, 255, 0.14);
		--cwl-soft: rgba(255, 255, 255, 0.06);
		--cwl-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
	}
}

.cwl-button,
.cwl-clear-button,
.cwl-cart-button,
.cwl-remove-button,
.cwl-continue-button,
.cwl-share__button {
	appearance: none;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.cwl-button {
    background: #C159B3;
    border: 1px solid var(--cwl-border);
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
    color: #ffffff;
    min-height: 0;
    padding: 6px 8px;
    position: relative;
}

.cwl-button:hover,
.cwl-button:focus-visible {
    background: #e11d48;
    border-color: rgba(225, 29, 72, 0.35);
    color: #ffffff;
}

.cwl-button:focus-visible,
.cwl-clear-button:focus-visible,
.cwl-cart-button:focus-visible,
.cwl-remove-button:focus-visible,
.cwl-continue-button:focus-visible,
.cwl-header-icon:focus-visible,
.cwl-share__button:focus-visible,
.cwl-share__input:focus-visible,
.cwl-qty:focus-visible {
	outline: 3px solid rgba(225, 29, 72, 0.35);
	outline-offset: 3px;
}

.cwl-button.is-active {
	background: rgba(225, 29, 72, 0.1);
	border-color: rgba(225, 29, 72, 0.35);
	color: var(--cwl-active-icon-color);
}

.cwl-button.is-loading,
.cwl-clear-button.is-loading,
.cwl-cart-button.is-loading,
.cwl-remove-button.is-loading {
	cursor: wait;
	opacity: 0.62;
	pointer-events: none;
}

.cwl-button__icon,
.cwl-header-icon__svg {
	display: inline-flex;
	height: 22px;
	width: 22px;
}

.cwl-heart-svg {
	display: block;
	height: 1.35em;
	width: 1.35em;
}

.cwl-loop-button {
	margin-top: 0.55rem;
	min-height: 38px;
	padding: 0.6rem;
}

.cwl-single-button {
	margin-top: 0.75rem;
}

.cwl-header-icon {
	align-items: center;
	color: var(--cwl-icon-color);
	display: inline-flex;
	justify-content: center;
	position: relative;
	text-decoration: none;
/* 	width: 42px;
	height: 42px; */
	border-radius: 999px;
/* 	border: 1px solid var(--cwl-border);
	background: var(--cwl-card-bg); */
	box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
	transition: transform 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.cwl-header-icon:hover {
	color: var(--cwl-active-icon-color);
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(17, 24, 39, 0.14);
}

.cwl-header-icon__badge {
	align-items: center;
	background: var(--cwl-counter-color);
/* 	border: 2px solid var(--cwl-card-bg); */
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 0.72rem;
	font-weight: 500;
	height: 20px;
	justify-content: center;
	min-width: 20px;
	padding: 0 5px;
	position: absolute;
	right: -7px;
	top: -7px;
}

.cwl-page {

	color: var(--cwl-text);
	margin: 0 auto;
	max-width: 1180px;
	width: 100%;
}

.cwl-page__header {
    background: #000;
    padding: 20px;
    border-radius: 8px;
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 1.25rem;
}

.cwl-page__title {
	color: var(--cwl-text);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	line-height: 1.15;
	margin: 0 0 0.35rem;
}

.cwl-page__subtitle {
	color: var(--cwl-muted);
	margin: 0;
}

.cwl-clear-button {
	background: var(--cwl-soft);
	border: 1px solid var(--cwl-border);
	color: var(--cwl-text);
	padding: 0.78rem 1rem;
}

.cwl-clear-button:hover {
	background: rgba(225, 29, 72, 0.1);
	color: var(--cwl-active-icon-color);
}

.cwl-notice {
	border-radius: 14px;
	font-weight: 700;
	margin: 0 0 1rem;
	padding: 0.9rem 1rem;
}

.cwl-notice--success {
	background: rgba(34, 197, 94, 0.12);
	color: #15803d;
}

.cwl-notice--error {
	background: rgba(225, 29, 72, 0.12);
	color: #be123c;
}

.cwl-empty {
	align-items: center;
	background: var(--cwl-card-bg);
	border: 1px solid var(--cwl-border);
	border-radius: var(--cwl-radius);
	box-shadow: var(--cwl-shadow);
	display: flex;
	flex-direction: column;
	padding: clamp(2rem, 6vw, 4rem);
	text-align: center;
}

.cwl-empty__icon {
	align-items: center;
	background: var(--cwl-soft);
	border-radius: 999px;
	color: var(--cwl-active-icon-color);
	display: inline-flex;
	height: 74px;
	justify-content: center;
	margin-bottom: 1rem;
	width: 74px;
}

.cwl-empty__icon svg {
	height: 34px;
	width: 34px;
}

.cwl-empty__text {
	color: var(--cwl-muted);
	font-size: 1.05rem;
	margin: 0 0 1.25rem;
}

.cwl-continue-button,
.cwl-cart-button {
	background: var(--cwl-text);
	color: var(--cwl-bg);
	padding: 0.82rem 1.05rem;
}

.cwl-continue-button:hover,
.cwl-cart-button:hover {
	box-shadow: 0 12px 28px rgba(17, 24, 39, 0.16);
	transform: translateY(-1px);
}

.cwl-table-wrap {
	background: var(--cwl-card-bg);
	border: 1px solid var(--cwl-border);
	border-radius: var(--cwl-radius);
	box-shadow: var(--cwl-shadow);
	overflow: hidden;
	width: 100%;
}

.cwl-table {
	border-collapse: collapse;
	margin: 0;
	width: 100%;
}

.cwl-table th,
.cwl-table td {
	border-bottom: 1px solid var(--cwl-border);
	color: var(--cwl-text);
	padding: 1rem;
	text-align: left;
	vertical-align: middle;
}

.cwl-table th {
	background: var(--cwl-soft);
	color: var(--cwl-muted);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.cwl-table tr:last-child td {
	border-bottom: 0;
}

.cwl-row {
	transition: opacity 200ms ease, transform 200ms ease;
}

.cwl-row.is-removing {
	opacity: 0;
	transform: translateX(16px);
}

.cwl-product-cell {
	align-items: center;
	display: flex;
	gap: 0.9rem;
	min-width: 260px;
}

.cwl-product-image {
	background: var(--cwl-soft);
	border-radius: 14px;
	flex: 0 0 72px;
	height: 72px;
	overflow: hidden;
	width: 72px;
}

.cwl-product-image img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.cwl-product-info {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.cwl-product-name {
	color: var(--cwl-text);
	font-weight: 800;
	text-decoration: none;
}

.cwl-product-name:hover,
.cwl-product-link:hover {
	color: var(--cwl-active-icon-color);
}

.cwl-product-link {
	color: var(--cwl-muted);
	font-size: 0.86rem;
	text-decoration: none;
}

.cwl-price {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	white-space: nowrap;
}

.cwl-price__regular {
	color: var(--cwl-muted);
	text-decoration: line-through;
}

.cwl-price__sale {
	color: var(--cwl-active-icon-color);
	font-weight: 800;
}

.cwl-stock .in-stock {
	color: #15803d;
	font-weight: 800;
}

.cwl-stock .out-of-stock {
	color: #be123c;
	font-weight: 800;
}

.cwl-sku {
	color: var(--cwl-muted);
	font-size: 0.92rem;
}

.cwl-qty {
	background: var(--cwl-card-bg);
	border: 1px solid var(--cwl-border);
	border-radius: 12px;
	color: var(--cwl-text);
	font-weight: 700;
	max-width: 76px;
	min-height: 42px;
	padding: 0.55rem;
	text-align: center;
}

.cwl-subtotal {
	font-weight: 800;
	white-space: nowrap;
}

.cwl-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.cwl-remove-button {
	background: transparent;
	border: 1px solid var(--cwl-border);
	color: var(--cwl-muted);
	padding: 0.82rem 1rem;
}

.cwl-remove-button:hover {
	border-color: rgba(225, 29, 72, 0.35);
	color: var(--cwl-active-icon-color);
}

.cwl-cart-button--link {
	text-decoration: none;
}

.cwl-share {
	align-items: center;
	background: var(--cwl-card-bg);
	border: 1px solid var(--cwl-border);
	border-radius: var(--cwl-radius);
	box-shadow: var(--cwl-shadow);
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 1rem;
	padding: 1rem;
}

.cwl-share__label {
	color: var(--cwl-muted);
	font-weight: 800;
}

.cwl-share__input {
	background: var(--cwl-soft);
	border: 1px solid var(--cwl-border);
	border-radius: 12px;
	color: var(--cwl-text);
	flex: 1 1 220px;
	min-height: 42px;
	padding: 0.65rem 0.8rem;
}

.cwl-share__button {
	background: var(--cwl-soft);
	border: 1px solid var(--cwl-border);
	color: var(--cwl-text);
	padding: 0.72rem 0.95rem;
}

.cwl-share__button:hover {
	color: var(--cwl-active-icon-color);
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (max-width: 820px) {
	.cwl-page__header {
		align-items: flex-start;
		flex-direction: column;
	}

	.cwl-table,
	.cwl-table thead,
	.cwl-table tbody,
	.cwl-table th,
	.cwl-table td,
	.cwl-table tr {
		display: block;
	}

	.cwl-table thead {
		height: 1px;
		overflow: hidden;
		position: absolute;
		width: 1px;
	}

	.cwl-table tr {
		border-bottom: 1px solid var(--cwl-border);
		padding: 1rem;
	}

	.cwl-table tr:last-child {
		border-bottom: 0;
	}

	.cwl-table td {
		align-items: center;
		border-bottom: 0;
		display: flex;
		justify-content: space-between;
		padding: 0.55rem 0;
		text-align: right;
		width: 100%;
	}

	.cwl-table td::before {
		color: var(--cwl-muted);
		content: attr(data-label);
		font-size: 0.78rem;
		font-weight: 800;
		letter-spacing: 0.04em;
		margin-right: 1rem;
		text-align: left;
		text-transform: uppercase;
	}

	.cwl-product-cell {
		align-items: flex-start;
		justify-content: flex-start !important;
		min-width: 0;
		text-align: left !important;
	}

	.cwl-product-cell::before,
	.cwl-actions::before {
		content: none !important;
	}

	.cwl-actions {
		align-items: stretch;
		flex-direction: column;
		width: 100%;
	}

	.cwl-cart-button,
	.cwl-remove-button {
		width: 100%;
	}
}
