/**
 * Side Cart (XOO): product row redesign + borderless qty.
 */

.xoo-wsc-body,
.xoo-wsc-body  {
	background: #ffffff;
	padding: 0 15px 0 15px;
}

.xoo-wsc-pattern-row .w22-xoo-wsc-product.xoo-wsc-product {
	display: flex;
	align-items: stretch;
	gap: 16px;
	margin: 0;
	padding: 20px 10px;
	border: 0;
	border-radius: 0;
	background: #ffffff;
	box-shadow: none;
}

.xoo-wsc-pattern-row .w22-xoo-wsc-product:last-child {
	border-bottom: 0;
}

.w22-xoo-wsc-product__media.xoo-wsc-img-col {
	flex: 0 0 30%;
	max-width: 112px;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	background: #f4f4f4;
}

.w22-xoo-wsc-product__media img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 120px;
	object-fit: contain;
}

.w22-xoo-wsc-product__content.xoo-wsc-sum-col {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.w22-xoo-wsc-product__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.w22-xoo-wsc-product__name.xoo-wsc-pname,
.w22-xoo-wsc-product__name.xoo-wsc-pname a {
	font-family: 'Roboto', sans-serif !important;
	font-weight: 500 !important;
	font-size: 16px !important;
	line-height: 19px !important;
	color: #101012 !important;
	text-decoration: none;
}

.w22-xoo-wsc-product__price,
.w22-xoo-wsc-product__price .amount,
.w22-xoo-wsc-product__price .woocommerce-Price-amount {
	font-family: 'Roboto', sans-serif !important;
	font-weight: 500 !important;
	font-size: 16px !important;
	line-height: 19px !important;
	color: #101012 !important;
}

.w22-xoo-wsc-product__variant-block {
	position: relative;
}

.w22-xoo-wsc-variant-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.w22-xoo-wsc-variant-trigger__label {
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 19px;
	color: #99999f;
}

.w22-xoo-wsc-variant-trigger__arrow {
	display: block;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.w22-xoo-wsc-product__variant-block.is-open .w22-xoo-wsc-variant-trigger__arrow {
	transform: rotate(180deg);
}

.w22-xoo-wsc-variant-panel {
	position: absolute;
	z-index: 5;
	top: calc(100% + 6px);
	left: 0;
	min-width: 220px;
	max-width: 100%;
	padding: 8px 0;
	border: 1px solid #e8e8ea;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(16, 16, 18, 0.08);
}

.w22-xoo-wsc-variant-panel[hidden] {
	display: none !important;
}

.w22-xoo-wsc-variant-heading {
	margin: 8px 16px 4px;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: 12px;
	line-height: 14px;
	color: #99999f;
}

.w22-xoo-wsc-variant-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.w22-xoo-wsc-variant-item + .w22-xoo-wsc-variant-item {
	margin-top: 0;
}

.w22-xoo-wsc-variant-option {
	display: block;
	width: 100%;
	padding: 10px 16px;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
}

.w22-xoo-wsc-variant-option:hover,
.w22-xoo-wsc-variant-option.is-active {
	background: #f4f4f4;
}

.w22-xoo-wsc-variant-option__label {
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 19px;
	color: #99999f;
}

.w22-xoo-wsc-product__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;

}

.w22-xoo-wsc-product__qty-static {
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 19px;
	color: #101012;
}

.w22-xoo-wsc-qty-controls.xoo-wsc-qty-controls {
	display: inline-flex;
	align-items: center;
	column-gap: 16px;
}

.w22-xoo-wsc-qty-controls .xoo-wsc-qty-btn {
	width: auto;
	height: auto;
	min-width: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	padding: 0;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 19px;
	color: #101012;
}

.w22-xoo-wsc-qty-controls .xoo-wsc-qty-input {
	width: 20px;
	min-width: 1ch;
	height: auto;
	border: 0;
	border-radius: 0;
	background: transparent;
	padding: 0;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 19px;
	color: #101012;
	text-align: center;
	-moz-appearance: textfield;
}

.w22-xoo-wsc-qty-controls .xoo-wsc-qty-input::-webkit-outer-spin-button,
.w22-xoo-wsc-qty-controls .xoo-wsc-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.w22-xoo-wsc-product__remove.xoo-wsc-smr-del {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 19px;
	color: #99999f;
}

.w22-xoo-wsc-product__remove.xoo-wsc-smr-del::before {
	content: none !important;
	display: none !important;
}

.w22-xoo-wsc-product__remove svg {
	display: block;
	flex-shrink: 0;
}

.w22-xoo-wsc-product__remove span {
	color: #99999f;
}

.w22-xoo-wsc-shipping-banner {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 12px 16px;
	background: #fff0f5;
}

.w22-xoo-wsc-shipping-banner__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	align-self: center;
	padding: 5px;
}

