/**
 * Delai-sait — WooCommerce styles (catalog, product, cart, checkout, thankyou).
 *
 * Relies on CSS custom properties and utility classes from main.css:
 * --ds-bg --ds-fg --ds-abyss --ds-glacier --ds-pulse --ds-deep --ds-card --ds-muted --ds-line
 * .ds-container .ds-btn .ds-btn--primary .ds-btn--ghost .ds-card .ds-h1 .ds-h2 .ds-lead .ds-breadcrumbs .ds-hero
 */

/* Local aliases with safe fallbacks (do not redefine --ds-* globals). */
.ds-scope {
	--w-bg: var(--ds-bg, #f2f5f7);
	--w-fg: var(--ds-fg, #0c1c26);
	--w-abyss: var(--ds-abyss, #07141d);
	--w-glacier: var(--ds-glacier, #0b4a70);
	--w-glacier-fg: var(--ds-glacier-fg, #f2f8fb);
	--w-pulse: var(--ds-pulse, #e0574a);
	--w-deep: var(--ds-deep, #0b3a53);
	--w-card: var(--ds-card, #ffffff);
	--w-muted: var(--ds-fg-muted, #5c707c);
	--w-line: var(--ds-line, #dfe7ea);

	/* Отступ липкой колонки: шапка (topbar + header) + воздух. */
	--w-sticky-top: calc(var(--ds-header-h, 68px) + var(--ds-topbar-h, 36px) + 16px);
}

/* ==========================================================================
   Generic
   ========================================================================== */

.ds-scope .woo-shell {
	width: 100%;
}

.ds-scope .woo-page-hero {
	background: color-mix(in srgb, var(--w-bg) 60%, var(--w-card));
	border-bottom: 1px solid var(--w-line);
	padding: 40px 0 44px;
}

.ds-scope .woo-page-hero__title {
	margin-top: 18px;
}

.ds-scope .woo-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	color: var(--w-muted);
}

.ds-scope .woo-breadcrumbs a {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s ease;
}

.ds-scope .woo-breadcrumbs a:hover {
	color: var(--w-glacier);
}

.ds-scope .woo-breadcrumbs__sep {
	opacity: 0.4;
}

.ds-scope .woo-breadcrumbs__current {
	color: inherit;
}

.ds-scope .woo-req {
	color: var(--w-pulse);
}

/* Inputs */
.ds-scope .woo-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--w-muted);
}

.ds-scope .woo-input,
.ds-scope .woo-qty__input {
	height: 44px;
	width: 100%;
	border: 1px solid var(--w-line);
	border-radius: 3px;
	background: var(--w-card);
	padding: 0 14px;
	font-size: 14.5px;
	color: var(--w-fg);
	transition: border-color 0.25s ease;
}

.ds-scope .woo-input:focus,
.ds-scope .woo-qty__input:focus {
	outline: none;
	border-color: var(--w-glacier);
}

.ds-scope .woo-input.is-invalid {
	border-color: var(--w-pulse);
}

.ds-scope .woo-field-hint {
	margin-top: 8px;
	font-size: 13px;
	color: var(--w-pulse);
}

.ds-scope .woo-field + .woo-field {
	margin-top: 16px;
}

/* Quantity stepper */
.ds-scope .woo-qty {
	display: flex;
	align-items: center;
	height: 44px;
	border: 1px solid var(--w-line);
	border-radius: 3px;
	background: var(--w-card);
	overflow: hidden;
}

.ds-scope .woo-qty__btn {
	flex: 0 0 44px;
	height: 100%;
	display: grid;
	place-items: center;
	background: none;
	border: 0;
	font-size: 17px;
	color: var(--w-muted);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.ds-scope .woo-qty__btn:hover {
	background: color-mix(in srgb, var(--w-glacier) 10%, transparent);
	color: var(--w-fg);
}

.ds-scope .woo-qty__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	border: 0;
	text-align: center;
	font-weight: 600;
	-moz-appearance: textfield;
	appearance: textfield;
}

.ds-scope .woo-qty__input::-webkit-outer-spin-button,
.ds-scope .woo-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Empty state */
.ds-scope .woo-empty {
	max-width: 640px;
	margin: 0 auto;
	padding: 56px 40px 48px;
	text-align: center;
}

.ds-scope .woo-empty__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--w-glacier) 12%, transparent);
	color: var(--w-glacier);
}

.ds-scope .woo-empty__badge svg {
	width: 40px;
	height: 40px;
}

.ds-scope .woo-empty__title {
	margin-top: 24px;
	font-family: var(--ds-font-display, inherit);
	font-size: 22px;
	font-weight: 600;
	color: var(--w-fg);
}

.ds-scope .woo-empty__text {
	margin-top: 10px;
	max-width: 460px;
	margin-inline: auto;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--w-muted);
}

.ds-scope .woo-empty__actions {
	margin-top: 28px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.ds-scope .woo-empty__perks {
	list-style: none;
	margin: 32px 0 0;
	padding: 24px 0 0;
	border-top: 1px dashed var(--w-line);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 28px;
}

.ds-scope .woo-empty__perks li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--w-muted);
}

.ds-scope .woo-empty__perks svg {
	width: 16px;
	height: 16px;
	flex: none;
	color: var(--w-glacier);
}

@media (max-width: 560px) {
	.ds-scope .woo-empty {
		padding: 40px 20px 36px;
	}

	.ds-scope .woo-empty__badge {
		width: 72px;
		height: 72px;
	}

	.ds-scope .woo-empty__badge svg {
		width: 32px;
		height: 32px;
	}

	.ds-scope .woo-empty__actions .ds-btn {
		width: 100%;
	}
}

/* ==========================================================================
   Catalog: hero, chips, grid, pagination
   ========================================================================== */

.ds-scope .woo-shop-hero__inner {
	padding: 48px 0 56px;
}

.ds-scope .woo-shop-hero__title {
	margin-top: 22px;
	max-width: 900px;
}

.ds-scope .woo-shop-hero__count {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	padding: 8px 14px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.1);
	font-size: 13px;
	color: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(4px);
}

.ds-scope .woo-shop-hero__num {
	font-weight: 700;
	color: var(--w-glacier);
}

.ds-scope .woo-chips-bar {
	border-bottom: 1px solid var(--w-line);
	background: color-mix(in srgb, var(--w-bg) 70%, var(--w-card));
}

.ds-scope .woo-chips-bar__inner {
	display: flex;
	align-items: center;
	gap: 8px;
	overflow-x: auto;
	padding: 14px 0;
	scrollbar-width: none;
}

.ds-scope .woo-chips-bar__inner::-webkit-scrollbar {
	display: none;
}

.ds-scope .woo-chips-bar__label {
	flex-shrink: 0;
	margin-right: 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--w-muted);
}

.ds-scope .woo-chip {
	flex-shrink: 0;
	padding: 7px 16px;
	border-radius: 999px;
	background: var(--w-card);
	color: var(--w-fg);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.25s ease, color 0.25s ease;
}

.ds-scope .woo-chip:hover,
.ds-scope .woo-chip.is-active {
	background: var(--w-abyss);
	color: #f6f3ec;
}

.ds-scope .woo-shop-grid-section {
	padding: 48px 0 64px;
}

.ds-scope .woo-shop-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1100px) {
	.ds-scope .woo-shop-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 700px) and (max-width: 1099px) {
	.ds-scope .woo-shop-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ds-scope .woo-pagination {
	margin-top: 48px;
	display: flex;
	justify-content: center;
}

.ds-scope .woo-pagination .nav-links {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ds-scope .woo-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--w-line);
	border-radius: 3px;
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	color: var(--w-fg);
	transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.ds-scope .woo-pagination .page-numbers:hover {
	border-color: var(--w-glacier);
	color: var(--w-glacier);
}

.ds-scope .woo-pagination .page-numbers.current {
	background: var(--w-abyss);
	border-color: var(--w-abyss);
	color: var(--w-card);
}

/* ==========================================================================
   Product card
   ========================================================================== */

.ds-scope .woo-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--w-line);
	border-radius: 4px;
	background: var(--w-card);
	overflow: hidden;
	transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.ds-scope .woo-card:hover {
	transform: translateY(-6px);
	border-color: color-mix(in srgb, var(--w-glacier) 70%, transparent);
	box-shadow: 0 24px 50px -24px rgba(9, 55, 80, 0.45);
}

