/* Bannerul de cookie-uri: card negru în colțul din stânga jos, cu accentul roșu AZTools;
   pe telefon, foaie lipită de marginea de jos. „Accept” și „Doar necesare” au aceeași mărime. */
.zbang-consent {
	--zc-red: var(--wp--preset--color--red, #e30613);
	--zc-black: var(--wp--preset--color--black, #171717);
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 70; /* peste antetul fix, bara de cumpărare și flyout-ul categoriilor */
	box-sizing: border-box;
	width: min(420px, calc(100vw - 48px));
	max-height: calc(100dvh - 48px);
	overflow-y: auto;
	padding: 22px 22px 20px;
	border-top: 4px solid var(--zc-red);
	border-radius: var(--wp--custom--radius--md, 8px);
	background: var(--zc-black);
	color: #d5d9de;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
	font-size: 15px;
	line-height: 1.5;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.zbang-consent[hidden] {
	display: none;
}
.zbang-consent.is-open {
	opacity: 1;
	transform: none;
}
.zbang-consent__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}
.zbang-consent__mark {
	flex: none;
	color: var(--zc-red);
}
.zbang-consent__title {
	margin: 0;
	color: #fff;
	font-family: var(--wp--preset--font-family--display, inherit);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0;
}
.zbang-consent__title:focus {
	outline: none;
}
.zbang-consent__text {
	margin: 0 0 16px;
}
.zbang-consent__text a {
	color: #fff;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.zbang-consent__text a:hover {
	color: var(--zc-red);
}

/* Opțiunile */
.zbang-consent__prefs {
	display: grid;
	margin: 0 0 16px;
	border: 1px solid #34373c;
	border-radius: var(--wp--custom--radius--card, 6px);
}
.zbang-consent__prefs[hidden] {
	display: none;
}
.zbang-consent__opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 14px;
	cursor: pointer;
}
.zbang-consent__opt + .zbang-consent__opt {
	border-top: 1px solid #34373c;
}
.zbang-consent__opt.is-locked {
	cursor: default;
}
.zbang-consent__opt-text strong {
	display: block;
	color: #fff;
	font-size: 15px;
}
.zbang-consent__opt-text small {
	display: block;
	color: #a9afb6;
	font-size: 13px;
	line-height: 1.4;
}
.zbang-consent__on {
	flex: none;
	color: #8fd19e;
	font-size: 13px;
	font-weight: 700;
}
.zbang-consent__switch {
	flex: none;
	position: relative;
	width: 44px;
	height: 26px;
	margin: 0;
	border-radius: 13px;
	background: #4a4e54;
	cursor: pointer;
	appearance: none;
	transition: background 0.15s ease;
}
.zbang-consent__switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.15s ease;
}
.zbang-consent__switch:checked {
	background: var(--zc-red);
}
.zbang-consent__switch:checked::after {
	transform: translateX(18px);
}
.zbang-consent__switch:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Butoanele */
.zbang-consent__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.zbang-consent__btn {
	min-height: 46px;
	padding: 0 12px;
	border: 1px solid #fff;
	border-radius: var(--wp--custom--radius--card, 6px);
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}
.zbang-consent__btn[hidden],
.zbang-consent__more[hidden] {
	display: none;
}
.zbang-consent__btn.is-accept,
.zbang-consent__btn.is-save {
	border-color: var(--zc-red);
	background: var(--zc-red);
}
.zbang-consent__btn.is-accept:hover,
.zbang-consent__btn.is-save:hover {
	border-color: #c40510;
	background: #c40510;
}
/* La opțiuni, „Salvez alegerea” e butonul principal; „Accept toate” trece pe contur */
.zbang-consent__prefs:not([hidden]) ~ .zbang-consent__actions .is-accept {
	border-color: #fff;
	background: transparent;
}
.zbang-consent__prefs:not([hidden]) ~ .zbang-consent__actions .is-accept:hover,
.zbang-consent__btn.is-reject:hover {
	background: #fff;
	color: var(--zc-black);
}
.zbang-consent__btn:focus-visible,
.zbang-consent__more:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
.zbang-consent__more {
	grid-column: 1 / -1;
	justify-self: center;
	min-height: 36px;
	padding: 0 8px;
	border: 0;
	background: none;
	color: #d5d9de;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.zbang-consent__more:hover {
	color: #fff;
}

@media (max-width: 600px) {
	.zbang-consent {
		left: 0;
		bottom: 0;
		width: 100%;
		max-height: 85dvh;
		padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
		border-radius: var(--wp--custom--radius--md, 8px) var(--wp--custom--radius--md, 8px) 0 0;
	}
	.zbang-consent__title {
		font-size: 20px;
	}
	.zbang-consent__text {
		font-size: 14px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.zbang-consent {
		transition: none;
	}
}
