/*
 * Baseline styles for the consent banner. Low specificity (:where) and CSS variables so the
 * active theme can restyle everything; these defaults keep it usable with any theme.
 */
:where(.iyd-consent) {
	position: fixed;
	z-index: 9990;
	inset: auto 1rem 1rem 1rem;
	max-width: 44rem;
	margin-inline: auto;
	padding: 1.25rem 1.5rem;
	border-radius: var(--iyd-consent-radius, 18px);
	background: var(--iyd-consent-bg, #2d1818);
	color: var(--iyd-consent-fg, #fff1e3);
	box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .45);
	font: inherit;
}
:where(.iyd-consent[hidden]) { display: none; }
:where(.iyd-consent__title) { margin: 0 0 .35rem; font-size: 1.05rem; }
:where(.iyd-consent__text) { margin: 0 0 1rem; font-size: .9375rem; line-height: 1.55; }
:where(.iyd-consent__text a) { color: inherit; }
:where(.iyd-consent__actions, .iyd-consent-dialog__actions) { display: flex; flex-wrap: wrap; gap: .5rem; }
:where(.iyd-consent .iyd-btn, .iyd-consent-dialog .iyd-btn) {
	flex: 1 1 auto;
	min-height: 44px;
	padding: .6rem 1rem;
	border-radius: 999px;
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
:where(.iyd-consent-dialog) {
	width: min(36rem, calc(100vw - 2rem));
	padding: 1.5rem;
	border: 0;
	border-radius: var(--iyd-consent-radius, 18px);
	background: var(--iyd-consent-dialog-bg, #fff8f1);
	color: var(--iyd-consent-dialog-fg, #2d1818);
}
:where(.iyd-consent-dialog)::backdrop { background: rgba(20, 10, 8, .55); }
:where(.iyd-consent-dialog__head) { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
:where(.iyd-consent-dialog__head h2) { margin: 0; font-size: 1.25rem; }
:where(.iyd-consent-dialog__close) { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; }
:where(.iyd-consent-dialog__list) { list-style: none; margin: 1rem 0; padding: 0; }
:where(.iyd-consent-dialog__list li) { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .9rem 0; border-top: 1px solid rgba(45, 24, 24, .12); }
:where(.iyd-consent-dialog__list h3) { margin: 0 0 .2rem; font-size: 1rem; }
:where(.iyd-consent-dialog__list p) { margin: 0; font-size: .875rem; opacity: .85; }
:where(.iyd-switch) { position: relative; display: inline-flex; flex: none; }
:where(.iyd-switch input) { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
:where(.iyd-switch__track) { width: 46px; height: 26px; border-radius: 999px; background: rgba(45, 24, 24, .25); position: relative; transition: background-color .2s ease; }
:where(.iyd-switch__track)::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s cubic-bezier(.23, 1, .32, 1); }
:where(.iyd-switch input:checked + .iyd-switch__track) { background: #956c3d; }
:where(.iyd-switch input:checked + .iyd-switch__track)::after { transform: translateX(20px); }
:where(.iyd-switch input:disabled + .iyd-switch__track) { opacity: .6; }
:where(.iyd-switch input:focus-visible + .iyd-switch__track) { outline: 2px solid #956c3d; outline-offset: 2px; }