.ds-scope .ds-shop-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.ds-scope .ds-shop-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.ds-scope .woo-card:hover .ds-shop-card__media img {
	transform: scale(1.04);
}

.ds-scope .ds-shop-card__shade {
	position: absolute;
	inset: 60% 0 0 0;
	background: linear-gradient(to top, rgba(6, 34, 47, 0.85), rgba(6, 34, 47, 0.25), transparent);
	pointer-events: none;
}

.ds-scope .ds-shop-card__price {
	position: absolute;
	left: 14px;
	bottom: 12px;
	padding: 6px 10px;
	border-radius: 3px;
	background: var(--w-card);
	color: var(--w-fg);
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ds-scope .ds-shop-card__price del {
	opacity: 0.55;
	font-weight: 400;
}

.ds-scope .ds-shop-card__price ins {
	text-decoration: none;
}

.ds-scope .ds-shop-card__cat {
	position: absolute;
	right: 14px;
	bottom: 12px;
	max-width: 55%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding: 5px 9px;
	border-radius: 3px;
	background: rgba(11, 58, 83, 0.72);
	color: #fff;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	backdrop-filter: blur(4px);
}

.ds-scope .ds-shop-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 18px 20px 20px;
}

.ds-scope .ds-shop-card__title {
	margin: 0;
	font-size: 15.5px;
	font-weight: 500;
	line-height: 1.35;
}

.ds-scope .ds-shop-card__title a {
	color: var(--w-fg);
	text-decoration: none;
	transition: color 0.25s ease;
}

.ds-scope .woo-card:hover .ds-shop-card__title a {
	color: var(--w-glacier);
}

.ds-scope .ds-shop-card__hero {
	margin-top: 8px;
	font-family: 'Spectral', Georgia, serif;
	font-style: italic;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--w-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ds-scope .ds-shop-card__footer {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 16px;
}

.ds-scope .ds-shop-card__more {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--w-muted);
	text-decoration: none;
	transition: color 0.25s ease;
}

.ds-scope .woo-card:hover .ds-shop-card__more {
	color: var(--w-glacier);
}

.ds-scope .woo-mini-add {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 14px;
	border-radius: 3px;
	background: var(--w-abyss);
	color: #f6f3ec;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.ds-scope .woo-mini-add:hover {
	background: var(--w-glacier);
	color: var(--w-glacier-fg);
}

.ds-scope .woo-mini-add:active {
	transform: scale(0.95);
}

.ds-scope .woo-mini-add.loading {
	opacity: 0.6;
	pointer-events: none;
}

.ds-scope .woo-mini-add--ghost {
	background: none;
	border: 1px solid var(--w-line);
	color: var(--w-fg);
}

.ds-scope .woo-mini-add--ghost:hover {
	border-color: var(--w-glacier);
	color: var(--w-glacier);
	background: none;
}

/* Мобильная адаптация карточек: компактные элементы, читабельная карточка */
@media (max-width: 560px) {
	.ds-scope .woo-shop-grid {
		gap: 12px;
	}

	.ds-scope .woo-card:hover {
		transform: none;
	}

	.ds-scope .ds-shop-card__media {
		aspect-ratio: 1 / 1;
	}

	.ds-scope .ds-shop-card__shade {
		inset: 50% 0 0 0;
	}

	.ds-scope .ds-shop-card__price {
		left: 8px;
		bottom: 8px;
		padding: 4px 7px;
		font-size: 12px;
	}

	/* Категория длинная и не читается на узкой карточке — цена важнее */
	.ds-scope .ds-shop-card__cat {
		display: none;
	}

	.ds-scope .ds-shop-card__body {
		padding: 10px 12px 12px;
	}

	.ds-scope .ds-shop-card__title {
		font-size: 13px;
		line-height: 1.3;
	}

	.ds-scope .ds-shop-card__hero {
		margin-top: 5px;
		font-size: 11.5px;
		line-height: 1.35;
		-webkit-line-clamp: 1;
	}

	.ds-scope .ds-shop-card__footer {
		gap: 8px;
		padding-top: 10px;
		justify-content: flex-end;
	}

	/* На узкой карточке «Подробнее» не влезает рядом с кнопкой —
	   вся карточка и так ведёт на страницу товара */
	.ds-scope .ds-shop-card__more {
		display: none;
	}

	.ds-scope .woo-mini-add {
		height: 30px;
		padding: 0 10px;
		font-size: 11.5px;
		white-space: nowrap;
		flex-shrink: 0;
	}
}

/* ==========================================================================
   Product page: hero
   ========================================================================== */

.ds-scope .woo-product-hero {
	position: relative;
	overflow: hidden;
	background: var(--w-abyss);
}

.ds-scope .woo-product-hero__bg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.1);
	opacity: 0.45;
	filter: blur(1px);
}

.ds-scope .woo-product-hero__inner {
	position: relative;
	padding: 40px 0 56px;
}

.ds-scope .woo-product-hero .woo-breadcrumbs,
.ds-scope .woo-shop-hero .woo-breadcrumbs {
	color: rgba(255, 255, 255, 0.6);
}

.ds-scope .woo-product-hero .woo-breadcrumbs a:hover,
.ds-scope .woo-shop-hero .woo-breadcrumbs a:hover {
	color: var(--w-glacier);
}

.ds-scope .woo-product-hero__eyebrow {
	margin-top: 30px;
	max-width: 760px;
	font-family: 'Spectral', Georgia, serif;
	font-style: italic;
	font-size: clamp(20px, 4vw, 38px);
	line-height: 1.15;
	overflow-wrap: anywhere;
	color: rgba(255, 255, 255, 0.9);
}

.ds-scope .woo-product-hero__title {
	margin-top: 16px;
	max-width: 900px;
	color: #fff;
}

.ds-scope .woo-product-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 22px;
}

.ds-scope .woo-tag {
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 3px;
	background: rgba(11, 58, 83, 0.6);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	backdrop-filter: blur(4px);
}

/* ==========================================================================
   Product page: body grid
   ========================================================================== */

.ds-scope .woo-product-body {
	padding: 48px 0 64px;
}

.ds-scope .woo-product-grid {
	display: grid;
	gap: 40px;
	grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
	.ds-scope .woo-product-grid {
		grid-template-columns: 1.55fr 1fr;
		gap: 56px;
	}
}

.ds-scope .woo-intro {
	font-size: 16.5px;
	line-height: 1.75;
	color: var(--w-fg);
}

.ds-scope .woo-intro p + p {
	margin-top: 1em;
}

.ds-scope .woo-section {
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--w-line);
}

.ds-scope .woo-section__heading {
	margin-bottom: 14px;
}

.ds-scope .woo-section__text {
	font-size: 15.5px;
	line-height: 1.75;
	color: color-mix(in srgb, var(--w-fg) 85%, var(--w-muted));
}

.ds-scope .woo-section__text p + p {
	margin-top: 0.9em;
}

/* Gallery */
.ds-scope .woo-gallery {
	margin-top: 48px;
}

.ds-scope .woo-gallery__head {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ds-scope .woo-gallery__label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--w-muted);
}

.ds-scope .woo-gallery__line {
	flex: 1 1 auto;
	height: 1px;
	background: var(--w-line);
}

.ds-scope .woo-gallery__count {
	font-weight: 700;
	font-size: 13px;
	color: var(--w-glacier);
}

.ds-scope .woo-gallery__main {
	margin: 20px 0 0;
	aspect-ratio: 16 / 10;
	border: 1px solid var(--w-line);
	border-radius: 4px;
	overflow: hidden;
	background: var(--w-muted);
}

.ds-scope .woo-gallery__main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: wooFade 0.45s ease;
}

