/**
 * Мини-корзина в шапке (CoolStuffGear).
 * НЕ редактировать крупными кусками stylesheet.css — только этот файл.
 * Подключается ПОСЛЕ stylesheet.css в header.twig.
 */
/* Header mini-cart dropdown (CoolStuffGear, brand polish) */
#cart.csg-cart .dropdown-menu.csg-mini-cart-menu,
#cart.csg-cart .csg-mini-cart-menu {
	background: #ffffff;
	border: 1px solid rgba(0, 26, 52, 0.08);
	border-radius: 22px;
	box-shadow: 0 24px 64px rgba(0, 26, 52, 0.18), 0 6px 18px rgba(0, 26, 52, 0.08);
	left: auto;
	list-style: none;
	margin: 12px 0 0;
	max-height: none;
	max-width: min(480px, calc(100vw - 16px));
	min-width: 0;
	overflow: hidden;
	padding: 0;
	right: 0;
	width: min(480px, calc(100vw - 16px));
}

.csg-final-header #cart.csg-cart {
	position: relative;
}

/* Десктоп: лёгкий сдвиг влево под кнопку корзины в flex-ряду */
.csg-final-header #cart.csg-cart .csg-mini-cart-menu {
	transform: translateX(-24px);
}

#cart.csg-cart.open .csg-mini-cart-menu {
	animation: csgMiniCartIn 0.22s ease-out;
}

@keyframes csgMiniCartIn {
	from { opacity: 0; transform: translateX(-24px) translateY(-6px); }
	to   { opacity: 1; transform: translateX(-24px) translateY(0); }
}

#cart.csg-cart .csg-mini-cart-menu > li,
#cart.csg-cart .csg-mini-cart-menu li {
	float: none;
	list-style: none;
	min-width: 0;
	padding: 0;
	width: 100%;
}

#cart.csg-cart .csg-mini-cart-panel {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	max-height: min(600px, calc(100vh - 88px));
	min-width: 0 !important;
	padding: 0 !important;
	width: 100%;
}

#cart.csg-cart .csg-mini-cart-menu li > .csg-mini-cart-scroll {
	min-width: 0 !important;
	padding: 0 !important;
}

#cart.csg-cart .csg-mini-cart-panel-empty {
	align-items: center;
	justify-content: center;
	max-height: none;
	padding: 36px 24px !important;
	text-align: center;
}

/* Сброс legacy: #cart .dropdown-menu li > div — иначе min-width 427px и padding ломают шапку */
#cart.csg-cart .csg-mini-cart-panel > .csg-mini-cart-head,
#cart.csg-cart .csg-mini-cart-panel > .csg-mini-cart-scroll,
#cart.csg-cart .csg-mini-cart-panel > .csg-mini-cart-foot {
	min-width: 0 !important;
}

#cart.csg-cart .csg-mini-cart-panel > .csg-mini-cart-head {
	padding: 14px 16px !important;
}

#cart.csg-cart .csg-mini-cart-panel > .csg-mini-cart-foot {
	box-sizing: border-box;
	padding: 14px 16px !important;
}

/* === Head: dark hero (gaming) === */
#cart.csg-cart .csg-mini-cart-head {
	align-items: center;
	background:
		radial-gradient(circle at top right, rgba(0, 188, 82, 0.28), transparent 60%),
		linear-gradient(135deg, #1a2030 0%, #11151b 100%);
	border-bottom: 1px solid rgba(0, 188, 82, 0.18);
	box-sizing: border-box;
	color: #ffffff;
	display: flex;
	flex-shrink: 0;
	gap: 14px;
	overflow: hidden;
	padding: 14px !important;
	position: relative;
}

#cart.csg-cart .csg-mini-cart-head::before {
	background: linear-gradient(90deg, transparent, #00bc52 50%, transparent);
	bottom: 0;
	content: '';
	height: 2px;
	left: 0;
	opacity: 0.7;
	pointer-events: none;
	position: absolute;
	right: 0;
}