.w22-xoo-wsc-shipping-banner__icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

.w22-xoo-wsc-shipping-banner__text {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: 12px;
	line-height: 14px;
	color: #101012;
}

.xoo-wsc-free-shipping-remaining,
.xoo-wsc-free-shipping-ok {
	margin: 10px;
}

.w22-xoo-wsc-shipping-banner__text .woocommerce-Price-amount,
.w22-xoo-wsc-shipping-banner__text .amount {
	font: inherit;
	color: inherit;
}

/* === Side cart program upsell === */
.w22-xoo-wsc-program-upsell {
	margin: 30px 10px 10px;
}

.w22-xoo-wsc-program-upsell__heading {
	margin: 0 0 12px;
	padding: 0;
	font-family: 'Roboto', sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 19px;
	color: #101012;
}

.w22-xoo-wsc-program-upsell__card {
	display: flex;
	align-items: stretch;
	gap: 0;
	padding: 0;
	background: transparent;
	box-sizing: border-box;
	overflow: hidden;
}

.w22-xoo-wsc-program-upsell__card-main {
	flex: 1 1 auto;
	display: flex;
	align-items: stretch;
	gap: 12px;
	min-width: 0;
	padding: 12px;
	background: #f9f9f9;
}

.w22-xoo-wsc-program-upsell__card.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.w22-xoo-wsc-program-upsell__media {
	flex: 0 0 88px;
	max-width: 88px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	background: #f4f4f4;
}

.w22-xoo-wsc-program-upsell__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 96px;
	object-fit: contain;
}

.w22-xoo-wsc-program-upsell__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.w22-xoo-wsc-program-upsell__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.w22-xoo-wsc-program-upsell__name {
	font-family: 'Roboto', sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 16px;
	color: #101012;
}

.w22-xoo-wsc-program-upsell__price,
.w22-xoo-wsc-program-upsell__price .amount,
.w22-xoo-wsc-program-upsell__price .woocommerce-Price-amount {
	font-family: 'Roboto', sans-serif !important;
	font-weight: 500 !important;
	font-size: 14px !important;
	line-height: 16px !important;
	color: #101012 !important;
	white-space: nowrap;
}

.w22-xoo-wsc-program-upsell__tagline {
	margin: 0;
	font-family: 'Roboto Mono', monospace;
	font-weight: 400;
	font-size: 12px;
	line-height: 16px;
	color: #77777c;
}

.w22-xoo-wsc-program-upsell__add {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	font-family: 'Roboto', sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 16px;
	color: #101012;
	text-align: left;
}

.w22-xoo-wsc-program-upsell__add-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #101012;
	flex-shrink: 0;
}

.w22-xoo-wsc-program-upsell__link {
	flex: 0 0 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	width: 40px;
	padding: 0;
	background: #ffffff;
	color: #101012;
	text-decoration: none;
}

.w22-xoo-wsc-program-upsell__link svg {
	display: block;
}

/* === Side cart footer === */
.xoo-wsc-footer {
	background-color: #f6f7f1 !important;
	padding: 0 !important;
}


.xoo-wsc-footer .xoo-wsc-info-cont {
	display: none !important;
}

.w22-xoo-wsc-footer-inner {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 25px 16px 25px;
	box-sizing: border-box;
}

