/* Cross Sell Popup - self contained, theme independent */
html.cs-lock { overflow: hidden; }

.cs-overlay {
	--cs-accent: #222;
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, .55);
	opacity: 0;
	transition: opacity .2s ease;
	font-family: inherit;
	-webkit-tap-highlight-color: transparent;
}
.cs-overlay.cs-open { opacity: 1; }

.cs-overlay *, .cs-overlay *::before, .cs-overlay *::after { box-sizing: border-box; }

.cs-modal {
	position: relative;
	width: 100%;
	max-width: 840px;
	max-height: 100%;
	overflow-y: auto;
	background: #fff;
	color: #333;
	border-radius: 4px;
	padding: 34px 28px 22px;
	box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
	transform: translateY(12px) scale(.98);
	transition: transform .2s ease;
	outline: none;
}
.cs-open .cs-modal { transform: none; }

.cs-close {
	position: absolute;
	top: 10px;
	inset-inline-end: 10px;
	z-index: 3;
	width: 30px;
	height: 30px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: #222;
	border: 1px solid #444;
	border-radius: 50%;
	cursor: pointer;
}
.cs-close:hover { background: #222; color: #fff; }

.cs-head { text-align: center; margin-bottom: 18px; }
.cs-note {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 10px;
	padding: 5px 12px;
	border-radius: 20px;
	background: #e8f6ec;
	color: #1d7a3a;
	font-size: 13px;
	line-height: 1.3;
}
.cs-note-icon { display: inline-flex; }
.cs-title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: #222;
}
.cs-sub { margin: 0; font-size: 13px; line-height: 1.5; color: #777; }

/* carousel */
.cs-body { display: flex; align-items: center; gap: 8px; }

.cs-track {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
}
.cs-track::-webkit-scrollbar { display: none; }
.cs-track.cs-few { justify-content: center; }

.cs-card {
	flex: 0 0 50%;
	padding: 0 10px;
	scroll-snap-align: start;
}
@media (min-width: 700px) { .cs-card { flex-basis: 33.3333%; } }
@media (max-width: 360px) { .cs-card { flex-basis: 100%; } }

.cs-card-inner { display: flex; flex-direction: column; align-items: center; height: 100%; text-align: center; }

.cs-img {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-bottom: 10px;
}
.cs-img img { display: block; max-width: 100%; height: auto; max-height: 190px; width: auto; object-fit: contain; }

.cs-badge {
	position: absolute;
	top: 0;
	inset-inline-start: 4px;
	padding: 3px 7px;
	background: #5cb85c;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	border-radius: 3px;
}

.cs-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 6px;
	min-height: 2.8em;
	font-size: 13px;
	line-height: 1.4;
	color: #333;
	text-decoration: none;
}
.cs-name:hover { color: var(--cs-accent); text-decoration: underline; }

.cs-price { display: flex; justify-content: center; align-items: baseline; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: #222; margin-top: auto; }
.cs-price svg, .cs-price img { display: inline-block; vertical-align: middle; width: 1em; height: 1em; fill: currentColor; }
.cs-price-old { font-weight: 400; color: #999; text-decoration: line-through; }

.cs-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100%;
	max-width: 190px;
	min-height: 34px;
	padding: 7px 10px;
	background: var(--cs-accent);
	color: #fff;
	border: 0;
	border-radius: 2px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: opacity .15s ease;
}
.cs-add:hover { opacity: .85; color: #fff; }
.cs-add.cs-loading { opacity: .6; cursor: progress; }
.cs-add.cs-done { background: #2e9b4f; cursor: default; opacity: 1; }

.cs-arrow {
	flex: 0 0 auto;
	width: 32px;
	height: 44px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: #333;
	border: 0;
	cursor: pointer;
}
.cs-arrow:hover:not(:disabled) { color: var(--cs-accent); }
.cs-arrow:disabled { opacity: .25; cursor: default; }
.cs-overlay[dir="rtl"] .cs-arrow svg { transform: scaleX(-1); }
.cs-single .cs-arrow { display: none; }

.cs-dots { display: flex; justify-content: center; gap: 7px; margin: 14px 0 4px; }
.cs-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 1px solid #555;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}
.cs-dot.cs-active { background: #555; }

.cs-foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #eee;
}
.cs-btn {
	display: inline-block;
	padding: 9px 18px;
	background: var(--cs-accent);
	color: #fff;
	border: 1px solid var(--cs-accent);
	border-radius: 2px;
	font-size: 13px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.cs-btn:hover { opacity: .85; color: #fff; }
.cs-btn-light { background: #fff; color: #333; border-color: #ccc; }
.cs-btn-light:hover { background: #f5f5f5; color: #333; opacity: 1; }

@media (max-width: 480px) {
	.cs-modal { padding: 40px 12px 16px; }
	.cs-arrow { width: 24px; }
	.cs-btn { flex: 1 1 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	.cs-overlay, .cs-modal { transition: none; }
}