#cart.csg-cart .csg-mini-cart-head-icon {
	align-items: center;
	background: linear-gradient(135deg, rgba(0, 188, 82, 0.18), rgba(0, 188, 82, 0.04));
	border: 1px solid rgba(0, 188, 82, 0.35);
	border-radius: 12px;
	box-shadow: 0 0 0 4px rgba(0, 188, 82, 0.08), inset 0 0 12px rgba(0, 188, 82, 0.12);
	color: #00e066;
	display: flex;
	flex: 0 0 44px;
	height: 44px;
	justify-content: center;
	position: relative;
	width: 44px;
	z-index: 1;
}

#cart.csg-cart .csg-mini-cart-head-icon svg {
	fill: none;
	height: 20px;
	stroke: #00e066;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	width: 20px;
}

#cart.csg-cart .csg-mini-cart-head-text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 6px;
	justify-content: center;
	min-width: 0;
	position: relative;
	z-index: 1;
}

#cart.csg-cart .csg-mini-cart-eyebrow {
	color: #00e066;
	display: block;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.14em;
	line-height: 1.2;
	margin: 0;
	text-transform: uppercase;
}

#cart.csg-cart .csg-mini-cart-title {
	color: #ffffff;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0;
}

#cart.csg-cart .csg-mini-cart-meta,
#cart.csg-cart .csg-mini-cart-menu li p.csg-mini-cart-meta {
	color: rgba(255, 255, 255, 0.88);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 !important;
}

#cart.csg-cart .csg-mini-cart-count {
	align-items: center;
	background: linear-gradient(135deg, rgba(0, 188, 82, 0.18), rgba(0, 188, 82, 0.04));
	border: 1px solid rgba(0, 188, 82, 0.35);
	border-radius: 12px;
	box-shadow: 0 0 0 4px rgba(0, 188, 82, 0.08), inset 0 0 12px rgba(0, 188, 82, 0.12);
	box-sizing: border-box;
	color: #00e066;
	display: flex;
	font-size: 16px;
	font-weight: 900;
	height: 44px;
	justify-content: center;
	line-height: 1;
	margin: 0;
	min-width: 44px;
	padding: 0;
	position: relative;
	width: 44px;
	z-index: 1;
}

/* === Items list === */
#cart.csg-cart .csg-mini-cart-scroll {
	background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

#cart.csg-cart .csg-mini-cart-items {
	display: grid;
	gap: 0;
	max-height: min(280px, 44vh);
	overflow-x: hidden;
	overflow-y: auto;
	padding: 6px 14px 12px;
	scrollbar-color: #c5d0de transparent;
	scrollbar-width: thin;
}

#cart.csg-cart .csg-mini-cart-items::-webkit-scrollbar {
	width: 6px;
}

#cart.csg-cart .csg-mini-cart-items::-webkit-scrollbar-thumb {
	background: #c5d0de;
	border-radius: 999px;
}

#cart.csg-cart .csg-mini-cart-item {
	align-items: center;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 14px;
	display: grid;
	gap: 6px 14px;
	grid-template-columns: 64px minmax(0, 1fr) auto 28px;
	margin: 4px 0;
	padding: 10px;
	position: relative;
	transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

#cart.csg-cart .csg-mini-cart-item:hover {
	background: #ffffff;
	border-color: rgba(0, 188, 82, 0.18);
	box-shadow: 0 6px 18px rgba(0, 26, 52, 0.06);
}

#cart.csg-cart .csg-mini-cart-item + .csg-mini-cart-item::before {
	background: linear-gradient(90deg, transparent, rgba(0, 26, 52, 0.08), transparent);
	content: '';
	height: 1px;
	left: 16px;
	position: absolute;
	right: 16px;
	top: -4px;
}

#cart.csg-cart .csg-mini-cart-item:hover + .csg-mini-cart-item::before,
#cart.csg-cart .csg-mini-cart-item:hover::before {
	opacity: 0;
}