@keyframes wooFade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.ds-scope .woo-gallery__thumbs {
	margin-top: 12px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.ds-scope .woo-gallery__thumb {
	aspect-ratio: 4 / 3;
	padding: 0;
	border: 1px solid var(--w-line);
	border-radius: 4px;
	background: none;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ds-scope .woo-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ds-scope .woo-gallery__thumb:hover {
	opacity: 1;
}

.ds-scope .woo-gallery__thumb.is-active {
	opacity: 1;
	border-color: var(--w-glacier);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--w-glacier) 30%, transparent);
}

/* Миниатюры-карусель: когда фото больше четырёх */
.ds-scope .woo-gallery__thumbs--carousel {
	position: relative;
	display: block;
	overflow: hidden;
}

.ds-scope .woo-gallery__thumbs--carousel .woo-gallery__track {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding-bottom: 2px;
}

.ds-scope .woo-gallery__thumbs--carousel .woo-gallery__track::-webkit-scrollbar {
	display: none;
}

.ds-scope .woo-gallery__thumbs--carousel .woo-gallery__thumb {
	flex: 0 0 auto;
	width: calc((100% - 36px) / 4);
	scroll-snap-align: start;
}

.ds-scope .woo-gallery__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--w-line);
	border-radius: 50%;
	background: color-mix(in srgb, var(--w-card) 88%, transparent);
	color: var(--w-fg);
	cursor: pointer;
	box-shadow: 0 6px 18px -8px rgba(9, 30, 44, .45);
	backdrop-filter: blur(4px);
	transition: opacity .2s ease, background .2s ease, color .2s ease;
}

.ds-scope .woo-gallery__arrow svg {
	width: 18px;
	height: 18px;
}

.ds-scope .woo-gallery__arrow:hover {
	background: var(--w-glacier);
	border-color: var(--w-glacier);
	color: var(--w-glacier-fg);
}

.ds-scope .woo-gallery__arrow--prev { left: -8px; }
.ds-scope .woo-gallery__arrow--next { right: -8px; }

.ds-scope .woo-gallery__arrow[disabled] {
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 639px) {
	.ds-scope .woo-gallery__thumbs--carousel .woo-gallery__thumb {
		width: calc((100% - 12px) / 2);
	}

	.ds-scope .woo-gallery__arrow {
		width: 34px;
		height: 34px;
	}

	.ds-scope .woo-gallery__arrow--prev { left: 4px; }
	.ds-scope .woo-gallery__arrow--next { right: 4px; }
}

/* Program accordion + timeline */
.ds-scope .woo-program {
	margin-top: 48px;
}

/* Табы-дни: свёрнутые табы вплотную, раскрытая панель отделена зазором */
.ds-scope .woo-program--days .woo-program__toggle {
	margin-bottom: 12px;
}

.ds-scope .woo-program--days .woo-program__toggle + .woo-program__panel {
	margin-bottom: 0;
}

.ds-scope .woo-program--days .woo-program__panel.is-open {
	margin-bottom: 12px;
}

/* Chrome не сжимает 0fr-трек (margin ребёнка даёт 82px) — свёрнутые панели обрезаем */
.ds-scope .woo-program--days .woo-program__panel:not(.is-open) {
	max-height: 0;
	margin-bottom: 0;
}

.ds-scope .woo-program--days .woo-program__day-label {
	color: var(--w-glacier);
}

.ds-scope .woo-program__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	border: 1px solid var(--w-line);
	border-radius: 4px;
	background: var(--w-card);
	cursor: pointer;
	transition: border-color 0.25s ease;
}

.ds-scope .woo-program__toggle:hover {
	border-color: color-mix(in srgb, var(--w-glacier) 60%, transparent);
}

.ds-scope .woo-program__head {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ds-scope .woo-program__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 3px;
	background: var(--w-abyss);
	color: var(--w-card);
}

.ds-scope .woo-program__icon svg {
	width: 20px;
	height: 20px;
}

.ds-scope .woo-program__title {
	font-size: 17px;
	font-weight: 600;
	color: var(--w-fg);
}

.ds-scope .woo-program__chevron {
	color: var(--w-muted);
	transition: transform 0.4s ease;
}

.ds-scope .woo-program__chevron svg {
	width: 20px;
	height: 20px;
	display: block;
}

.ds-scope .woo-program__toggle.is-open .woo-program__chevron {
	transform: rotate(180deg);
}

.ds-scope .woo-program__panel {
	display: grid;
	grid-template-rows: 0fr;
	overflow: hidden;
	transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
	opacity: 0;
}

.ds-scope .woo-program__panel.is-open {
	grid-template-rows: 1fr;
	opacity: 1;
}

.ds-scope .woo-program__panel > * {
	min-height: 0;
	overflow: hidden;
}

.ds-scope .woo-timeline {
	margin: 24px 0 0;
	padding: 28px 32px;
	border: 1px solid var(--w-line);
	border-radius: 4px;
	background: var(--w-card);
	list-style: none;
	position: relative;
	border-left: 2px dashed color-mix(in srgb, var(--w-glacier) 40%, transparent);
	margin-left: 6px;
}

.ds-scope .woo-timeline__item {
	position: relative;
	padding-left: 26px;
}

.ds-scope .woo-timeline__item + .woo-timeline__item {
	margin-top: 22px;
}

.ds-scope .woo-timeline__dot {
	position: absolute;
	left: -24px;
	top: 3px;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
}

/* Шаг со временем — серая иконка часов без подложки */
.ds-scope .woo-timeline__dot::after {
	content: '';
	width: 17px;
	height: 17px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fa1ac' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5V12l3 1.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ds-scope .woo-timeline__time {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--w-glacier);
}

.ds-scope .woo-timeline__text {
	margin-top: 4px;
	max-width: 640px;
	font-size: 14.5px;
	line-height: 1.65;
	color: color-mix(in srgb, var(--w-fg) 85%, var(--w-muted));
}

/* Форматирование из визуального редактора внутри пункта программы */
.ds-scope .woo-timeline__text p,
.ds-scope .woo-timeline__text ul,
.ds-scope .woo-timeline__text ol,
.ds-scope .woo-timeline__text blockquote {
	margin: 0 0 8px;
}

.ds-scope .woo-timeline__text > :last-child {
	margin-bottom: 0;
}

.ds-scope .woo-timeline__text ul,
.ds-scope .woo-timeline__text ol {
	padding-left: 20px;
}

.ds-scope .woo-timeline__text blockquote {
	padding-left: 12px;
	border-left: 2px solid var(--w-glacier);
}

.ds-scope .woo-timeline__text a {
	color: var(--w-glacier);
	font-weight: 600;
}

/* Программа без таймингов — нумерованный список */
.ds-scope .woo-timeline--numbered {
	border-left: 0;
	margin-left: 0;
	padding: 28px 32px;
}

.ds-scope .woo-timeline--numbered .woo-timeline__item {
	padding-left: 36px;
}

/* Нумерованный шаг — серый кружок с синей цифрой */
.ds-scope .woo-timeline--numbered .woo-timeline__dot {
	left: 0;
	border: 0;
	width: 26px;
	height: 26px;
	background: #dfe6e8;
	color: #0b4a70;
}

.ds-scope .woo-timeline--numbered .woo-timeline__dot::after {
	display: none;
}

.ds-scope .woo-timeline__num {
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	color: #0b4a70;
}

/* Пункт без времени среди таймингов — заголовок дня */
.ds-scope .woo-timeline__item--day {
	padding-left: 0;
}

.ds-scope .woo-timeline__item--day .woo-timeline__dot {
	left: -33px;
	top: 3px;
	width: 12px;
	height: 12px;
}

.ds-scope .woo-timeline__item--day .woo-timeline__dot::after {
	display: none;
}

.ds-scope .woo-timeline__item--day .woo-timeline__text {
	margin-top: 0;
	font-family: var(--ds-font-display, 'Unbounded', 'Manrope', system-ui, sans-serif);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--w-fg);
}

.ds-scope .woo-timeline__day-label {
	color: var(--w-glacier);
}

.ds-scope .woo-timeline__item--day + .woo-timeline__item:not(.woo-timeline__item--day) {
	margin-top: 16px;
}

