/* Cookie banner (two choices) and its collapsed form: a pill on desktop, a round bubble on phones. */
.thh-consent {
	position: fixed; left: clamp(.75rem, 2vw, 1.5rem); bottom: clamp(.75rem, 2vw, 1.5rem); z-index: 70;
	width: min(27rem, calc(100vw - 1.5rem)); padding: 1.15rem 1.25rem 1.25rem; border-radius: 16px;
	background: #fff; color: var(--wp--preset--color--ink-900, #1c2a22); border: 1px solid rgb(14 42 30 / 14%);
	box-shadow: 0 24px 48px -20px rgb(14 42 30 / 45%);
	font-family: var(--wp--preset--font-family--sans, system-ui, sans-serif); font-size: .9375rem; line-height: 1.5;
	animation: thh-consent-in .35s cubic-bezier(.2, .7, .2, 1);
}
.thh-consent[hidden], .thh-consent-mini[hidden] { display: none; }
.thh-consent__title { margin: 0 0 .35rem; font-weight: 700; font-size: 1rem; color: var(--wp--preset--color--forest-900, #133a2a); }
.thh-consent__text { margin: 0 0 1rem; color: var(--wp--preset--color--ink-600, #4a5850); text-wrap: pretty; }
.thh-consent__text a { color: var(--wp--preset--color--forest-800, #1b4c37); text-decoration: underline; text-underline-offset: 2px; }
.thh-consent__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.thh-consent__actions .thh-btn { flex: 1 1 9rem; justify-content: center; min-height: 44px; }

.thh-consent-mini {
	position: fixed; left: clamp(.75rem, 2vw, 1.5rem); bottom: clamp(.75rem, 2vw, 1.5rem); z-index: 69;
	display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem 0 .8rem;
	border: 1px solid rgb(14 42 30 / 16%); border-radius: 999px; background: #fff; color: var(--wp--preset--color--forest-900, #133a2a);
	font: 600 .875rem/1 var(--wp--preset--font-family--sans, system-ui, sans-serif); cursor: pointer;
	box-shadow: 0 10px 24px -14px rgb(14 42 30 / 55%); animation: thh-consent-in .35s cubic-bezier(.2, .7, .2, 1);
	transition: transform .2s, box-shadow .2s;
}
.thh-consent-mini:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgb(14 42 30 / 60%); }
.thh-consent-mini:focus-visible, .thh-consent :is(a, button):focus-visible { outline: 3px solid var(--wp--preset--color--brand-400, #19b57a); outline-offset: 3px; }
@media (max-width: 599px) {
	.thh-consent { left: .5rem; right: .5rem; bottom: .5rem; width: auto; }
	.thh-consent-mini { left: .6rem; bottom: .9rem; width: 44px; padding: 0; justify-content: center; opacity: .92; }
	.thh-consent-mini__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* icon only; the button keeps its aria-label */
}
@keyframes thh-consent-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .thh-consent, .thh-consent-mini { animation: none; } }
.thh-link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.thh-link-button:hover { text-decoration-thickness: 2px; }

/* Compact banner: one short line and two buttons; the close button collapses it to the bubble. */
.thh-consent { width: min(23rem, calc(100vw - 1.5rem)); padding: .9rem 2.6rem .95rem 1rem; border-radius: 14px; font-size: .875rem; line-height: 1.45; }
.thh-consent__text { margin: 0 0 .75rem; }
.thh-consent__close { position: absolute; top: .45rem; right: .45rem; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--wp--preset--color--ink-600, #4a5850); cursor: pointer; }
.thh-consent__close:hover { background: var(--wp--preset--color--mint-100, #e3f4ec); color: var(--wp--preset--color--forest-900, #133a2a); }
.thh-consent__actions { flex-wrap: nowrap; gap: .5rem; }
.thh-consent__actions .thh-btn { flex: 1 1 0; min-height: 40px; padding: .5rem .75rem; font-size: .8125rem; white-space: nowrap; }
@media (max-width: 599px) { .thh-consent { left: .5rem; right: .5rem; bottom: .5rem; width: auto; padding: .8rem 2.6rem .8rem .9rem; } }
