/* Tenio cookie consent banner + dialog. */
.tn-consent { position: fixed; z-index: 100; left: 1rem; right: 1rem; bottom: 1rem; display: flex; justify-content: center; pointer-events: none; }
.tn-consent[hidden] { display: none; }
.tn-consent__box {
	pointer-events: auto; width: min(100%, 44rem);
	background: #fff; border: 1px solid var(--tn-line-2, rgba(42, 27, 61, .14)); border-radius: 1.25rem;
	box-shadow: 0 24px 48px -12px rgba(42, 27, 61, .18), 0 8px 16px -4px rgba(42, 27, 61, .05);
	padding: 1.25rem 1.5rem;
}
.tn-consent__title { margin: 0 0 .35rem; font-size: 1rem; font-weight: 700; color: var(--wp--preset--color--plum); }
.tn-consent__text { margin: 0; font-size: 14px; line-height: 1.55; }
.tn-consent__text a { color: var(--wp--preset--color--brick); }
.tn-consent__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }
.tn-consent__btn {
	font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
	padding: .65rem 1.1rem; border-radius: .75rem; border: 1px solid transparent;
	background: var(--wp--preset--color--coral); color: #fff;
	transition: background-color .2s, border-color .2s;
}
.tn-consent__btn:hover { background: var(--wp--preset--color--coral-dark); }
.tn-consent__btn--secondary { background: #fff; color: var(--wp--preset--color--plum); border-color: rgba(42, 27, 61, .14); }
.tn-consent__btn--secondary:hover { background: var(--wp--preset--color--cream); border-color: rgba(42, 27, 61, .24); }
.tn-consent__btn--ghost { background: transparent; color: var(--wp--preset--color--plum); margin-right: auto; padding-inline: .5rem; text-decoration: underline; text-underline-offset: 3px; }
.tn-consent__btn--ghost:hover { background: rgba(42, 27, 61, .04); }
@media (max-width: 599px) {
	.tn-consent { left: .5rem; right: .5rem; bottom: .5rem; }
	.tn-consent__actions { justify-content: stretch; }
	.tn-consent__btn { flex: 1 1 auto; }
	.tn-consent__btn--ghost { flex-basis: 100%; order: 3; margin: 0; }
}

.tn-consent-dialog {
	width: min(calc(100% - 2rem), 32rem); padding: 0; border: 0; border-radius: 1.25rem;
	box-shadow: 0 24px 48px -12px rgba(42, 27, 61, .25);
	color: var(--wp--preset--color--ink);
}
.tn-consent-dialog::backdrop { background: rgba(42, 27, 61, .35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tn-consent-dialog__form { padding: 1.5rem; }
.tn-consent-opt { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid rgba(42, 27, 61, .08); cursor: pointer; }
.tn-consent-opt b { display: block; font-size: 14px; color: var(--wp--preset--color--plum); }
.tn-consent-opt small { display: block; font-size: 13px; line-height: 1.5; color: rgba(42, 27, 61, .7); }
.tn-consent-opt input { appearance: none; flex-shrink: 0; width: 40px; height: 24px; margin-top: .1rem; border-radius: 9999px; background: rgba(42, 27, 61, .18); position: relative; cursor: pointer; transition: background-color .2s; }
.tn-consent-opt input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.tn-consent-opt input:checked { background: var(--wp--preset--color--coral); }
.tn-consent-opt input:checked::after { transform: translateX(16px); }
.tn-consent-opt input:disabled { opacity: .55; cursor: not-allowed; }
.tn-consent-opt input:focus-visible { outline: 2px solid var(--wp--preset--color--coral); outline-offset: 2px; }
