/*
 * Cookie consent banner and blocked-embed placeholders.
 * Loaded on every front-end page. Styled to match the site: white card, #009cff accent,
 * Lato headings, Cabin body text.
 */

.rr-consent {
	--rr-accent: #009cff;
	--rr-accent-dark: #0086db;
	--rr-heading: #111111;
	--rr-text: #5e5e5e;
	--rr-border: #d4d4d4;

	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 100000;
	box-sizing: border-box;
	width: calc(100% - 48px);
	max-width: 460px;
	font-family: "Cabin", sans-serif;
	color: var(--rr-text);
	background: #ffffff;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.rr-consent[hidden] {
	display: none;
}

.rr-consent__inner {
	max-height: calc(100vh - 48px);
	padding: 26px 28px 24px;
	overflow-y: auto;
	box-sizing: border-box;
}

.rr-consent .rr-consent__title {
	margin: 0 0 10px;
	padding: 0;
	font-family: "Lato", sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--rr-heading);
}

.rr-consent .rr-consent__title:focus {
	outline: none;
}

.rr-consent .rr-consent__text {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--rr-text);
}

.rr-consent a {
	color: var(--rr-accent);
	text-decoration: none;
	border: 0;
}

.rr-consent a:hover {
	text-decoration: underline;
}

/* ---------- Settings ---------- */

.rr-consent__settings {
	margin: 0 0 18px;
	border-top: 1px solid #e6e6e6;
}

.rr-consent__settings[hidden] {
	display: none;
}

.rr-consent__option {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	padding: 14px 0;
	font-weight: 400;
	border-bottom: 1px solid #e6e6e6;
	cursor: pointer;
}

.rr-consent__option:first-child {
	cursor: default;
}

.rr-consent__option-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.rr-consent__option-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--rr-heading);
}

.rr-consent__option-desc {
	font-size: 13px;
	line-height: 1.5;
	color: var(--rr-text);
}

.rr-consent__always {
	flex-shrink: 0;
	font-size: 13px;
	color: var(--rr-text);
}

/* Toggle switch */
.rr-consent__switch {
	position: relative;
	flex-shrink: 0;
	width: 44px;
	height: 24px;
	margin: 0;
	appearance: none;
	-webkit-appearance: none;
	background: #c9c9c9;
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.rr-consent__switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	background: #ffffff;
	border-radius: 50%;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease;
}

.rr-consent__switch:checked {
	background: var(--rr-accent);
}

.rr-consent__switch:checked::after {
	transform: translateX(20px);
}

.rr-consent__switch:focus-visible {
	outline: 3px solid rgba(0, 156, 255, 0.35);
	outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.rr-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.rr-consent__button,
.rr-embed-blocked .rr-consent__button {
	box-sizing: border-box;
	flex: 1 1 0;
	min-width: 120px;
	height: 46px;
	margin: 0;
	padding: 0 18px;
	font-family: "Cabin", sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--rr-accent, #009cff);
	background: #ffffff;
	border: 1px solid var(--rr-accent, #009cff);
	border-radius: 4px;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.rr-consent__button:hover,
.rr-consent__button:focus {
	color: var(--rr-accent-dark, #0086db);
	background: #eef8ff;
}

.rr-consent__button--primary,
.rr-embed-blocked .rr-consent__button--primary {
	color: #ffffff;
	background: var(--rr-accent, #009cff);
}

.rr-consent__button--primary:hover,
.rr-consent__button--primary:focus {
	color: #ffffff;
	background: var(--rr-accent-dark, #0086db);
	border-color: var(--rr-accent-dark, #0086db);
}

/* With settings open, "Save choices" gets its own full-width row above Accept/Reject. */
.rr-consent__button[data-rr-consent-action="save"] {
	flex-basis: 100%;
	order: -1;
}

.rr-consent__button[hidden],
.rr-consent__link[hidden] {
	display: none;
}

.rr-consent__button:focus-visible,
.rr-consent__link:focus-visible {
	outline: 3px solid rgba(0, 156, 255, 0.35);
	outline-offset: 2px;
}

.rr-consent__link {
	flex-basis: 100%;
	margin: 2px 0 0;
	padding: 4px 0;
	font-family: "Cabin", sans-serif;
	font-size: 14px;
	color: var(--rr-text);
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 3px;
	background: none;
	border: 0;
	box-shadow: none;
	cursor: pointer;
}

.rr-consent__link:hover {
	color: var(--rr-heading);
}

/* ---------- Blocked embeds ---------- */

.rr-embed-blocked {
	box-sizing: border-box;
	margin: 0 0 1.5em;
	padding: 28px;
	font-family: "Cabin", sans-serif;
	text-align: center;
	background: #f3f3f3;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
}

.rr-embed-blocked .rr-embed-blocked__text {
	max-width: 460px;
	margin: 0 auto 16px;
	font-size: 16px;
	line-height: 1.6;
	color: #5e5e5e;
}

.rr-embed-blocked__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	align-items: center;
	justify-content: center;
}

.rr-embed-blocked .rr-consent__button {
	flex: 0 0 auto;
}

.rr-embed-blocked .rr-embed-blocked__link {
	font-size: 15px;
	color: #009cff;
	text-decoration: none;
	border: 0;
}

.rr-embed-blocked .rr-embed-blocked__link:hover {
	text-decoration: underline;
}

/* ---------- Mobile ---------- */

@media (max-width: 600px) {
	.rr-consent {
		right: 12px;
		bottom: 12px;
		width: calc(100% - 24px);
	}

	.rr-consent__inner {
		max-height: calc(100vh - 24px);
		padding: 20px;
	}

	.rr-consent__button {
		flex-basis: 100%;
	}
}