/* Заголовок дня в нумерованном режиме — без чипа с номером */
.ds-scope .woo-timeline--numbered .woo-timeline__item--day {
	padding-left: 0;
	margin-top: 30px;
}

.ds-scope .woo-timeline--numbered .woo-timeline__item--day:first-child {
	margin-top: 0;
}

.ds-scope .woo-timeline--numbered .woo-timeline__item--day .woo-timeline__dot {
	display: none;
}

/* Info blocks */
.ds-scope .woo-info-grid {
	margin-top: 48px;
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.ds-scope .woo-info-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ds-scope .woo-info--price {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1024px) {
	.ds-scope .woo-info-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ds-scope .woo-info {
	border: 1px solid var(--w-line);
	border-radius: 4px;
	padding: 24px 28px;
	background: var(--w-card);
}

.ds-scope .woo-info--price {
	background: color-mix(in srgb, var(--w-bg) 55%, var(--w-card));
	border: 0;
}

.ds-scope .woo-info__heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--w-fg);
}

.ds-scope .woo-info__heading svg {
	width: 20px;
	height: 20px;
	color: var(--w-glacier);
	flex: 0 0 auto;
}

.ds-scope .woo-info__heading--bag svg {
	color: var(--w-pulse);
}

/* Карточки «Вместимость» и «Даты и расписание» — свой оттенок иконки */
.ds-scope .woo-info__heading--capacity svg {
	color: var(--w-abyss);
}

.ds-scope .woo-info__heading--schedule svg {
	color: var(--w-pulse);
}

html[data-theme="dark"] .ds-scope .woo-info__heading--capacity svg {
	color: var(--w-glacier);
}

.ds-scope .woo-info__text {
	margin-top: 14px;
	font-size: 14.5px;
	line-height: 1.65;
	color: color-mix(in srgb, var(--w-fg) 85%, var(--w-muted));
}

.ds-scope .woo-info__text p + p {
	margin-top: 8px;
}

.ds-scope .woo-info__schedule-line {
	padding-top: 8px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--w-fg);
}

.ds-scope .woo-info__callout {
	margin-top: 16px;
	padding: 12px 16px;
	border-left: 3px solid var(--w-glacier);
	border-radius: 2px;
	background: color-mix(in srgb, var(--w-glacier) 10%, var(--w-card));
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--w-fg);
}

.ds-scope .woo-info__list {
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.ds-scope .woo-info__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14.5px;
	line-height: 1.55;
	color: color-mix(in srgb, var(--w-fg) 85%, var(--w-muted));
}

.ds-scope .woo-info__list li + li {
	margin-top: 10px;
}

.ds-scope .woo-dot {
	flex: 0 0 auto;
	margin-top: 9px;
	width: 6px;
	height: 6px;
}

.ds-scope .woo-dot--glacier {
	background: var(--w-glacier);
	border-radius: 50%;
}

.ds-scope .woo-dot--pulse {
	background: var(--w-pulse);
	border-radius: 2px;
}

/* Reviews strip */
.ds-scope .woo-reviews {
	margin-top: 60px;
}

.ds-scope .woo-reviews__strip {
	margin-top: 24px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 20px;
	padding: 20px 26px;
}

.ds-scope .woo-reviews__rating {
	font-size: 28px;
	font-weight: 700;
	color: var(--w-glacier);
}

.ds-scope .woo-reviews__stars {
	letter-spacing: 3px;
	color: var(--w-glacier);
}

.ds-scope .woo-reviews__count {
	font-size: 14px;
	color: var(--w-muted);
}

.ds-scope .woo-reviews__link {
	margin-left: auto;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--w-glacier);
	text-decoration: none;
}

.ds-scope .woo-reviews__link:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Product page: booking card (sticky)
   ========================================================================== */

.ds-scope .woo-book {
	align-self: start;
}

@media (min-width: 1024px) {
	.ds-scope .woo-book {
		position: sticky;
		top: var(--w-sticky-top);
	}
}

.ds-scope .woo-book__card {
	border: 1px solid var(--w-line);
	border-radius: 4px;
	background: var(--w-card);
	padding: 26px 28px;
	box-shadow: 0 24px 60px -36px rgba(9, 55, 80, 0.4);
}

.ds-scope .woo-book__label {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--w-muted);
}

.ds-scope .woo-book__price {
	margin-top: 8px;
	font-size: clamp(30px, 4vw, 38px);
	font-weight: 600;
	line-height: 1;
	color: var(--w-fg);
}

.ds-scope .woo-book__price del {
	font-size: 0.5em;
	opacity: 0.5;
	font-weight: 400;
}

.ds-scope .woo-book__price ins {
	text-decoration: none;
}

/* Живой итог под ценой за человека */
.ds-scope .woo-book__total {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--w-line);
	animation: wooFade 0.3s ease;
}

/* display:flex выше перебивает [hidden] — возвращаем скрытие. */
.ds-scope .woo-book__total[hidden] {
	display: none;
}

.ds-scope .woo-book__total-label {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--w-muted);
}

.ds-scope .woo-book__total-value {
	font-family: var(--ds-font-display);
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	color: var(--ds-accent-fg);
	white-space: nowrap;
}

.ds-scope .woo-book__total-note {
	font-size: 12.5px;
	color: var(--w-muted);
}

.ds-scope .woo-book__form {
	margin-top: 24px;
}

.ds-scope .woo-book__form .woo-field {
	margin: 0 0 16px;
}

.ds-scope .woo-book__form .woo-label {
	margin-bottom: 8px;
}

.ds-scope .woo-book__form .woo-date-input {
	margin-top: 0;
}

.ds-scope .woo-book__submit {
	width: 100%;
	height: 50px;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ds-scope .woo-book__note {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--w-line);
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--w-muted);
}

.ds-scope .woo-book__note svg {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	color: var(--w-glacier);
}

.ds-scope .woo-book__contact {
	margin-top: 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--w-fg);
}

.ds-scope .woo-book__contact svg {
	width: 16px;
	height: 16px;
	color: var(--w-glacier);
	flex: 0 0 auto;
}

.ds-scope .woo-book__contact a {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s ease;
}

.ds-scope .woo-book__contact a:hover {
	color: var(--w-glacier);
}

/* Related */
.ds-scope .woo-related {
	padding: 56px 0;
	background: color-mix(in srgb, var(--w-bg) 60%, var(--w-card));
}

.ds-scope .woo-related__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
}

.ds-scope .woo-related__head .ds-h2 {
	margin: 0;
}

.ds-scope .woo-related__hint {
	font-size: 12.5px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--w-muted);
}

.ds-scope .woo-related .woo-shop-grid {
	margin-top: 32px;
}

/* ==========================================================================
   Cart
   ========================================================================== */

.ds-scope .woo-cart {
	padding: 48px 0 64px;
}

.ds-scope .woo-cart__grid {
	display: grid;
	gap: 32px;
	grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
	.ds-scope .woo-cart__grid {
		grid-template-columns: 1.6fr 1fr;
	}
}

.ds-scope .woo-cart__items {
	border: 1px solid var(--w-line);
	border-radius: 4px;
	background: var(--w-card);
	overflow: hidden;
}

.ds-scope .woo-cart-item {
	display: flex;
	gap: 16px;
	padding: 20px;
}

.ds-scope .woo-cart-item + .woo-cart-item {
	border-top: 1px solid var(--w-line);
}

@media (max-width: 639px) {
	.ds-scope .woo-cart-item__media {
		display: none;
	}

	/* Карточки на узком экране не должны упираться в край. */
	.ds-scope .woo-summary,
	.ds-scope .woo-checkout__contact,
	.ds-scope .woo-cart-item {
		padding-left: 18px;
		padding-right: 18px;
	}
}

.ds-scope .woo-cart-item__media {
	flex: 0 0 128px;
	aspect-ratio: 4 / 3;
	border: 1px solid var(--w-line);
	border-radius: 3px;
	overflow: hidden;
}

.ds-scope .woo-cart-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ds-scope .woo-cart-item__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ds-scope .woo-cart-item__title {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--w-fg);
	text-decoration: none;
	transition: color 0.25s ease;
}

.ds-scope .woo-cart-item__title:hover {
	color: var(--w-glacier);
}

