/* REGULARUS consent banner + modal.
   Style aligned with the REGULARUS design system (zero border-radius, Poppins). */

.rg-consent {
	position: fixed;
	left: clamp(12px, 2vw, 24px);
	right: clamp(12px, 2vw, 24px);
	bottom: clamp(12px, 2vh, 24px);
	z-index: 100;
	font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
	font-weight: 300;
	animation: rg-fadeup .32s ease-out;
}
@keyframes rg-fadeup {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}
@media (min-width: 720px) {
	.rg-consent { left: auto; right: clamp(16px, 2vw, 32px); max-width: 480px; }
}
.rg-consent__card {
	background: #111827;
	color: #f9fafb;
	padding: 24px 24px 20px;
	box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}
.rg-consent__title {
	font-weight: 500;
	font-size: 18px;
	margin: 0 0 10px;
	color: #ffffff;
}
.rg-consent__body {
	font-size: 13px;
	line-height: 1.55;
	color: rgba(249, 250, 251, .8);
	margin: 0 0 18px;
}
.rg-consent__body a {
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.rg-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
.rg-consent__link {
	background: none;
	border: none;
	padding: 8px 4px;
	color: rgba(249, 250, 251, .7);
	font: inherit;
	font-size: 12.5px;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	margin-left: auto;
}
.rg-consent__link:hover { color: #ffffff; }

/* Buttons */
.rg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	font: inherit;
	font-size: 12.5px;
	font-weight: 400;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background-color .15s ease-out, color .15s ease-out;
}
.rg-btn--primary {
	background: #861a22;
	color: #ffffff;
	border-color: #861a22;
}
.rg-btn--primary:hover { background: #71161d; border-color: #71161d; }
.rg-btn--ghost {
	background: transparent;
	color: #ffffff;
	border-color: rgba(249, 250, 251, .35);
}
.rg-btn--ghost:hover {
	background: rgba(249, 250, 251, .08);
	border-color: #ffffff;
}

/* Modal */
body.rg-consent-open { overflow: hidden; }
.rg-consent-modal {
	position: fixed; inset: 0; z-index: 110;
	display: flex; align-items: center; justify-content: center;
	padding: clamp(12px, 3vw, 40px);
	font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
}
.rg-consent-modal__backdrop {
	position: absolute; inset: 0;
	background: rgba(17, 24, 39, .55);
	backdrop-filter: blur(4px);
	animation: rg-fadein .2s ease-out;
}
@keyframes rg-fadein { from { opacity: 0; } to { opacity: 1; } }
.rg-consent-modal__card {
	position: relative;
	width: 100%;
	max-width: 540px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #ffffff;
	padding: clamp(28px, 4vw, 40px);
	box-shadow: 0 50px 80px -30px rgba(0,0,0,.4);
	animation: rg-fadeup .28s ease-out;
}
.rg-consent-modal__close {
	position: absolute;
	top: 14px; right: 16px;
	background: transparent; border: none;
	width: 32px; height: 32px;
	font-size: 22px; line-height: 1;
	color: #6b7280;
	cursor: pointer;
}
.rg-consent-modal__close:hover { background: #f3f4f6; color: #111827; }
.rg-consent-modal__title {
	font-weight: 500;
	font-size: 22px;
	margin: 0 0 20px;
	color: #111827;
}
.rg-consent-modal__list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.rg-toggle {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 14px;
	align-items: start;
	padding: 14px 16px;
	border: 1px solid #e5e7eb;
	background: #f9fafb;
	cursor: pointer;
}
.rg-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.rg-toggle__slot {
	position: relative;
	width: 36px; height: 20px;
	background: #d1d5db;
	transition: background .2s ease-out;
	flex-shrink: 0;
	margin-top: 3px;
}
.rg-toggle__slot span {
	position: absolute;
	top: 2px; left: 2px;
	width: 16px; height: 16px;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0,0,0,.2);
	transition: transform .2s ease-out;
}
.rg-toggle input:checked + .rg-toggle__slot { background: #861a22; }
.rg-toggle input:checked + .rg-toggle__slot span { transform: translateX(16px); }
.rg-toggle input:disabled + .rg-toggle__slot { background: #861a22; opacity: .55; }
.rg-toggle input:disabled + .rg-toggle__slot span { transform: translateX(16px); }
.rg-toggle__text strong {
	display: block;
	font-weight: 500;
	font-size: 14px;
	color: #111827;
	margin-bottom: 2px;
}
.rg-toggle__text em {
	display: block;
	font-style: normal;
	font-size: 12.5px;
	line-height: 1.5;
	color: #6b7280;
}
.rg-consent-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.rg-consent-modal__card .rg-btn--ghost {
	color: #111827;
	border-color: #d1d5db;
}
.rg-consent-modal__card .rg-btn--ghost:hover {
	background: #f3f4f6;
	border-color: #6b7280;
}