/* === Thumb === */
#cart.csg-cart .csg-mini-cart-thumb {
	align-items: center;
	background: linear-gradient(135deg, #1f242c 0%, #11151b 100%);
	border: 1px solid rgba(0, 26, 52, 0.1);
	border-radius: 12px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
	color: #c5d0de;
	display: flex;
	flex: 0 0 64px;
	grid-row: 1 / span 2;
	height: 64px;
	justify-content: center;
	overflow: hidden;
	position: relative;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	width: 64px;
}

#cart.csg-cart .csg-mini-cart-item:hover .csg-mini-cart-thumb {
	box-shadow: 0 8px 20px rgba(0, 188, 82, 0.2);
	transform: translateY(-1px);
}

#cart.csg-cart .csg-mini-cart-thumb img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
	width: 100%;
}

#cart.csg-cart .csg-mini-cart-item:hover .csg-mini-cart-thumb img {
	transform: scale(1.06);
}

#cart.csg-cart .csg-mini-cart-thumb .fa {
	font-size: 22px;
}

#cart.csg-cart .csg-mini-cart-thumb-voucher {
	background: linear-gradient(135deg, #d9f7e6, #ffffff);
	color: #00a64a;
}

#cart.csg-cart .csg-mini-cart-thumb::after {
	background: linear-gradient(180deg, transparent 0%, rgba(17, 21, 27, 0.55) 100%);
	border-radius: 0 0 12px 12px;
	bottom: 0;
	content: '';
	height: 28px;
	left: 0;
	pointer-events: none;
	position: absolute;
	right: 0;
	z-index: 1;
}

#cart.csg-cart .csg-mini-cart-qty {
	align-items: center;
	background: rgba(17, 21, 27, 0.88);
	border: 0;
	border-radius: 0 0 12px 12px;
	bottom: 0;
	box-shadow: none;
	box-sizing: border-box;
	color: #ffffff;
	display: flex;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	height: 22px;
	justify-content: center;
	left: 0;
	letter-spacing: 0.04em;
	line-height: 1;
	padding: 0 4px;
	position: absolute;
	right: 0;
	top: auto;
	-webkit-font-smoothing: antialiased;
	z-index: 2;
}

/* === Main text === */
#cart.csg-cart .csg-mini-cart-main {
	align-self: center;
	grid-column: 2;
	grid-row: 1 / span 2;
	min-width: 0;
}

#cart.csg-cart .csg-mini-cart-name {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 6px;
}

#cart.csg-cart .csg-mini-cart-name a {
	color: #181c20;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	text-decoration: none;
	transition: color 0.15s ease;
}

#cart.csg-cart .csg-mini-cart-name a:hover,
#cart.csg-cart .csg-mini-cart-name a:focus {
	color: #00a64a;
}

#cart.csg-cart .csg-mini-cart-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
}

#cart.csg-cart .csg-mini-cart-chip {
	background: rgba(0, 188, 82, 0.08);
	border: 1px solid rgba(0, 188, 82, 0.2);
	border-radius: 999px;
	color: #006e2d;
	display: inline-flex;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	padding: 4px 8px;
	white-space: nowrap;
}

#cart.csg-cart .csg-mini-cart-note {
	color: #6b7280;
	font-size: 11px;
	line-height: 1.35;
	margin: 6px 0 0;
}

/* === Price + remove === */
#cart.csg-cart .csg-mini-cart-line-price {
	align-self: start;
	color: #181c20;
	font-size: 15px;
	font-weight: 800;
	grid-column: 3;
	grid-row: 1 / span 2;
	line-height: 1.2;
	margin: 0;
	text-align: right;
	white-space: nowrap;
}

#cart.csg-cart .csg-mini-cart-remove {
	align-items: center;
	align-self: start;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 10px;
	color: #9aa3af;
	cursor: pointer;
	display: inline-flex;
	font-size: 0;
	grid-column: 4;
	grid-row: 1 / span 2;
	height: 28px;
	justify-content: center;
	line-height: 1;
	margin: 0;
	padding: 0;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
	width: 28px;
}

