/* Cookie banner (inc/consent.php): a Track Black panel with the Volt Yellow rule, bottom left on
   desktop (clear of Ask Taylor, bottom right), across the bottom on phones. Square, like every
   component; "Accept all" and "Reject all" are the same size. */
.tp-consent {
	position: fixed; left: 24px; bottom: 24px; z-index: 950;
	width: min(480px, calc(100vw - 48px)); max-height: calc(100vh - 48px); overflow-y: auto;
	padding: 28px 28px 24px; background: var(--tp-black); color: var(--tp-white);
	border-top: 6px solid var(--tp-yellow); box-shadow: 0 0 24px rgba(10, 10, 10, .35);
	font-size: 1rem; line-height: 1.5;
}
.tp-consent[hidden] { display: none; }
.tp-consent:focus { outline: none; }
.tp-consent:focus-visible { outline: 3px solid var(--tp-focus); outline-offset: 3px; }
.tp-consent__eyebrow { margin: 0 0 6px; font-family: var(--tp-mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; }
.tp-consent__title { margin: 0 0 12px; font-family: var(--tp-display); font-size: 2.25rem; font-weight: 400; line-height: 1; color: var(--tp-yellow); }
.tp-consent__intro p { margin: 0; }
.tp-consent a { color: var(--tp-white); text-decoration: underline; }
.tp-consent a:hover, .tp-consent a:focus-visible { color: var(--tp-yellow); }

.tp-consent__choices { display: grid; gap: 14px; margin: 18px 0 0; }
.tp-consent__choices[hidden] { display: none; }
.tp-consent__opt { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: .9375rem; }
.tp-consent__opt strong { display: block; font-weight: 600; }
.tp-consent__opt input {
	appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 2px 0 0;
	border: 2px solid var(--tp-white); background: transparent; cursor: pointer; display: grid; place-content: center;
}
.tp-consent__opt input::after { content: ''; width: 12px; height: 12px; background: var(--tp-yellow); transform: scale(0); }
.tp-consent__opt input:checked { border-color: var(--tp-yellow); }
.tp-consent__opt input:checked::after { transform: scale(1); }
.tp-consent__opt input:disabled { opacity: .55; cursor: default; }
.tp-consent__opt input:focus-visible { outline: 3px solid var(--tp-focus); outline-offset: 2px; }

.tp-consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.tp-consent__actions .tp-btn { flex: 1 1 150px; font-size: 1.25rem; }
.tp-consent__actions .tp-btn[hidden], .tp-consent__actions .tp-link[hidden] { display: none; }
/* On black: the primary's hover keeps a yellow outline and label; the secondary's label is yellow. */
.tp-consent .tp-btn--primary:hover, .tp-consent .tp-btn--primary:focus-visible { background: transparent; color: var(--tp-yellow); border-color: var(--tp-yellow); }
.tp-consent .tp-btn--secondary { color: var(--tp-yellow); }
.tp-consent .tp-btn--secondary:hover, .tp-consent .tp-btn--secondary:focus-visible { background: var(--tp-yellow); color: var(--tp-black); }
.tp-consent .tp-link { color: var(--tp-white); background: none; border: 0; padding: 0; cursor: pointer; font-size: 1.25rem; }
.tp-consent .tp-link:hover, .tp-consent .tp-link:focus-visible { color: var(--tp-yellow); }

/* Footer "Cookie settings" sits with the copyright line and looks like the footer's links. */
.tp-footer__cookies { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.tp-footer__cookies:hover, .tp-footer__cookies:focus-visible { color: var(--tp-yellow); }

@media (max-width: 600px) {
	.tp-consent { left: 0; right: 0; bottom: 0; width: auto; max-height: 85vh; padding: 22px 16px 18px; }
	.tp-consent__title { font-size: 2rem; }
}