.ds-scope .woo-cart-item__cats {
	margin-top: 4px;
	font-size: 13.5px;
	color: var(--w-muted);
}

.ds-scope .woo-cart-date {
	margin-top: 8px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
	color: var(--w-muted);
}

.ds-scope .woo-cart-date__label {
	font-weight: 600;
}

.ds-scope .woo-cart-date__value {
	color: var(--w-glacier);
	font-weight: 700;
}

.ds-scope .woo-cart-date .woo-date-input {
	width: 160px;
	height: 38px;
	font-size: 13.5px;
}

.ds-scope .woo-cart-item__row {
	margin-top: auto;
	padding-top: 12px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 18px;
}

.ds-scope .woo-cart-item__row .woo-qty {
	height: 40px;
}

.ds-scope .woo-cart-item__row .woo-qty__btn {
	flex-basis: 40px;
}

.ds-scope .woo-cart-item__row .woo-qty__input {
	width: 48px;
}

.ds-scope .woo-cart-item__total {
	margin-left: auto;
	font-size: 17px;
	font-weight: 700;
	color: var(--w-fg);
}

.ds-scope .woo-cart-item__remove {
	font-size: 13px;
	color: var(--w-muted);
	text-decoration: none;
}

.ds-scope .woo-cart-item__remove:hover {
	color: var(--w-pulse);
	text-decoration: underline;
}

/*
 * Мобильная раскладка строки позиции: степпер и «Удалить» делят первую
 * строку, сумма уходит на вторую. Иначе три элемента конкурируют
 * за ширину и сумма заезжает под степпер.
 */
@media (max-width: 639px) {
	.ds-scope .woo-cart-item__row {
		display: grid;
		grid-template-columns: auto 1fr;
		gap: 12px;
		align-items: center;
	}

	.ds-scope .woo-cart-item__row .woo-qty {
		grid-column: 1;
		grid-row: 1;
	}

	.ds-scope .woo-cart-item__remove {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
		align-self: center;
	}

	.ds-scope .woo-cart-item__total {
		grid-column: 1 / -1;
		grid-row: 2;
		margin-left: 0;
		text-align: right;
	}
}

/* Summary card (cart + checkout) */
.ds-scope .woo-cart__summary {
	align-self: start;
}

@media (min-width: 1024px) {
	.ds-scope .woo-cart__summary,
	.ds-scope .woo-checkout__summary {
		position: sticky;
		top: var(--w-sticky-top);
	}
}

/* Якорные заголовки не должны заезжать под липкую шапку. */
.ds-scope :target,
.ds-scope .woo-summary,
.ds-scope .woo-checkout__fields {
	scroll-margin-top: var(--w-sticky-top);
}

.ds-scope .woo-summary {
	padding: 26px 28px;
}

.ds-scope .woo-summary__title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: var(--w-fg);
}

.ds-scope .woo-summary .woocommerce-cart-form__cart-item,
.ds-scope .woo-summary table.shop_table {
	width: 100%;
	border: 0;
}

/* Restyle WC totals table to the design */
.ds-scope .woo-summary table.shop_table {
	border-collapse: collapse;
	margin-top: 18px;
	font-size: 14.5px;
}

.ds-scope .woo-summary table.shop_table th,
.ds-scope .woo-summary table.shop_table td {
	border: 0;
	padding: 10px 0;
	background: none;
	color: var(--w-fg);
}

.ds-scope .woo-summary table.shop_table thead {
	display: none;
}

.ds-scope .woo-summary table.shop_table .order-total {
	border-top: 1px solid var(--w-line);
	font-weight: 700;
}

.ds-scope .woo-summary table.shop_table .order-total .amount {
	font-size: 20px;
	font-weight: 700;
}

.ds-scope .woo-summary__update {
	margin-top: 14px;
	width: 100%;
	height: 42px;
	border: 1px solid var(--w-line);
	border-radius: 3px;
	background: none;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--w-muted);
	cursor: pointer;
	transition: border-color 0.25s ease, color 0.25s ease;
}

.ds-scope .woo-summary__update:hover {
	border-color: var(--w-glacier);
	color: var(--w-glacier);
}

.ds-scope .woo-summary__checkout {
	margin-top: 10px;
	width: 100%;
	height: 50px;
	justify-content: center;
}

.ds-scope .woo-summary__back {
	display: block;
	margin-top: 14px;
	text-align: center;
	font-size: 13.5px;
	color: var(--w-muted);
	text-decoration: none;
}

.ds-scope .woo-summary__back:hover {
	color: var(--w-glacier);
}

.ds-scope .woo-summary__note {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--w-line);
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--w-muted);
}

/* Промокод */
.ds-scope .woo-coupon {
	margin-top: 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--w-line);
}

.ds-scope .woo-coupon__toggle {
	padding: 0;
	border: 0;
	background: none;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--w-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	transition: color 0.25s ease;
}

.ds-scope .woo-coupon__toggle:hover {
	color: var(--w-glacier);
}

.ds-scope .woo-coupon__form[hidden] {
	display: none;
}

.ds-scope .woo-coupon__form {
	margin-top: 14px;
	display: grid;
	gap: 10px;
}

.ds-scope .woo-coupon__form .woo-label {
	margin-bottom: 0;
}

.ds-scope .woo-coupon__apply {
	height: 44px;
	border: 1px solid var(--w-line);
	border-radius: 3px;
	background: none;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--w-muted);
	cursor: pointer;
	transition: border-color 0.25s ease, color 0.25s ease;
}

.ds-scope .woo-coupon__apply:hover {
	border-color: var(--w-glacier);
	color: var(--w-glacier);
}

/* Рекомендации */
.ds-scope .woo-recos {
	margin-top: 56px;
	padding-top: 44px;
	border-top: 1px solid var(--w-line);
}

.ds-scope .woo-recos__head {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ds-scope .woo-recos__title {
	margin: 0;
	font-family: var(--ds-font-display);
	font-size: clamp(20px, 2.4vw, 26px);
	font-weight: 600;
	line-height: 1.1;
	color: var(--w-fg);
}

.ds-scope .woo-recos__line {
	flex: 1 1 auto;
	height: 1px;
	background: var(--w-line);
}

.ds-scope .woo-recos__grid {
	margin-top: 28px;
}

/* ==========================================================================
   Checkout
   ========================================================================== */

.ds-scope .woo-checkout {
	padding: 48px 0 64px;
}

/*
 * Двухколоночная сетка оформления: слева данные, справа итог.
 * Доля слева больше, чем в корзине, — полей в форме больше, чем позиций.
 */
.ds-scope .woo-checkout__grid {
	display: grid;
	gap: 32px;
	grid-template-columns: 1fr;
	align-items: start;
}

@media (min-width: 1024px) {
	.ds-scope .woo-checkout__grid {
		grid-template-columns: 1.55fr 1fr;
	}
}

.ds-scope .woo-checkout__hint {
	display: flex;
	gap: 12px;
	margin-top: 14px;
	padding: 13px 16px;
	border-left: 2px solid var(--w-glacier);
	border-radius: 0 var(--ds-radius) var(--ds-radius) 0;
	background: color-mix(in srgb, var(--w-glacier) 8%, var(--w-card));
	font-family: var(--ds-font-serif);
	font-style: italic;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--ds-ink-soft);
}

/* Промокод на checkout: приглушённая строка вместо заметного блока */
.ds-scope .woocommerce-form-coupon-toggle {
	margin-bottom: 0;
	display: flex;
	justify-content: flex-start;
}

.ds-scope .woocommerce-form-coupon-toggle .woocommerce-notices-wrapper {
	margin: 0;
}

/*
 * wc_print_notice( 'notice' ) печатает <div class="woocommerce-info"> без
 * обёртки .woocommerce-notices-wrapper — селектор ниже привязан именно к нему.
 */
.ds-scope .woocommerce-form-coupon-toggle .woocommerce-info {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	width: auto;
	margin: 0;
	padding: 10px 16px;
	border: 1px dashed var(--w-line);
	border-radius: var(--ds-radius);
	background: none;
	font-family: var(--ds-font-sans);
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--w-muted);
}