#cart.csg-cart .csg-mini-cart-remove svg {
	fill: none;
	height: 14px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2;
	width: 14px;
}

#cart.csg-cart .csg-mini-cart-remove:hover,
#cart.csg-cart .csg-mini-cart-remove:focus {
	background: #fff1f1;
	border-color: #f3c1c1;
	color: #ba1a1a;
	outline: none;
	transform: rotate(90deg);
}

/* === Foot: totals + actions === */
#cart.csg-cart .csg-mini-cart-foot {
	background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
	border-top: 1px solid rgba(0, 26, 52, 0.06);
	flex-shrink: 0;
	padding: 16px 22px 18px;
	position: relative;
}

#cart.csg-cart .csg-mini-cart-totals {
	display: grid;
	gap: 8px;
	margin-bottom: 12px;
}

#cart.csg-cart .csg-mini-cart-total-row {
	align-items: center;
	color: #181c20;
	display: flex;
	font-size: 13px;
	gap: 12px;
	justify-content: space-between;
}

#cart.csg-cart .csg-mini-cart-total-row span {
	color: #6b7280;
	flex: 1 1 auto;
	font-weight: 500;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#cart.csg-cart .csg-mini-cart-total-row strong {
	color: #181c20;
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

#cart.csg-cart .csg-mini-cart-total-row.is-grand {
	background: linear-gradient(135deg, rgba(0, 188, 82, 0.08), rgba(0, 188, 82, 0));
	border: 1px solid rgba(0, 188, 82, 0.18);
	border-radius: 12px;
	margin-top: 6px;
	padding: 10px 14px;
}

#cart.csg-cart .csg-mini-cart-total-row.is-grand span {
	color: #181c20;
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

#cart.csg-cart .csg-mini-cart-total-row.is-grand strong {
	color: #006e2d;
	font-size: 22px;
	font-weight: 900;
	letter-spacing: -0.01em;
}

#cart.csg-cart .csg-mini-cart-trust {
	align-items: center;
	color: #6b7280;
	display: flex;
	font-size: 11px;
	font-weight: 600;
	gap: 8px;
	letter-spacing: 0.01em;
	margin: 0 0 12px;
}

#cart.csg-cart .csg-mini-cart-trust svg {
	color: #00a64a;
	fill: none;
	flex: 0 0 16px;
	height: 16px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	width: 16px;
}

#cart.csg-cart .csg-mini-cart-actions {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr 1.3fr;
}

#cart.csg-cart .csg-mini-cart-btn {
	align-items: center;
	border-radius: 12px;
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	justify-content: center;
	letter-spacing: 0.04em;
	line-height: 1.2;
	min-height: 46px;
	padding: 11px 14px;
	position: relative;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

#cart.csg-cart .csg-mini-cart-btn:active {
	transform: translateY(1px);
}

#cart.csg-cart .csg-mini-cart-btn-secondary {
	background: #ffffff;
	border: 1px solid #d5dde8;
	color: #181c20;
}

#cart.csg-cart .csg-mini-cart-btn-secondary:hover,
#cart.csg-cart .csg-mini-cart-btn-secondary:focus {
	background: #f4f8fc;
	border-color: #00bc52;
	color: #006e2d;
	text-decoration: none;
}

#cart.csg-cart .csg-mini-cart-btn-primary {
	background: linear-gradient(135deg, #00bc52, #009a44);
	border: 1px solid #009a44;
	box-shadow: 0 10px 24px rgba(0, 154, 68, 0.32);
	color: #ffffff;
	overflow: hidden;
}

#cart.csg-cart .csg-mini-cart-btn-primary::after {
	background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
	content: '';
	height: 100%;
	left: -100%;
	position: absolute;
	top: 0;
	transition: left 0.5s ease;
	width: 100%;
}

#cart.csg-cart .csg-mini-cart-btn-primary:hover::after,
#cart.csg-cart .csg-mini-cart-btn-primary:focus::after {
	left: 100%;
}

