.rp10-consent-notice[hidden] { display: none !important; }

.rp10-consent-notice {
	background: var(--surface-raised, #fff);
	border: 1px solid var(--line, #d8dce2);
	border-radius: 16px;
	box-shadow: var(--shadow, 0 12px 40px rgb(16 24 40 / 18%));
	bottom: max(12px, env(safe-area-inset-bottom, 0px));
	color: var(--text, #20242b);
	left: 50%;
	max-height: min(48vh, 320px);
	max-width: 680px;
	overflow-y: auto;
	padding: 16px 18px;
	position: fixed;
	transform: translateX(-50%);
	width: calc(100vw - 24px);
	z-index: 1010;
}

.rp10-consent-notice h2,
.rp10-consent-dialog h2 {
	color: var(--text, #20242b);
	font-size: 18px;
	line-height: 1.3;
	margin: 0 0 6px;
}

.rp10-consent-notice p,
.rp10-consent-dialog p {
	color: var(--muted, #626a75);
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 12px;
}

.rp10-consent-notice a,
.rp10-consent-dialog a,
.footer-cookie-preferences,
.site-footer__bottom [data-rp10-consent-open] {
	color: var(--brand, #c62638);
	font-weight: 700;
}

.rp10-consent-notice__actions,
.rp10-consent-dialog__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rp10-consent-notice__actions button,
.rp10-consent-dialog__actions button {
	background: var(--brand, #c62638);
	border: 1px solid var(--brand, #c62638);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 750;
	line-height: 1.2;
	min-height: 42px;
	padding: 10px 14px;
}

.rp10-consent-notice__actions button:hover,
.rp10-consent-dialog__actions button:hover { filter: brightness(.94); }

.rp10-consent-notice__actions button:focus-visible,
.rp10-consent-dialog button:focus-visible,
.rp10-consent-dialog input:focus-visible,
.site-footer__bottom [data-rp10-consent-open]:focus-visible {
	outline: 3px solid var(--brand, #c62638);
	outline-offset: 3px;
}

.rp10-consent-notice__actions .rp10-consent-link {
	background: transparent;
	color: var(--brand, #c62638);
}

.rp10-consent-dialog {
	background: var(--surface-raised, #fff);
	border: 1px solid var(--line, #d8dce2);
	border-radius: 18px;
	box-shadow: var(--shadow, 0 18px 64px rgb(16 24 40 / 28%));
	color: var(--text, #20242b);
	margin: auto;
	max-height: min(88vh, 720px);
	max-width: 560px;
	padding: 0;
	width: calc(100vw - 24px);
}

.rp10-consent-dialog::backdrop { background: rgb(15 18 24 / 48%); }
.rp10-consent-dialog__body { overflow-y: auto; padding: 24px; }

.rp10-consent-choice {
	align-items: center;
	border: 1px solid var(--line, #d8dce2);
	border-radius: 12px;
	display: flex;
	gap: 12px;
	margin: 12px 0;
	min-height: 60px;
	padding: 12px;
}

.rp10-consent-choice input { accent-color: var(--brand, #c62638); flex: 0 0 auto; height: 20px; width: 20px; }
.rp10-consent-choice > span:nth-of-type(1) { display: grid; gap: 3px; }
.rp10-consent-choice strong { color: var(--text, #20242b); font-size: 14px; }
.rp10-consent-choice small { color: var(--muted, #626a75); font-size: 12px; line-height: 1.45; }
.rp10-consent-choice__status { color: var(--muted, #626a75); font-size: 11px; margin-left: auto; white-space: nowrap; }
.rp10-consent-dialog .rp10-consent-dialog__note { font-size: 12px; margin-top: 14px; }
.rp10-consent-dialog__actions .rp10-consent-secondary { background: transparent; color: var(--brand, #c62638); }

.site-footer__bottom [data-rp10-consent-open] { font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 767px) {
	.rp10-consent-notice { bottom: max(10px, env(safe-area-inset-bottom, 0px)); max-height: 40vh; padding: 14px; }
	body.rp10-mobile-anchor-enabled .rp10-consent-notice { bottom: calc(124px + env(safe-area-inset-bottom, 0px)); }
	.rp10-consent-notice__actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.rp10-consent-notice__actions button { min-width: 0; white-space: normal; width: 100%; }
	.rp10-consent-notice__actions .rp10-consent-link { grid-column: 1 / -1; }
	.rp10-consent-dialog__body { padding: 18px; }
	.rp10-consent-choice { align-items: flex-start; flex-wrap: wrap; }
	.rp10-consent-choice__status { margin-left: 32px; }
}

@media (prefers-reduced-motion: reduce) {
	.rp10-consent-notice *,
	.rp10-consent-dialog * { scroll-behavior: auto !important; transition: none !important; }
}