.ds-scope .woocommerce-form-coupon-toggle .showcoupon {
	color: var(--ds-accent-fg);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.25s ease;
}

.ds-scope .woocommerce-form-coupon-toggle .showcoupon:hover {
	text-decoration: none;
}

/*
 * Раскладка живёт во внутреннем .woo-coupon__row, а не на самом <form>:
 * WooCommerce открывает эту форму через jQuery slideToggle(), который
 * ставит inline display:block — и любой display на форме из таблицы стилей
 * перестаёт действовать. Внутренний div скрипт не трогает.
 */
.ds-scope #woocommerce-checkout-form-coupon {
	margin-top: 14px;
}

.ds-scope #woocommerce-checkout-form-coupon .woo-coupon__row {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 460px;
}

@media (max-width: 479px) {
	.ds-scope #woocommerce-checkout-form-coupon .woo-coupon__row {
		flex-wrap: wrap;
	}

	.ds-scope #woocommerce-checkout-form-coupon button.button {
		width: 100%;
	}
}

.ds-scope #woocommerce-checkout-form-coupon input.input-text {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	height: 44px;
	border: 1px solid var(--w-line);
	border-radius: 3px;
	background: var(--w-card);
	padding: 0 14px;
	font-family: var(--ds-font-sans);
	font-size: 14.5px;
	color: var(--w-fg);
	transition: border-color 0.25s ease;
}

.ds-scope #woocommerce-checkout-form-coupon input.input-text:focus {
	outline: none;
	border-color: var(--w-glacier);
}

.ds-scope #woocommerce-checkout-form-coupon button.button {
	flex: 0 0 auto;
	height: 44px;
	padding: 0 20px;
	border: 1px solid var(--w-line);
	border-radius: 3px;
	background: none;
	font-family: var(--ds-font-display);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--w-muted);
	cursor: pointer;
	transition: border-color 0.25s ease, color 0.25s ease;
}

.ds-scope #woocommerce-checkout-form-coupon button.button:hover {
	border-color: var(--w-glacier);
	color: var(--w-glacier);
}

.ds-scope .woo-checkout__fields {
	margin-top: 22px;
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* На телефоне две колонки сжимают поля в нечитаемые полоски. */
@media (max-width: 639px) {
	.ds-scope .woo-checkout__fields {
		grid-template-columns: 1fr;
	}
}

.ds-scope .woo-checkout__fields .form-row {
	grid-column: span 1;
	margin: 0;
	padding: 0;
}

.ds-scope .woo-checkout__fields .form-row.woo-col--wide,
.ds-scope .woo-checkout__fields .form-row.notes,
.ds-scope .woo-checkout__fields .form-row[data-priority="100"] {
	grid-column: 1 / -1;
}

.ds-scope .woo-checkout__fields label {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--w-muted);
}

.ds-scope .woo-checkout__fields label .required {
	color: var(--w-pulse);
	text-decoration: none;
}

.ds-scope .woo-checkout__fields .input-text,
.ds-scope .woo-checkout__fields textarea,
.ds-scope .woo-checkout__fields select {
	width: 100%;
	height: 44px;
	border: 1px solid var(--w-line);
	border-radius: 3px;
	background: var(--w-card);
	padding: 0 14px;
	font-size: 14.5px;
	color: var(--w-fg);
	transition: border-color 0.25s ease;
}

.ds-scope .woo-checkout__fields textarea {
	height: auto;
	min-height: 96px;
	padding: 12px 14px;
	resize: vertical;
}

.ds-scope .woo-checkout__fields .input-text:focus,
.ds-scope .woo-checkout__fields textarea:focus {
	outline: none;
	border-color: var(--w-glacier);
}

/* Order review table */
.ds-scope .woo-checkout__summary #order_review {
	border: 0;
	background: none;
	padding: 0;
}

.ds-scope .woo-summary table.woocommerce-checkout-review-order-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 18px;
	font-size: 14.5px;
}

.ds-scope .woo-summary table.woocommerce-checkout-review-order-table th,
.ds-scope .woo-summary table.woocommerce-checkout-review-order-table td {
	border: 0;
	padding: 10px 0;
	background: none;
	vertical-align: top;
	color: var(--w-fg);
}

.ds-scope .woo-summary table.woocommerce-checkout-review-order-table thead {
	display: none;
}

.ds-scope .woo-summary table.woocommerce-checkout-review-order-table tbody td:first-child {
	padding-right: 16px;
}

.ds-scope .woo-summary table.woocommerce-checkout-review-order-table .product-quantity {
	color: var(--w-muted);
	font-weight: 400;
}

.ds-scope .woo-summary table.woocommerce-checkout-review-order-table dl {
	margin: 4px 0 0;
	font-size: 12.5px;
	color: var(--w-muted);
}

.ds-scope .woo-summary table.woocommerce-checkout-review-order-table dt,
.ds-scope .woo-summary table.woocommerce-checkout-review-order-table dd {
	margin: 0;
	font-weight: 400;
}

.ds-scope .woo-summary table.woocommerce-checkout-review-order-table .order-total {
	border-top: 1px solid var(--w-line);
}

.ds-scope .woo-summary table.woocommerce-checkout-review-order-table .order-total td {
	font-size: 18px;
	font-weight: 700;
}

/* Payment (COD) block */
.ds-scope #payment {
	background: none;
	border-radius: 0;
}

.ds-scope #payment ul.payment_methods {
	margin: 18px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--w-line);
	list-style: none;
}

.ds-scope #payment ul.payment_methods li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 8px;
	font-size: 14px;
}

.ds-scope #payment ul.payment_methods li input[type="radio"] {
	accent-color: var(--w-glacier);
	margin-top: 3px;
}

.ds-scope #payment ul.payment_methods li .payment_box {
	width: 100%;
	margin-top: 8px;
	padding: 12px 14px;
	border-radius: 3px;
	background: color-mix(in srgb, var(--w-bg) 60%, var(--w-card));
	font-size: 13px;
	color: var(--w-muted);
}

.ds-scope #payment div.place-order {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--w-line);
}

.ds-scope #payment #place_order {
	width: 100%;
	height: 52px;
	border: 0;
	border-radius: 3px;
	background: var(--w-glacier);
	color: var(--w-card);
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.2s ease;
}

.ds-scope #payment #place_order:hover {
	opacity: 0.92;
}

.ds-scope #payment #place_order:active {
	transform: scale(0.99);
}

/*
 * Условия и политика — после кнопки (порядок задаёт ds_checkout_terms_after_button).
 */
.ds-scope #payment .woocommerce-terms-and-conditions-wrapper {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--w-line);
}

.ds-scope #payment .woocommerce-privacy-policy-text p {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--w-muted);
}

.ds-scope #payment .woocommerce-privacy-policy-text a {
	color: var(--ds-accent-fg);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ds-scope #payment .woocommerce-privacy-policy-text a:hover {
	text-decoration: none;
}

.ds-scope #payment .woocommerce-terms-and-conditions-wrapper p.form-row {
	margin: 14px 0 0;
	padding: 0;
	border: 0;
}

.ds-scope #payment .woocommerce-terms-and-conditions-wrapper label.checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--w-fg);
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
}

.ds-scope #payment .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
	flex: 0 0 auto;
	margin-top: 2px;
	accent-color: var(--w-glacier);
	width: 16px;
	height: 16px;
}

.ds-scope #payment .woocommerce-terms-and-conditions-wrapper .woocommerce-terms-and-conditions-link {
	color: var(--ds-accent-fg);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ds-scope #payment .woocommerce-terms-and-conditions-wrapper abbr.required {
	color: var(--w-pulse);
	text-decoration: none;
	border: 0;
}

/* ==========================================================================
   Информация под итогом на checkout
   ========================================================================== */

.ds-scope .woo-aside {
	margin-top: 28px;
}

/*
 * В левой карточке блоки стоят ниже полей, поэтому отступ от предыдущего
 * раздела задаём явно — первый блок не должен дублировать margin-top.
 */
.ds-scope .woo-checkout__contact > .woo-aside {
	padding-top: 24px;
	border-top: 1px solid var(--w-line);
}

