/**
 * SwissChems side cart: the source's Xootix drawer, measured from its inline settings CSS
 * (source-cdp/templates/home/dom.html, #xoo-wsc-style-inline-css) and
 * _shots/ix-side-cart-open-1440.png. Explicit, self-contained CSS (no utility classes): the
 * drawer and its scrim are critical interactive surfaces.
 */

.swc-sc,
.swc-sc *,
.swc-sc-basket,
.swc-sc-basket * { box-sizing: border-box; }

.swc-sc {
	--swc-green: #1da074;
	--swc-green-d: #178460;
	--swc-red: #d62a28;
	--swc-ink: #000;
	position: fixed;
	inset: 0;
	z-index: 999990;
	visibility: hidden;
	pointer-events: none;
	font-family: 'Jost', 'Futura', 'Century Gothic', 'Trebuchet MS', sans-serif;
}

.swc-sc.is-open { visibility: visible; pointer-events: auto; }

.swc-sc__opac {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .7);
	opacity: 0;
	transition: opacity .3s ease;
}
.swc-sc.is-open .swc-sc__opac { opacity: 1; }

.swc-sc__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: 375px;
	display: flex;
	flex-direction: column;
	background: #f8f9fa;
	color: #000;
	transform: translateX(100%);
	transition: transform .3s ease;
	outline: none;
	overflow: hidden;
}
.swc-sc.is-open .swc-sc__panel { transform: none; }

/* "Item added to cart" */
.swc-sc__notice {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 15px 20px;
	background: #e3f3e3;
	color: var(--swc-green);
	font-size: 16px;
}
.swc-sc.has-notice .swc-sc__notice { display: flex; }
.swc-sc__notice-ic { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: var(--swc-green); color: #fff; align-items: center; justify-content: center; font-size: 12px; }
.swc-sc.has-notice .swc-sc__head { display: none; }

.swc-sc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px;
	background: #fff;
	color: #000;
	border-bottom: 2px solid #eee;
}
.swc-sc__head-l { display: flex; align-items: center; gap: 12px; }
.swc-sc__head-basket { position: relative; display: inline-flex; font-size: 25px; line-height: 0; color: #1da074; }
.swc-sc__head-basket .swc-sc-count {
	position: absolute;
	top: -8px;
	right: -10px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--swc-red);
	color: #fff;
	font-size: 11px;
	line-height: 18px;
	text-align: center;
}
.swc-sc__head-tx { font-size: 20px; font-weight: 400; }
.swc-sc__close { padding: 4px; border: 0; background: none; color: #000; font-size: 25px; line-height: 0; cursor: pointer; }
.swc-sc__close:hover { color: var(--swc-red); }

.swc-sc__inner { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }

.swc-sc__body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 0 10px; }

