/**
 * RUFALES 2.0 visual skin for Side Cart WooCommerce.
 * The rules are scoped to the plugin markup and intentionally leave Woo
 * behaviour, cart fragments, shipping and checkout URLs untouched.
 */

.xoo-wsc-markup {
	--rufsc-canvas: var(--rufales-color-canvas, #fffdf8);
	--rufsc-surface: var(--rufales-color-surface, #f5f1e8);
	--rufsc-surface-strong: var(--rufales-color-surface-strong, #eae2d4);
	--rufsc-white: var(--rufales-color-white, #ffffff);
	--rufsc-ink: var(--rufales-color-ink, #17211b);
	--rufsc-muted: var(--rufales-color-muted, #59645d);
	--rufsc-border: var(--rufales-color-border, #d7d4cc);
	--rufsc-forest: var(--rufales-color-forest-800, #1d4d37);
	--rufsc-forest-dark: var(--rufales-color-forest-900, #163d2b);
	--rufsc-focus: var(--rufales-color-focus, #a85f13);
	--rufsc-font: var(--rufales-font-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	--rufsc-radius: var(--rufales-radius-md, .5rem);
	--rufsc-shadow: var(--rufales-shadow-card, 0 .5rem 1.5rem rgba(23, 33, 27, .08));
	font-family: var(--rufsc-font);
	color: var(--rufsc-ink);
}

.xoo-wsc-container,
.xoo-wsc-slider {
	width: min(28.5rem, 100vw) !important;
	background: var(--rufsc-canvas) !important;
	box-shadow: -1rem 0 3rem rgba(23, 33, 27, .16);
}

.xoo-wsc-cart-active .xoo-wsc-opac {
	background: #10261b;
	opacity: .56;
}

.xoo-wsc-markup *::-webkit-scrollbar-track {
	background: var(--rufsc-surface);
}

.xoo-wsc-markup *::-webkit-scrollbar-thumb {
	background: #aab5ac;
}

.xoo-wsc-header {
	position: relative;
	min-height: 5.5rem;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid var(--rufsc-border);
	background: var(--rufsc-surface);
	color: var(--rufsc-ink);
}

.xoo-wsch-top {
	width: 100%;
	margin: 0;
	justify-content: flex-start;
}

.xoo-wsch-new .xoo-wsch-basket,
.xoo-wsch-top .xoo-wsch-basket {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0 .75rem 0 0;
	border: 1px solid var(--rufsc-border);
	border-radius: 50%;
	background: var(--rufsc-white);
	color: var(--rufsc-forest);
}

.xoo-wsch-basket .xoo-wscb-icon {
	font-size: 1.5rem;
}

.xoo-wsch-basket .xoo-wscb-count {
	position: static;
	display: block;
	width: auto;
	height: auto;
	margin-inline-start: -.55rem;
	font-size: .72rem;
	font-weight: 800;
	line-height: 1;
	color: var(--rufsc-forest);
}

.xoo-wsch-text {
	margin: 0 !important;
	font-size: 1.25rem;
	font-weight: 780;
	letter-spacing: -.015em;
}

span.xoo-wsch-close {
	top: 50%;
	right: 1.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	transform: translateY(-50%);
	border: 1px solid transparent;
	border-radius: 50%;
	color: var(--rufsc-ink);
	font-size: 1.1rem;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

span.xoo-wsch-close:hover {
	border-color: var(--rufsc-border);
	background: var(--rufsc-white);
	color: var(--rufsc-forest);
}

.xoo-wsc-body {
	padding: 1rem;
	background: var(--rufsc-canvas);
}

.xoo-wsc-pattern-card {
	margin: 0 0 .875rem;
	border: 1px solid var(--rufsc-border);
	border-radius: var(--rufsc-radius);
	background: var(--rufsc-white);
	box-shadow: var(--rufsc-shadow);
	overflow: hidden;
}

.xoo-wsc-pattern-card .xoo-wsc-product {
	min-height: 7.25rem;
	padding: .875rem;
}

.xoo-wsc-pattern-card .xoo-wsc-img-col {
	width: 5.25rem;
	min-width: 5.25rem;
	margin: 0;
	border: 1px solid var(--rufsc-border);
	border-radius: .35rem;
	background: var(--rufsc-surface);
	overflow: hidden;
}

.xoo-wsc-pattern-card .xoo-wsc-img-col img {
	width: 100%;
	height: 5.25rem;
	object-fit: cover;
}

.xoo-wsc-sum-col {
	padding-left: .875rem;
}

span.xoo-wsc-pname,
span.xoo-wsc-pname a {
	color: var(--rufsc-ink);
	font-size: .98rem;
	font-weight: 760;
	line-height: 1.28;
}

.xoo-wsc-product dl.variation,
.xoo-wsc-product dl.variation p {
	margin-top: .3rem;
	color: var(--rufsc-muted);
	font-size: .8rem;
	font-style: normal;
	line-height: 1.4;
}

.xoo-wsc-product dl.variation dt {
	font-weight: 700;
}

.xoo-wsc-qty-price {
	margin-top: .55rem;
	color: var(--rufsc-muted);
	font-size: .875rem;
	font-weight: 650;
}

.xoo-wsc-qty-price .woocommerce-Price-amount,
.xoo-wsc-smr-ptotal .woocommerce-Price-amount {
	color: var(--rufsc-ink);
	font-weight: 800;
}

span.xoo-wsc-smr-del {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	margin: 0;
	border: 1px solid var(--rufsc-border);
	border-radius: 50%;
	background: var(--rufsc-white);
	color: var(--rufsc-muted);
	font-size: .9rem;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

span.xoo-wsc-smr-del:hover {
	border-color: #d8a09b;
	background: #fcebe9;
	color: #8f2f2a;
}

.xoo-wsc-footer {
	padding: 1.125rem 1rem 1rem;
	border-top: 1px solid var(--rufsc-border);
	background: var(--rufsc-white);
	box-shadow: 0 -.65rem 1.5rem rgba(23, 33, 27, .06);
}

.xoo-wsc-ft-totals {
	padding-bottom: .75rem;
}

.xoo-wsc-ft-amt {
	align-items: baseline;
	padding: 0;
}

span.xoo-wsc-ft-amt-label {
	font-size: .92rem;
	font-weight: 700;
	color: var(--rufsc-muted);
}

.xoo-wsc-ft-amt-value {
	font-size: 1.3rem;
	font-weight: 820;
	letter-spacing: -.02em;
	color: var(--rufsc-ink);
}

span.xoo-wsc-footer-txt {
	display: block;
	margin: 0 0 .9rem;
	padding: .65rem .75rem;
	border-radius: .35rem;
	background: var(--rufsc-surface);
	color: var(--rufsc-muted);
	font-size: .78rem;
	line-height: 1.4;
	text-align: left;
}

.xoo-wsc-ft-buttons-cont {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .5rem;
}

a.xoo-wsc-ft-btn,
.xoo-wsc-container .xoo-wsc-btn {
	min-height: 2.8rem;
	padding: .65rem .75rem;
	border: 1px solid var(--rufsc-border);
	border-radius: .35rem;
	background: var(--rufsc-white);
	color: var(--rufsc-ink);
	font-family: var(--rufsc-font);
	font-size: .86rem;
	font-weight: 760;
	line-height: 1.2;
	transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

a.xoo-wsc-ft-btn:hover,
.xoo-wsc-container .xoo-wsc-btn:hover {
	border-color: var(--rufsc-forest);
	background: var(--rufsc-surface);
	color: var(--rufsc-forest-dark);
}

a.xoo-wsc-ft-btn-checkout {
	grid-column: 1 / -1;
	border-color: var(--rufsc-forest);
	background: var(--rufsc-forest);
	color: var(--rufsc-white);
}

a.xoo-wsc-ft-btn-checkout:hover {
	border-color: var(--rufsc-forest-dark);
	background: var(--rufsc-forest-dark);
	color: var(--rufsc-white);
}

a.xoo-wsc-ft-btn-checkout .amount,
a.xoo-wsc-ft-btn-checkout .amount:before {
	color: inherit;
}

.xoo-wsc-markup a:focus-visible,
.xoo-wsc-markup span.xoo-wsch-close:focus-visible,
.xoo-wsc-markup span.xoo-wsc-smr-del:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--rufsc-focus) 45%, transparent);
	outline-offset: 2px;
}

@media (max-width: 30rem) {
	.xoo-wsc-header {
		min-height: 5rem;
		padding-inline: 1rem;
	}

	span.xoo-wsch-close {
		right: .75rem;
	}

	.xoo-wsc-body {
		padding: .75rem;
	}

	.xoo-wsc-footer {
		padding-inline: .75rem;
	}
}
