:root {
	/* One content anchor for the floating coupon hint and entered code.
	 * The input text compensates for its 1px border below. */
	--dazeraw-coupon-content-inset: 16px;
	--dazeraw-coupon-border-width: 1px;
}

/* Compact system page headings. */
.search-results .page-title.medium h1,
.search-no-results .page-title.medium h1,
.woocommerce-account .page-title.medium h1,
.woocommerce-cart .page-title.medium h1,
.woocommerce-checkout .page-title.medium h1 {
	font-size: clamp(44px, 7vw, 112px);
}

.woocommerce-account .site-main h2,
.woocommerce-cart .site-main h2,
.woocommerce-checkout .site-main h2,
.wc-block-components-title,
.wc-block-components-checkout-step__title {
	font-size: clamp(24px, 2.5vw, 40px);
	line-height: 1.1;
}

/* Unified WooCommerce actions in the same visual language as Checkout. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input.button,
.wc-block-components-button:not(.is-link),
.dazeraw-single-product div.product form.cart .single_add_to_cart_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 13px 22px;
	color: #fff !important;
	background-color: #343a40 !important;
	border: 1px solid #343a40 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.woocommerce a.button:hover,
.woocommerce a.button:focus-visible,
.woocommerce button.button:hover,
.woocommerce button.button:focus-visible,
.woocommerce input.button:hover,
.woocommerce input.button:focus-visible,
.woocommerce-page a.button:hover,
.woocommerce-page a.button:focus-visible,
.woocommerce-page button.button:hover,
.woocommerce-page button.button:focus-visible,
.wc-block-components-button:not(.is-link):hover,
.wc-block-components-button:not(.is-link):focus-visible,
.dazeraw-single-product div.product form.cart .single_add_to_cart_button:hover,
.dazeraw-single-product div.product form.cart .single_add_to_cart_button:focus-visible {
	color: #fff !important;
	background-color: #1f2326 !important;
	border-color: #1f2326 !important;
}

/* Keep the product action aligned with WooCommerce's quantity input. */
.dazeraw-single-product div.product form.cart .single_add_to_cart_button {
	height: 34px;
	min-height: 34px;
	padding: 5px 14px;
	box-sizing: border-box;
}

/* DAZERAW add-to-cart and WooCommerce notices. */
.woocommerce-notices-wrapper {
	margin-bottom: clamp(24px, 3vw, 44px);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	min-height: 58px;
	margin: 0 0 20px;
	padding: 18px 22px 18px 48px;
	color: #111;
	background: #e4e4e4;
	border: 1px solid #d2d2d2;
	border-top: 1px solid #d2d2d2;
	border-radius: 0;
	font-size: 13px;
	line-height: 1.4;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	top: 18px;
	left: 20px;
	color: #111;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	min-height: 38px;
	padding: 8px 14px;
	color: #fff;
	background: #343a40;
	border: 1px solid #343a40;
	border-radius: 0;
	font-size: 11px;
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
}

.woocommerce-message .button:hover,
.woocommerce-message .button:focus-visible,
.woocommerce-info .button:hover,
.woocommerce-info .button:focus-visible,
.woocommerce-error .button:hover,
.woocommerce-error .button:focus-visible {
	color: #fff !important;
	background: #1f2326 !important;
	border-color: #1f2326 !important;
}

/* The Checkout Block order-summary quantity badge. */
.wc-block-components-order-summary-item__quantity,
.wc-block-components-order-summary-item__quantity > span,
.wc-block-components-order-summary-item__quantity span[aria-hidden="true"] {
	color: #000 !important;
	-webkit-text-fill-color: #000 !important;
	text-shadow: none !important;
}

.wc-block-components-order-summary-item__quantity {
	background-color: #fff !important;
	border-color: #000 !important;
	box-shadow: 0 0 0 2px #fff !important;
}

/* A sticky Cart Block sidebar can trigger scroll anchoring when its totals
 * update close to the footer. The static layout is stable and keeps every
 * cart control accessible. */
.woocommerce-cart .wc-block-cart__sidebar {
	position: static !important;
	top: auto !important;
	align-self: stretch !important;
}

/* Single source of truth for the coupon form layout — shared identically by
 * Cart Block and Checkout Block so the two pages can never drift apart again. */
:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-coupon__form {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(180px, .55fr) !important;
	align-items: stretch !important;
	gap: 14px !important;
	padding-top: 0 !important;
}

:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-coupon__form .wc-block-components-text-input {
	position: relative !important;
	box-sizing: border-box !important;
	width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}

:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-coupon__form .wc-block-components-text-input label {
	position: absolute !important;
	top: 7px !important;
	right: auto !important;
	left: var(--dazeraw-coupon-content-inset) !important;
	z-index: 1 !important;
	margin: 0 !important;
	padding: 0 !important;
	color: rgba(255, 255, 255, .58) !important;
	background: transparent !important;
	font-size: 10px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	transform: none !important;
	transform-origin: left top !important;
	pointer-events: none !important;
}

/* Explicit, guaranteed breathing room between the "ДОБАВИТЬ КУПОНЫ" toggle
 * button and the form once it expands — previously this relied entirely on
 * WooCommerce Blocks' own default spacing, which made it fragile (e.g. it
 * visually "glued together" once the input's own height/padding drifted
 * from the intended values on Checkout). Shared identically on both pages. */
:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-coupon .wc-block-components-panel__content {
	margin-top: 16px !important;
}

/* .wc-block-components-totals-coupon is repeated several times purely to
 * push specificity past checkout.css's
 * "body.woocommerce-checkout .wc-block-checkout input:not([type=checkbox])
 * :not([type=radio]):not([type=submit]):not([type=button])" rule — each
 * :not() there counts as a class for specificity (2 real classes + 4 :not()
 * = 6), which is why the earlier single extra ancestor (3 classes) still
 * lost and the coupon input silently kept the address-field padding
 * (11px 13px) instead of its own. Repeating a real class is valid CSS and
 * costs nothing extra in the DOM — it just needs to out-count 6. */
:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon .wc-block-components-totals-coupon__form input,
:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon .wc-block-components-totals-coupon__form button {
	box-sizing: border-box !important;
	width: 100% !important;
	height: 50px !important;
	min-height: 50px !important;
	margin: 0 !important;
	border-radius: 0 !important;
}

:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon .wc-block-components-totals-coupon__form input {
	padding-top: 14px !important;
	padding-right: var(--dazeraw-coupon-content-inset) !important;
	padding-bottom: 0 !important;
	padding-left: calc(var(--dazeraw-coupon-content-inset) - var(--dazeraw-coupon-border-width)) !important;
	text-indent: 0 !important;
	line-height: normal !important;
	color: #f4f4f4 !important;
	-webkit-text-fill-color: #f4f4f4 !important;
	caret-color: #f4f4f4;
	background: #000 !important;
	border: var(--dazeraw-coupon-border-width) solid rgba(255, 255, 255, .32) !important;
	box-shadow: none !important;
}

:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon .wc-block-components-totals-coupon__form input:hover {
	border-color: rgba(255, 255, 255, .52) !important;
}

:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon .wc-block-components-totals-coupon__form input:focus {
	outline: none !important;
	border-color: rgba(255, 255, 255, .52) !important;
	box-shadow: none !important;
}

:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon .wc-block-components-totals-coupon__form input:-webkit-autofill,
:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon .wc-block-components-totals-coupon__form input:-webkit-autofill:hover,
:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon.wc-block-components-totals-coupon .wc-block-components-totals-coupon__form input:-webkit-autofill:focus {
	-webkit-text-fill-color: #f4f4f4 !important;
	-webkit-box-shadow: 0 0 0 1000px #000 inset !important;
	transition: background-color 9999s ease-out 0s;
}

:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-coupon__form button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 20px !important;
	line-height: 1 !important;
}

@media (max-width: 560px) {
	:is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-totals-coupon__form {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 10px !important;
	}
}

/* Empty cart recommendations share the SHOP card language and stay in one row. */
.dazeraw-empty-cart {
	width: 100%;
	padding: clamp(38px, 5vw, 82px) 0;
	color: #f4f4f4;
	text-align: center;
}

.dazeraw-empty-cart__title,
.dazeraw-empty-cart__subtitle {
	margin: 0;
	color: #f4f4f4;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
}

.dazeraw-empty-cart__title {
	font-size: clamp(24px, 3vw, 48px);
}