/* ship-day notice (shared look) */
.swc-sc .swc-notice {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 18px 15px 10px;
	padding: 11px 15px;
	background: #ecf5ef;
	color: #1b3a29;
	border: 1px solid #d3e6dc;
	border-radius: 18px;
}
.swc-sc .swc-notice__icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: #1da074; color: #fff; display: flex; align-items: center; justify-content: center; }
.swc-sc .swc-notice__icon svg { width: 64%; height: 64%; }
.swc-sc .swc-notice__divider { align-self: stretch; width: 2px; border-radius: 2px; background: #d3e6dc; margin: 8px 0; }
.swc-sc .swc-notice__title { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.3; }
.swc-sc .swc-notice__time { display: inline-block; background: #143d28; color: #fff; border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; font-weight: 800; }

.swc-sc__progress { margin: 6px 15px 4px; font-size: 14px; }
.swc-sc__progress p { margin: 0 0 6px; }
.swc-sc__track { display: block; height: 6px; border-radius: 3px; background: #dfe6e2; overflow: hidden; }
.swc-sc__track span { display: block; height: 100%; background: var(--swc-green); }

.swc-sc__product {
	display: flex;
	gap: 12px;
	margin: 10px 15px;
	padding: 10px 15px;
	border-radius: 5px;
	background: #fff;
	box-shadow: 0 2px 2px rgba(0, 0, 0, .02);
}
.swc-sc__product.is-child { margin-left: 35px; padding: 8px 12px; }
.swc-sc__img { width: 28%; flex-shrink: 0; }
.swc-sc__img img { display: block; width: 100%; height: auto; border-radius: 5px; }
.swc-sc__sum { flex: 1 1 auto; min-width: 0; display: flex; justify-content: space-between; gap: 8px; }
.swc-sc__left { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.swc-sc__pname { font-size: 16px; font-weight: 600; line-height: 1.4; }
.swc-sc__pname a { color: #000; text-decoration: none; }
.swc-sc__pname a:hover { color: var(--swc-green); }
.swc-sc__left dl.variation { display: block; margin: 4px 0 6px; font-size: 13px; font-style: italic; }
.swc-sc__left dl.variation dt,
.swc-sc__left dl.variation dd { display: block; margin: 0; padding: 0; font-weight: 400; }
.swc-sc__left dl.variation p { margin: 0; }

.swc-sc__qty { display: inline-flex; align-items: center; max-width: 80px; margin-top: 4px; }
.swc-sc__chng {
	width: 22px;
	height: 30px;
	padding: 0;
	border: 0;
	background: #def2e5;
	color: #000;
	font-size: 16px;
	font-weight: 600;
	line-height: 30px;
	cursor: pointer;
}
.swc-sc__chng:first-child { border-radius: 4px 0 0 4px; }
.swc-sc__chng:last-child { border-radius: 0 4px 4px 0; }
.swc-sc__chng:hover { background: #c9e8d8; }
.swc-sc .swc-sc__qty-input {
	width: 36px;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #f0f6f2;
	color: #000;
	font-size: 14px;
	line-height: 30px;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}
.swc-sc .swc-sc__qty-input::-webkit-outer-spin-button,
.swc-sc .swc-sc__qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.swc-sc__qty-fixed { font-size: 13px; color: #555; }

.swc-sc__right { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; flex-shrink: 0; }
.swc-sc__del { padding: 2px; border: 0; background: none; color: var(--swc-red); font-size: 16px; line-height: 0; cursor: pointer; }
.swc-sc__del:hover { color: #b01f20; }
.swc-sc__ptotal { font-size: 16px; white-space: nowrap; }

.swc-sc__empty { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 30px 20px; font-size: 16px; text-align: center; }

.swc-sc__foot {
	flex-shrink: 0;
	padding: 10px 20px 14px;
	background: #fff;
	color: #000;
	box-shadow: 0 -1px 10px rgba(0, 0, 0, .1);
	font-size: 18px;
}
.swc-sc__amt { display: flex; justify-content: space-between; gap: 10px; padding: 4px 3px; }
.swc-sc__amt > span:first-child { font-weight: 600; }
.swc-sc__amt--total { margin-top: 6px; padding-top: 10px; border-top: 1px dashed #9aa0a6; }
.swc-sc__ftxt { display: block; margin: 10px 0 8px; font-size: 16px; line-height: 1.45; }

.swc-sc__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 10px 20px;
	border-radius: 4px;
	background: var(--swc-green);
	color: #fff !important;
	font-size: 18px;
	text-decoration: none !important;
	transition: background .15s;
}
.swc-sc__btn:hover { background: var(--swc-green-d); }
.swc-sc__btn .amount { color: #fff; font-style: italic; }
.swc-sc__empty .swc-sc__btn { width: auto; padding: 10px 20px; border-radius: 10px; font-size: 16px; }

/* loader */
.swc-sc__loader {
	position: absolute;
	inset: 0;
	display: none;
	background: rgba(255, 255, 255, .5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38' viewBox='0 0 38 38' stroke='%231da074'%3E%3Cg fill='none' fill-rule='evenodd' stroke-width='3'%3E%3Ccircle stroke-opacity='.25' cx='19' cy='19' r='16'/%3E%3Cpath d='M35 19c0-9-7-16-16-16'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 19 19' to='360 19 19' dur='.8s' repeatCount='indefinite'/%3E%3C/path%3E%3C/g%3E%3C/svg%3E") center no-repeat;
}
.swc-sc.is-busy .swc-sc__loader { display: block; }

/* floating basket */
.swc-sc-basket {
	position: fixed;
	right: 1px;
	bottom: 100px;
	margin: 10px; /* source .xoo-wsc-basket: 11px from the right, 110px from the bottom */
	z-index: 999980;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: #fff;
	color: #1da074;
	box-shadow: 0 0 15px 2px rgba(0, 0, 0, .1);
	font-size: 30px;
	line-height: 0;
	cursor: pointer;
	transition: right .3s ease;
}
.swc-sc-basket.is-shifted { right: 375px; z-index: 999995; }
.swc-sc-basket.is-empty { display: none; }
.swc-sc-basket .swc-sc-count {
	position: absolute;
	top: -10px;
	left: -10px;
	min-width: 28px;
	height: 28px;
	padding: 0 5px;
	border-radius: 50%;
	background: #d62a28;
	color: #fff;
	font-family: 'Jost', sans-serif;
	font-size: 13px;
	line-height: 28px;
	text-align: center;
}

html.swc-sc-open,
html.swc-sc-open body { overflow: hidden; }

@media (max-width: 600px) {
	.swc-sc-basket { display: none !important; }
	.swc-sc__panel { max-width: 375px; }
}