#cart.csg-cart .csg-mini-cart-btn-primary:hover,
#cart.csg-cart .csg-mini-cart-btn-primary:focus {
	background: linear-gradient(135deg, #08c45a, #00a64a);
	border-color: #00a64a;
	box-shadow: 0 14px 30px rgba(0, 154, 68, 0.4);
	color: #ffffff;
	text-decoration: none;
}

#cart.csg-cart .csg-mini-cart-empty {
	color: #565f6f;
	font-size: 14px;
	font-weight: 600;
	margin: 0 !important;
}

@media (max-width: 767px) {
	/* Центр панели относительно ряда иконок, а не узкой ячейки #cart */
	.csg-final-header .csg-header-actions {
		position: relative;
	}

	.csg-final-header #cart.csg-cart {
		position: static;
	}

	.csg-final-header #cart.csg-cart .csg-mini-cart-menu {
		left: 50%;
		margin-top: 10px;
		max-width: calc(100vw - 32px);
		right: auto;
		transform: translateX(-50%);
		width: min(340px, calc(100vw - 32px));
	}

	.csg-final-header #cart.csg-cart.open .csg-mini-cart-menu {
		animation: csgMiniCartInMobile 0.22s ease-out;
	}

	@keyframes csgMiniCartInMobile {
		from {
			opacity: 0;
			transform: translateX(-50%) translateY(-6px);
		}
		to {
			opacity: 1;
			transform: translateX(-50%) translateY(0);
		}
	}

	#cart.csg-cart .csg-mini-cart-menu {
		max-width: calc(100vw - 32px);
		width: min(420px, calc(100vw - 32px));
	}

	#cart.csg-cart .csg-mini-cart-total-row {
		align-items: start;
		display: grid;
		gap: 8px;
		grid-template-columns: minmax(0, 1fr) auto;
	}

	#cart.csg-cart .csg-mini-cart-total-row span {
		overflow: visible;
		overflow-wrap: anywhere;
		text-overflow: clip;
		white-space: normal;
	}

	#cart.csg-cart .csg-mini-cart-actions {
		grid-template-columns: 1fr;
	}
}

/* Жёсткий сброс: legacy #cart .dropdown-menu li > div и li p */
.csg-final-header #cart.csg-cart ul.dropdown-menu.pull-right.csg-mini-cart-menu,
.csg-final-header #cart.csg-cart ul.csg-mini-cart-menu.dropdown-menu {
	padding: 0 !important;
}

.csg-final-header #cart.csg-cart .csg-mini-cart-panel > .csg-mini-cart-head,
#cart.csg-cart .csg-mini-cart-panel > .csg-mini-cart-head {
	align-items: center !important;
	box-sizing: border-box !important;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	gap: 14px !important;
	min-width: 0 !important;
	padding: 14px 16px !important;
	width: 100% !important;
}

#cart.csg-cart .csg-mini-cart-head > .csg-mini-cart-count {
	align-self: center !important;
	flex: 0 0 44px !important;
	flex-shrink: 0 !important;
	margin-left: auto !important;
}

#cart.csg-cart .dropdown-menu.csg-mini-cart-menu li p.csg-mini-cart-meta {
	color: rgba(255, 255, 255, 0.9) !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Stage 8T: dark mode mini-cart dropdown */
html[data-csg-theme="dark"] #cart.csg-cart .dropdown-menu.csg-mini-cart-menu,
html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-menu {
	background: #111827;
	border-color: #2f3d52;
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.02);
}