.dazeraw-empty-cart__subtitle {
	margin-top: clamp(38px, 5vw, 76px);
	font-size: clamp(20px, 2.4vw, 38px);
}

.dazeraw-empty-cart__products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(8px, .8vw, 14px);
	width: 100%;
	margin: clamp(24px, 3vw, 46px) 0 0 !important;
	padding: 0 !important;
	list-style: none;
	text-align: left;
}

.dazeraw-empty-cart__products::before,
.dazeraw-empty-cart__products::after {
	display: none !important;
}

.dazeraw-empty-cart__products li.product {
	float: none !important;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
}

.dazeraw-empty-cart__product > a {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: #f4f4f4;
	text-decoration: none;
}

.dazeraw-empty-cart .dazeraw-product-image-swap {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: rgba(255, 255, 255, .06);
}

.dazeraw-empty-cart .dazeraw-product-image-swap img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0 !important;
	object-fit: cover;
}

.dazeraw-empty-cart .dazeraw-product-image-secondary {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .4s ease;
}

@media (hover: hover) and (pointer: fine) {
	.dazeraw-empty-cart .dazeraw-product-image-swap.has-secondary:hover .dazeraw-product-image-secondary,
	.dazeraw-empty-cart__product a:focus-visible .dazeraw-product-image-swap.has-secondary .dazeraw-product-image-secondary {
		opacity: 1;
	}
}

.dazeraw-empty-cart .dazeraw-product-attributes,
.dazeraw-empty-cart .woocommerce-loop-product__title,
.dazeraw-empty-cart .price {
	display: block;
	margin: 0;
	padding: 0;
	color: inherit;
	font: inherit;
	font-size: 12px;
	line-height: 1.25;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.dazeraw-empty-cart .dazeraw-product-attributes {
	margin-top: 8px;
	opacity: .75;
}

.dazeraw-empty-cart .woocommerce-loop-product__title,
.dazeraw-empty-cart .price {
	margin-top: 4px;
}

.dazeraw-empty-cart .price del,
.dazeraw-empty-cart .price ins {
	color: inherit;
}

.woocommerce .dazeraw-empty-cart__shop-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	min-height: 38px;
	margin-top: 14px;
	padding: 9px 16px;
	color: #fff !important;
	background: #343a40 !important;
	border: 1px solid #343a40 !important;
	border-radius: 0 !important;
	font-size: 11px;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .2s ease, border-color .2s ease;
}

.woocommerce .dazeraw-empty-cart__shop-link:hover,
.woocommerce .dazeraw-empty-cart__shop-link:focus-visible {
	background: #1f2326 !important;
	border-color: #1f2326 !important;
}

@media (max-width: 1024px) {
	.dazeraw-empty-cart__products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 8px;
	}
}

@media (max-width: 560px) {
	.dazeraw-empty-cart {
		padding-top: 24px;
	}

	.dazeraw-empty-cart__products {
		grid-template-columns: 1fr;
		row-gap: 22px;
	}
}

/* Compact cart and checkout titles; keep long mobile titles on one line. */
body.woocommerce-cart .page-title.medium h1,
body.woocommerce-checkout .page-title.medium h1 {
	font-size: clamp(40px, 4.8vw, 72px) !important;
	line-height: .94 !important;
}

@media (max-width: 767px) {
	body.woocommerce-cart .page-title.medium h1,
	body.woocommerce-checkout .page-title.medium h1 {
		font-size: clamp(27px, 7.5vw, 36px) !important;
		line-height: 1 !important;
		letter-spacing: -.02em !important;
		white-space: nowrap !important;
	}

	.search-results .page-title.medium h1,
	.search-no-results .page-title.medium h1,
	.woocommerce-account .page-title.medium h1,
	.woocommerce-cart .page-title.medium h1,
	.woocommerce-checkout .page-title.medium h1 {
		font-size: clamp(36px, 12vw, 62px);
	}

	.woocommerce-message,
	.woocommerce-info,
	.woocommerce-error {
		padding: 16px 16px 16px 42px;
	}

	.woocommerce-message .button,
	.woocommerce-info .button,
	.woocommerce-error .button {
		float: none;
		display: table;
		margin: 10px 0 0;
	}
}