.ds-scope .woo-aside__block {
	padding-top: 22px;
	border-top: 1px solid var(--w-line);
}

.ds-scope .woo-checkout__contact > .woo-aside > .woo-aside__block:first-child {
	padding-top: 0;
	border-top: 0;
}

.ds-scope .woo-aside__block + .woo-aside__block {
	margin-top: 22px;
}

.ds-scope .woo-aside__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-family: var(--ds-font-display);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--w-fg);
}

.ds-scope .woo-aside__title svg {
	flex: 0 0 auto;
	color: var(--w-glacier);
}

/* Шаги «что будет дальше» */
.ds-scope .woo-aside__steps {
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.ds-scope .woo-aside__step {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--w-muted);
}

.ds-scope .woo-aside__step + .woo-aside__step {
	margin-top: 12px;
}

.ds-scope .woo-aside__num {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border: 1px solid color-mix(in srgb, var(--w-glacier) 45%, transparent);
	border-radius: 50%;
	background: color-mix(in srgb, var(--w-glacier) 12%, transparent);
	color: var(--w-glacier);
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1;
}

.ds-scope .woo-aside__step-text {
	min-width: 0;
}

/* Контакты менеджера */
.ds-scope .woo-aside__contacts {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ds-scope .woo-aside__contacts li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--w-fg);
}

.ds-scope .woo-aside__contacts svg {
	flex: 0 0 auto;
	color: var(--w-glacier);
}

.ds-scope .woo-aside__contacts a {
	color: var(--w-fg);
	text-decoration: none;
	transition: color 0.25s ease;
}

.ds-scope .woo-aside__contacts a:hover {
	color: var(--w-glacier);
}

/* Условия */
.ds-scope .woo-aside__list {
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.ds-scope .woo-aside__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--w-muted);
}

.ds-scope .woo-aside__list li + li {
	margin-top: 10px;
}

.ds-scope .woo-aside__list svg {
	flex: 0 0 auto;
	margin-top: 1px;
	color: var(--w-glacier);
}

@media (max-width: 639px) {
	.ds-scope .woo-aside__title {
		font-size: 12.5px;
	}
}

/* ==========================================================================
   Thank-you
   ========================================================================== */

.ds-scope .woo-thanks {
	position: relative;
	overflow: hidden;
	background: var(--w-abyss);
	min-height: 60vh;
	display: flex;
}

.ds-scope .woo-thanks__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.1);
	opacity: 0.3;
}

.ds-scope .woo-thanks__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(4, 18, 28, 0.7), rgba(4, 18, 28, 0.9));
}

.ds-scope .woo-thanks__inner {
	position: relative;
	margin: auto;
	max-width: 760px;
	width: 100%;
	padding: 80px 20px 72px;
	text-align: center;
	color: #fff;
}

.ds-scope .woo-thanks__badge {
	display: grid;
	place-items: center;
	width: 80px;
	height: 80px;
	margin: 0 auto;
	border: 2px solid var(--w-glacier);
	border-radius: 50%;
	background: color-mix(in srgb, var(--w-glacier) 15%, transparent);
	color: var(--w-glacier);
}

.ds-scope .woo-thanks__badge svg {
	width: 36px;
	height: 36px;
}

.ds-scope .woo-thanks__title {
	margin-top: 28px;
	font-size: clamp(28px, 5vw, 48px);
	font-weight: 600;
	line-height: 1.05;
	color: #fff;
}

.ds-scope .woo-thanks__subtitle {
	margin-top: 14px;
	font-family: 'Spectral', Georgia, serif;
	font-style: italic;
	font-size: clamp(17px, 2.6vw, 22px);
	color: rgba(255, 255, 255, 0.8);
}

.ds-scope .woo-thanks__note {
	margin-top: 10px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.65);
}

.ds-scope .woo-thanks__cards {
	margin-top: 44px;
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
	text-align: left;
}

@media (min-width: 640px) {
	.ds-scope .woo-thanks__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ds-scope .woo-thanks__card {
	padding: 22px 24px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(4px);
}

.ds-scope .woo-thanks__card-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
}

.ds-scope .woo-thanks__card-title svg {
	width: 18px;
	height: 18px;
	color: var(--w-glacier);
	flex: 0 0 auto;
}

.ds-scope .woo-thanks__card-text {
	margin-top: 10px;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.7);
}

.ds-scope .woo-thanks__card-links {
	margin-top: 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ds-scope .woo-thanks__card-links a {
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	transition: color 0.25s ease;
}

.ds-scope .woo-thanks__card-links a:hover {
	color: var(--w-glacier);
}

.ds-scope .woo-thanks__actions {
	margin-top: 44px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

.ds-scope .woo-thanks__home {
	border-color: rgba(255, 255, 255, 0.3);
	color: rgba(255, 255, 255, 0.85);
}

.ds-scope .woo-thanks__home:hover {
	border-color: var(--w-glacier);
	color: var(--w-glacier);
	background: none;
}

/* ==========================================================================
   Mini-cart flash + notices
   ========================================================================== */

@keyframes dsCartFlash {
	0% {
		color: var(--w-glacier, var(--ds-glacier));
		transform: scale(1.15);
	}
	100% {
		transform: scale(1);
	}
}

.ds-scope .ds-cart-flash {
	animation: dsCartFlash 1s ease;
}

.ds-scope .woocommerce-notices-wrapper .woocommerce-message,
.ds-scope .woocommerce-notices-wrapper .woocommerce-error,
.ds-scope .woocommerce-notices-wrapper .woocommerce-info {
	list-style: none;
	margin: 0 0 20px;
	padding: 14px 18px;
	border-radius: 3px;
	border-left: 3px solid var(--w-glacier);
	background: var(--w-card);
	border-top: 1px solid var(--w-line);
	border-right: 1px solid var(--w-line);
	border-bottom: 1px solid var(--w-line);
	font-size: 14px;
	color: var(--w-fg);
}

.ds-scope .woocommerce-notices-wrapper .woocommerce-error {
	border-left-color: var(--w-pulse);
}

.ds-scope .woocommerce-notices-wrapper .woocommerce-info {
	border-left-color: var(--w-deep);
}

@media (prefers-reduced-motion: reduce) {
	.ds-scope .woo-card,
	.ds-scope .ds-shop-card__media img,
	.ds-scope .woo-program__panel,
	.ds-scope .woo-program__chevron,
	.ds-scope .ds-cart-flash {
		animation: none;
		transition: none;
	}
}

/* ==========================================================================
   Боковая мини-корзина (drawer справа)
   ========================================================================== */
.ds-mini-cart {
	position: fixed;
	inset: 0;
	z-index: 200;
	pointer-events: none;
}

.ds-mini-cart__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 18, 28, .72);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity .3s ease;
}

.ds-mini-cart__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(420px, calc(100vw - 24px));
	display: flex;
	flex-direction: column;
	background: var(--ds-card);
	border-left: 1px solid var(--ds-line);
	box-shadow: var(--ds-shadow);
	transform: translateX(105%);
	transition: transform .35s var(--ds-ease, ease), visibility 0s linear .35s;
	visibility: hidden;
}

.ds-mini-cart.is-open {
	pointer-events: auto;
}

.ds-mini-cart.is-open .ds-mini-cart__backdrop {
	opacity: 1;
}

.ds-mini-cart.is-open .ds-mini-cart__panel {
	transform: none;
	visibility: visible;
	transition: transform .35s var(--ds-ease, ease);
}

body.ds-mini-cart-open {
	overflow: hidden;
}

.ds-mini-cart__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	border-bottom: 1px solid var(--ds-line);
}

.ds-mini-cart__label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ds-fg-muted);
}

.ds-mini-cart__title {
	margin: 4px 0 0;
	font-family: var(--ds-font-display, 'Unbounded', 'Manrope', system-ui, sans-serif);
	font-size: 19px;
	font-weight: 600;
	color: var(--ds-fg);
}

.ds-mini-cart__close {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--ds-muted);
	color: var(--ds-fg-muted);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background .25s ease, color .25s ease;
}