html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-scroll {
	background: linear-gradient(180deg, #172133 0%, #111827 100%);
}

html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-items {
	scrollbar-color: #3c4b61 transparent;
}

html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-items::-webkit-scrollbar-thumb {
	background: #3c4b61;
}

html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-item {
	border-color: transparent;
	color: #f5f7fb;
}

html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-item:hover {
	background: rgba(31, 43, 63, 0.78);
	border-color: rgba(0, 188, 82, 0.28);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-item + .csg-mini-cart-item::before {
	background: linear-gradient(90deg, transparent, rgba(170, 180, 197, 0.22), transparent);
}

html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-thumb {
	background: #0f1724;
	border-color: #2f3d52;
}

html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-name a,
html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-line-price,
html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-total-row,
html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-total-row strong {
	color: #f5f7fb;
}

html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-name a:hover,
html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-name a:focus {
	color: #00bc52;
}

html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-chip {
	background: rgba(0, 188, 82, 0.14);
	border-color: rgba(0, 188, 82, 0.34);
	color: #9ff0bf;
}

html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-note,
html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-total-row span,
html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-trust {
	color: #aab4c5;
}

html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-remove {
	color: #aab4c5;
}

html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-remove:hover,
html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-remove:focus {
	background: rgba(220, 38, 38, 0.16);
	border-color: rgba(248, 113, 113, 0.36);
	color: #fecaca;
}

html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-foot {
	background: linear-gradient(180deg, #111827 0%, #0f1724 100%);
	border-top-color: #2f3d52;
}

html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-total-row.is-grand {
	background: linear-gradient(135deg, rgba(0, 188, 82, 0.15), rgba(0, 188, 82, 0.04));
	border-color: rgba(0, 188, 82, 0.38);
}

html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-total-row.is-grand span {
	color: #f5f7fb;
}

html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-total-row.is-grand strong {
	color: #00bc52;
}

html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-btn-secondary {
	background: #172133;
	border-color: #2f3d52;
	color: #f5f7fb;
}

html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-btn-secondary:hover,
html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-btn-secondary:focus {
	background: rgba(0, 188, 82, 0.14);
	border-color: rgba(0, 188, 82, 0.42);
	color: #f5f7fb;
}

html[data-csg-theme="dark"] #cart.csg-cart .csg-mini-cart-empty {
	color: #aab4c5;
}

/* Тост после «Купити» — без сдвига sticky-шапки и без scrollTop */
.csg-cart-toast {
	background: #ffffff;
	border: 1px solid #d7eadf;
	border-left: 5px solid #00bc52;
	border-radius: 12px;
	box-shadow: 0 18px 42px rgba(0, 26, 52, 0.2);
	color: #17202a;
	display: grid;
	font-weight: 600;
	gap: 10px;
	grid-template-columns: auto 1fr auto;
	line-height: 1.45;
	left: auto;
	margin: 0;
	max-width: min(520px, calc(100vw - 32px));
	padding: 14px 16px;
	position: fixed;
	right: 20px;
	top: 86px;
	z-index: 140;
}

.alert-success.csg-cart-toast,
html[data-csg-theme] .alert-success.csg-cart-toast {
	background: #ffffff;
	border-color: #d7eadf;
	border-left-color: #00bc52;
	color: #17202a;
}

.csg-cart-toast-message {
	min-width: 0;
}

.csg-cart-toast a,
html[data-csg-theme] .csg-cart-toast a {
	color: #005f28;
	font-weight: 800;
}

.csg-cart-toast .fa {
	color: #00a347;
	margin-top: 3px;
}

.csg-cart-toast .close {
	align-self: start;
	color: inherit;
	float: none;
	font-size: 20px;
	line-height: 1;
	opacity: 0.55;
	position: static;
	text-shadow: none;
}

html[data-csg-theme="dark"] .alert-success.csg-cart-toast {
	background: #10251f;
	border-color: rgba(0, 188, 82, 0.58);
	border-left-color: #00bc52;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
	color: #f5f7fb;
}

html[data-csg-theme="dark"] .csg-cart-toast a {
	color: #34f08a;
}

@keyframes csgCartToastIn {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.csg-cart-toast {
	animation: csgCartToastIn 0.22s ease-out;
}

.csg-final-header #cart.csg-cart > .csg-cart-button.is-busy {
	opacity: 0.72;
	pointer-events: none;
}