.w22-xoo-wsc-footer-row,
.w22-xoo-wsc-footer-inner .w22-xoo-wsc-footer-row.xoo-wsc-ft-amt {
	display: grid !important;
	grid-template-columns: max-content minmax(12px, 1fr) max-content;
	align-items: end;
	column-gap: 8px;
	width: 100%;
	margin: 0;
	padding: 0;
	justify-content: unset !important;
}

.w22-xoo-wsc-footer-row__label,
.w22-xoo-wsc-footer-inner .xoo-wsc-ft-amt-label {
	grid-column: 1;
	flex-grow: 0 !important;
	flex-shrink: 0 !important;
	width: auto !important;
	max-width: none !important;
	padding-right: 0 !important;
	white-space: nowrap;
}

.w22-xoo-wsc-footer-row__dots {
	grid-column: 2;
	flex: unset;
	min-width: 12px;
	height: 0;
	align-self: end;
	margin-bottom: 3px;
	border-bottom: 1px dotted #bbbbc2;
	transform: none;
}

.w22-xoo-wsc-footer-row__value,
.w22-xoo-wsc-footer-inner .xoo-wsc-ft-amt-value {
	grid-column: 3;
	flex-grow: 0 !important;
	flex-shrink: 0 !important;
	text-align: right;
	white-space: nowrap;
}

.w22-xoo-wsc-footer-row--delivery .w22-xoo-wsc-footer-row__label,
.w22-xoo-wsc-footer-row--delivery .w22-xoo-wsc-footer-row__value {
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: 12px;
	line-height: 16px;
	color: #101012;
}

.w22-xoo-wsc-footer-row--subtotal .w22-xoo-wsc-footer-row__dots {
	margin-bottom: 5px;
}

.w22-xoo-wsc-footer-row--subtotal .w22-xoo-wsc-footer-row__label,
.w22-xoo-wsc-footer-row--subtotal .w22-xoo-wsc-footer-row__value,
.w22-xoo-wsc-footer-row--subtotal .xoo-wsc-ft-amt-value,
.w22-xoo-wsc-footer-row--subtotal .xoo-wsc-ft-amt-value .amount,
.w22-xoo-wsc-footer-row--subtotal .xoo-wsc-ft-amt-value .woocommerce-Price-amount {
	font-family: 'Roboto', sans-serif !important;
	font-weight: 400 !important;
	font-size: 18px !important;
	line-height: 21px !important;
	color: #101012 !important;
}

.w22-xoo-wsc-footer-totals {
	margin: 0;
	padding: 0;
}