.ds-mini-cart__close:hover {
	background: var(--ds-glacier);
	color: var(--ds-glacier-fg);
}

.ds-mini-cart__content {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	transition: opacity .2s ease;
}

/* Пустая корзина */
.ds-mini-cart__empty {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 32px 24px;
	text-align: center;
}

.ds-mini-cart__empty-icon {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin-bottom: 10px;
	border: 1px solid var(--ds-line);
	border-radius: 999px;
	color: var(--ds-fg-muted);
}

.ds-mini-cart__empty-icon svg {
	width: 30px;
	height: 30px;
}

.ds-mini-cart__empty-title {
	margin: 0;
	font-family: var(--ds-font-display, 'Unbounded', 'Manrope', system-ui, sans-serif);
	font-size: 15px;
	font-weight: 600;
	color: var(--ds-fg);
}

.ds-mini-cart__empty-text {
	margin: 0 0 18px;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--ds-fg-muted);
}

/* Позиции */
.ds-mini-cart__items {
	margin: 0;
	padding: 8px 24px;
	list-style: none;
}

.ds-mini-cart__item {
	display: flex;
	gap: 14px;
	padding: 16px 0;
}

.ds-mini-cart__item + .ds-mini-cart__item {
	border-top: 1px solid var(--ds-line);
}

.ds-mini-cart__thumb {
	flex: 0 0 84px;
	align-self: flex-start;
	aspect-ratio: 4 / 3;
	border: 1px solid var(--ds-line);
	border-radius: 4px;
	overflow: hidden;
}

.ds-mini-cart__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ds-mini-cart__info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.ds-mini-cart__name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ds-fg);
	text-decoration: none;
}

.ds-mini-cart__name:hover {
	color: var(--ds-glacier);
}

.ds-mini-cart__date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 600;
	/* Смесь glacier с fg: в светлой теме темнее (контраст ≥ 4.5 на card),
	   в тёмной — светлее. */
	color: color-mix(in srgb, var(--ds-glacier) 65%, var(--ds-fg));
	font-variant-numeric: tabular-nums;
}

.ds-mini-cart__date svg {
	width: 13px;
	height: 13px;
	flex: 0 0 auto;
}

.ds-mini-cart__row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 10px;
}

.ds-mini-cart__qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--ds-line);
	border-radius: 999px;
	overflow: hidden;
}

.ds-mini-cart__qty button {
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ds-fg);
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.ds-mini-cart__qty button:hover:not([disabled]) {
	background: var(--ds-muted);
	color: var(--ds-glacier);
}

.ds-mini-cart__qty button[disabled] {
	opacity: .35;
	cursor: default;
}

.ds-mini-cart__qty-value {
	min-width: 26px;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	color: var(--ds-fg);
	font-variant-numeric: tabular-nums;
}

.ds-mini-cart__price {
	margin-left: auto;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ds-fg);
	font-variant-numeric: tabular-nums;
}

.ds-mini-cart__remove {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: none;
	color: var(--ds-fg-muted);
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.ds-mini-cart__remove:hover {
	background: color-mix(in srgb, var(--ds-destructive) 12%, transparent);
	color: var(--ds-destructive);
}

/* Подвал: итого + кнопки */
.ds-mini-cart__foot {
	padding: 16px 24px 20px;
	border-top: 1px solid var(--ds-line);
	background: color-mix(in srgb, var(--ds-bg) 55%, var(--ds-card));
}

.ds-mini-cart__subtotal {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.ds-mini-cart__subtotal span {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ds-fg-muted);
}

.ds-mini-cart__subtotal strong {
	font-size: 19px;
	font-weight: 700;
	color: var(--ds-fg);
	font-variant-numeric: tabular-nums;
}

.ds-mini-cart__actions {
	display: grid;
	gap: 10px;
	margin-top: 14px;
}

.ds-mini-cart__actions .ds-btn {
	width: 100%;
	justify-content: center;
}

.ds-mini-cart__hint {
	margin: 10px 0 0;
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--ds-fg-muted);
	text-align: center;
}

@media (max-width: 480px) {
	.ds-mini-cart__panel {
		width: calc(100vw - 16px);
	}

	.ds-mini-cart__head,
	.ds-mini-cart__foot {
		padding-left: 16px;
		padding-right: 16px;
	}

	.ds-mini-cart__items {
		padding-left: 16px;
		padding-right: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ds-mini-cart__backdrop,
	.ds-mini-cart__panel {
		transition: none;
	}
}

/* Мобильная адаптация: flex/grid-элементы не должны распираться контентом */
.ds-scope .woo-info-grid > *,
.ds-scope .woo-shop-grid > *,
.ds-scope .woo-cart-item,
.ds-scope .woo-book__form > * {
	min-width: 0;
}

/* ==========================================================================
   Поповер-календарь .woo-date-pop (нативный дропдаун Chrome не стилизуется)
   ========================================================================== */

/* Поповер живёт в body, вне .ds-scope — алиасы --w-* нужны на нём самом. */
.woo-date-pop {
	--w-bg: var(--ds-bg, #f2f5f7);
	--w-fg: var(--ds-fg, #0c1c26);
	--w-abyss: var(--ds-abyss, #07141d);
	--w-glacier: var(--ds-glacier, #0b4a70);
	--w-glacier-fg: var(--ds-glacier-fg, #f2f8fb);
	--w-pulse: var(--ds-pulse, #e0574a);
	--w-card: var(--ds-card, #ffffff);
	--w-muted: var(--ds-fg-muted, #5c707c);
	--w-line: var(--ds-line, #dfe7ea);

	position: absolute;
	z-index: 9999;
	width: 296px;
	padding: 14px;
	background: var(--w-card);
	border: 1px solid var(--w-line);
	border-radius: 4px;
	box-shadow: 0 16px 40px color-mix(in srgb, var(--w-abyss) 24%, transparent);
	color: var(--w-fg);
}

/* Тач-устройства берут нативный пикер ОС — иконку прячем только на десктопе. */
@media (pointer: fine) {
	.woo-date-input::-webkit-calendar-picker-indicator {
		display: none;
	}
}

.woo-date-pop__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.woo-date-pop__title {
	flex: 1;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: var(--w-fg);
}

.woo-date-pop__nav {
	width: 32px;
	height: 32px;
	border: 1px solid var(--w-line);
	border-radius: 3px;
	background: transparent;
	color: var(--w-muted);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.woo-date-pop__nav:hover {
	border-color: var(--w-glacier);
	color: var(--w-glacier);
}

.woo-date-pop__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.woo-date-pop__wd {
	padding: 4px 0 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: center;
	color: var(--w-muted);
}

.woo-date-pop__day {
	height: 34px;
	border: 0;
	border-radius: 3px;
	background: transparent;
	font: inherit;
	font-size: 13.5px;
	color: var(--w-fg);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.woo-date-pop__day:hover:not(:disabled) {
	background: color-mix(in srgb, var(--w-glacier) 12%, transparent);
}

.woo-date-pop__day:disabled {
	color: color-mix(in srgb, var(--w-muted) 40%, transparent);
	cursor: default;
}

.woo-date-pop__day.is-today {
	box-shadow: inset 0 0 0 1px var(--w-glacier);
}

.woo-date-pop__day.is-selected {
	background: var(--w-glacier);
	color: var(--w-glacier-fg);
	font-weight: 600;
}

.woo-date-pop__foot {
	display: flex;
	justify-content: flex-end;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--w-line);
}

.woo-date-pop__today {
	border: 0;
	padding: 6px 10px;
	border-radius: 3px;
	background: transparent;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--w-glacier);
	cursor: pointer;
	transition: background 0.15s ease;
}

.woo-date-pop__today:hover:not(:disabled) {
	background: color-mix(in srgb, var(--w-glacier) 12%, transparent);
}

.woo-date-pop__today:disabled {
	color: var(--w-muted);
	opacity: 0.6;
	cursor: default;
}

.woo-date-pop__day:focus-visible,
.woo-date-pop__nav:focus-visible,
.woo-date-pop__today:focus-visible {
	outline: 2px solid var(--w-glacier);
	outline-offset: -2px;
}
