/* ==========================================================================
   Cookie banner in the site's look (design: Homepage, "Cookie consent").
   Registered as "zadravec-tech-consent", never enqueued by the theme. The
   plugin's analytics module (ZT_Analytics) enqueues it; any other consent
   tool that allows custom markup can do the same and use:

   <div class="zt-consent" role="dialog" aria-label="Cookie consent">
     <p class="zt-consent__title">Cookies</p>
     <p class="zt-consent__text">… <a href="/privacy-policy/">Privacy policy</a></p>
     <fieldset class="zt-consent__options">            (optional, per category)
       <p class="zt-consent__option">
         <input type="checkbox" id="…"> <label for="…">Analytics</label>
         <span class="zt-consent__hint">…</span>
       </p>
     </fieldset>
     <div class="zt-consent__actions">
       <button class="zt-consent__button is-primary">Accept all</button>
       <button class="zt-consent__button">Essential only</button>
       <button class="zt-consent__button is-link">Settings</button>
     </div>
   </div>
   ========================================================================== */

.zt-consent[hidden],
.zt-consent [hidden] {
	display: none;
}

.zt-consent {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 60;
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 460px;
	padding: 24px;
	border: 1px solid rgba(154, 251, 251, 0.35);
	background: var(--wp--preset--color--navy-800);
	box-shadow: var(--wp--custom--shadow--float);
}

.zt-consent__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	color: var(--wp--preset--color--teal);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

.zt-consent__title::before {
	content: "";
	width: 24px;
	height: 1px;
	background: currentColor;
}

.zt-consent__text {
	margin: 0;
	color: var(--wp--custom--color--text);
	font-size: 14px;
	line-height: 1.55;
}

/* Settings: one checkbox row per category */
.zt-consent__options {
	display: grid;
	gap: 14px;
	min-width: 0;
	margin: 0;
	padding: 16px 0 0;
	border: 0;
	border-top: 1px solid var(--wp--custom--color--line);
}

.zt-consent__option {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 2px 12px;
	align-items: start;
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.zt-consent__option input[type="checkbox"] {
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--wp--preset--color--mint);
}

.zt-consent__option label {
	color: var(--wp--custom--color--text);
	font-weight: 600;
}

.zt-consent__hint {
	grid-column: 2;
	color: var(--wp--custom--color--muted);
	font-size: 13px;
}

.zt-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.zt-consent__button {
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid var(--wp--custom--color--line-strong);
	background: transparent;
	color: var(--wp--custom--color--text);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.zt-consent__button.is-primary {
	border: 0;
	background: var(--wp--preset--gradient--monogram);
	color: var(--wp--preset--color--navy-900);
	font-weight: 700;
}

.zt-consent__button.is-link {
	padding: 0 12px;
	border: 0;
	color: var(--wp--preset--color--mint);
	text-decoration: underline;
	text-underline-offset: 3px;
}