.w22-xoo-wsc-footer-totals .xoo-wsc-ft-amt,
.w22-xoo-wsc-footer-inner .xoo-wsc-ft-amt-subtotal {
	display: grid !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.w22-xoo-wsc-footer-inner .xoo-wsc-ft-amt-label:after {
	content: none;
}

.w22-xoo-wsc-footer-note {
	margin: 0;
	padding: 0;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	font-size: 12px;
	line-height: 16px;
	color: #77777c;
	text-align: left;
}

.xoo-wsc-footer .xoo-wsc-ft-buttons-cont {
	display: flex;
	align-items: stretch;
	gap: 12px;
	margin: 0;
	padding: 0;
}

.xoo-wsc-footer .xoo-wsc-ft-btn {
	flex: 1 1 0;
	min-width: 0;
	box-sizing: border-box;
	margin: 0 !important;
	padding: 14px 12px !important;
	border-radius: 0 !important;
	font-family: 'Roboto', sans-serif !important;
	font-weight: 500 !important;
	font-size: 18px !important;
	line-height: 21px !important;
	text-align: center;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	box-shadow: none !important;
}

.xoo-wsc-footer .xoo-wsc-ft-btn-continue {
	background: #ffffff !important;
	border: 1px solid #101012 !important;
	color: #101012 !important;
}

.xoo-wsc-footer .xoo-wsc-ft-btn-checkout {
	background: #101012 !important;
	border: 0 !important;
	color: #ffffff !important;
}

.xoo-wsc-footer .xoo-wsc-footer-txt {
	display: none;
}

/* === Mobile (side cart full width + fluid type) === */
@media (max-width: 768px) {
	.xoo-wsc-container {
		max-width: 100vw !important;
		width: 100vw !important;
	}

	.xoo-wsc-header .xoo-wsch-text {
		font-size: clamp(18px, 5.5vw, 22px) !important;
		line-height: 1.2 !important;
	}

	.xoo-wsc-body {
		padding: 0 12px;
	}

	.xoo-wsc-pattern-row .w22-xoo-wsc-product.xoo-wsc-product {
		gap: 12px;
		padding: 16px 6px;
	}

	.w22-xoo-wsc-product__media.xoo-wsc-img-col {
		max-width: 96px;
		padding: 10px;
	}

	.w22-xoo-wsc-product__name.xoo-wsc-pname,
	.w22-xoo-wsc-product__name.xoo-wsc-pname a,
	.w22-xoo-wsc-product__price,
	.w22-xoo-wsc-product__price .amount,
	.w22-xoo-wsc-product__price .woocommerce-Price-amount {
		font-size: clamp(14px, 3.8vw, 16px) !important;
		line-height: 1.2 !important;
	}

	.w22-xoo-wsc-variant-trigger__label,
	.w22-xoo-wsc-variant-option__label,
	.w22-xoo-wsc-product__qty-static {
		font-size: clamp(14px, 3.8vw, 16px);
		line-height: 1.2;
	}

	.w22-xoo-wsc-product__remove span {
		font-size: clamp(12px, 3.2vw, 14px);
	}

	.w22-xoo-wsc-shipping-banner__text {
		font-size: clamp(11px, 3vw, 12px);
		line-height: 1.25;
	}

	.w22-xoo-wsc-footer-inner {
		padding: 14px 12px 14px 5px;
		gap: 10px;
	}

	.w22-xoo-wsc-footer-row--delivery .w22-xoo-wsc-footer-row__label,
	.w22-xoo-wsc-footer-row--delivery .w22-xoo-wsc-footer-row__value {
		font-size: clamp(11px, 3vw, 12px);
		line-height: 1.25;
	}

	.w22-xoo-wsc-footer-row--subtotal .w22-xoo-wsc-footer-row__label,
	.w22-xoo-wsc-footer-row--subtotal .w22-xoo-wsc-footer-row__value,
	.w22-xoo-wsc-footer-row--subtotal .xoo-wsc-ft-amt-value,
	.w22-xoo-wsc-footer-row--subtotal .xoo-wsc-ft-amt-value .amount,
	.w22-xoo-wsc-footer-row--subtotal .xoo-wsc-ft-amt-value .woocommerce-Price-amount {
		font-size: clamp(15px, 4.2vw, 18px) !important;
		line-height: 1.2 !important;
	}

	.w22-xoo-wsc-footer-note {
		font-size: clamp(11px, 3vw, 12px);
		line-height: 1.25;
	}

	.xoo-wsc-footer .xoo-wsc-ft-buttons-cont {
		gap: 8px;
	}

	.xoo-wsc-footer .xoo-wsc-ft-btn {
		font-size: clamp(11px, 3.25vw, 18px) !important;
		line-height: 1.15 !important;
		padding: clamp(10px, 2.8vw, 14px) clamp(6px, 1.8vw, 12px) !important;
		hyphens: auto;
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	.w22-xoo-wsc-program-upsell__name,
	.w22-xoo-wsc-program-upsell__price,
	.w22-xoo-wsc-program-upsell__price .amount,
	.w22-xoo-wsc-program-upsell__price .woocommerce-Price-amount {
		font-size: clamp(13px, 3.5vw, 14px) !important;
		line-height: 16px !important;
	}

	.w22-xoo-wsc-program-upsell__add {
		font-size: clamp(13px, 3.5vw, 14px) !important;
		line-height: 16px !important;
	}

	.w22-xoo-wsc-program-upsell__tagline {
		font-size: clamp(11px, 3vw, 12px);
		line-height: 16px;
	}

	.w22-xoo-wsc-program-upsell__heading {
		font-size: clamp(14px, 3.8vw, 16px);
		line-height: 1.2;
	}

	.w22-xoo-wsc-program-upsell__media {
		flex-basis: 72px;
		max-width: 72px;
	}
}
