/* Cookie consent banner + preferences panel. Hand-written plain CSS (not
   part of the Tailwind build) so it can ship without a build step. Uses the
   theme's existing CSS custom properties for colour so it matches the brand
   in both the banner and the panel. */

#rt-cookie-banner,
#rt-cookie-panel {
	font-family: 'Hanken Grotesk', 'Poppins', 'Helvetica Neue', Arial, sans-serif;
	box-sizing: border-box;
}
#rt-cookie-banner *,
#rt-cookie-panel * {
	box-sizing: border-box;
}

#rt-cookie-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9998;
	background: var(--surface-deep, #283d34);
	color: var(--text-on-deep, #f1f0eb);
	padding: 22px clamp(20px, 4vw, 56px);
	box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.22);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}
#rt-cookie-banner[hidden] {
	display: none !important;
}
#rt-cookie-banner p {
	margin: 0;
	max-width: 62ch;
	font-weight: 300;
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-on-deep-muted, rgba(241, 240, 235, 0.7));
}
#rt-cookie-banner .rt-cc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.rt-cc-btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 2px;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 12px 20px;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.rt-cc-btn--solid {
	background: var(--mcs-pearl-white, #f1f0eb);
	color: var(--mcs-emirates-evergreen, #283d34);
}
.rt-cc-btn--solid:hover {
	background: var(--mcs-soft-sage, #b1c6b4);
}
.rt-cc-btn--outline {
	background: transparent;
	color: var(--text-on-deep, #f1f0eb);
	border-color: var(--line-on-deep, rgba(241, 240, 235, 0.35));
}
.rt-cc-btn--outline:hover {
	border-color: var(--text-on-deep, #f1f0eb);
}
.rt-cc-btn--text {
	background: transparent;
	color: var(--text-on-deep, #f1f0eb);
	text-decoration: underline;
	padding: 12px 4px;
}

#rt-cookie-panel {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(35, 35, 31, 0.55);
}
#rt-cookie-panel[hidden] {
	display: none !important;
}
.rt-cc-panel__dialog {
	background: var(--surface-base, #f1f0eb);
	color: var(--text-primary, #23231f);
	width: min(560px, 100%);
	max-height: 86vh;
	overflow-y: auto;
	padding: clamp(28px, 4vw, 44px);
	box-shadow: 0 40px 120px -40px rgba(40, 61, 52, 0.5);
}
.rt-cc-panel__title {
	font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	font-weight: 700;
	font-size: 24px;
	margin: 0 0 10px;
}
.rt-cc-panel__intro {
	font-size: 14px;
	font-weight: 300;
	line-height: 1.65;
	color: var(--text-secondary, #4d5a52);
	margin: 0 0 26px;
}
.rt-cc-category {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding: 18px 0;
	border-top: 1px solid var(--line-hairline, rgba(35, 35, 31, 0.16));
}
.rt-cc-category:last-of-type {
	border-bottom: 1px solid var(--line-hairline, rgba(35, 35, 31, 0.16));
}
.rt-cc-category__label {
	font-weight: 600;
	font-size: 14px;
	margin: 0 0 6px;
}
.rt-cc-category__desc {
	font-size: 13px;
	font-weight: 300;
	line-height: 1.6;
	color: var(--text-secondary, #4d5a52);
	margin: 0;
	max-width: 40ch;
}

.rt-cc-switch {
	position: relative;
	flex: none;
	width: 42px;
	height: 24px;
}
.rt-cc-switch input {
	opacity: 0;
	width: 100%;
	height: 100%;
	position: absolute;
	inset: 0;
	margin: 0;
	cursor: pointer;
}
.rt-cc-switch input:disabled {
	cursor: not-allowed;
}
.rt-cc-switch__track {
	position: absolute;
	inset: 0;
	background: var(--surface-alt, #e4e9e2);
	border-radius: 999px;
	transition: background-color 0.2s ease;
}
.rt-cc-switch__thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s ease;
}
.rt-cc-switch input:checked + .rt-cc-switch__track {
	background: var(--mcs-accent-deep, #446453);
}
.rt-cc-switch input:checked + .rt-cc-switch__track .rt-cc-switch__thumb {
	transform: translateX(18px);
}
.rt-cc-switch input:disabled + .rt-cc-switch__track {
	opacity: 0.6;
}

.rt-cc-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}
.rt-cc-panel__actions .rt-cc-btn--outline {
	color: var(--text-primary, #23231f);
	border-color: var(--line-hairline, rgba(35, 35, 31, 0.3));
}
.rt-cc-panel__close {
	position: absolute;
	top: 18px;
	right: 18px;
	background: transparent;
	border: 0;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	color: var(--text-muted, #8a938d);
	padding: 6px;
}
.rt-cc-panel__dialog {
	position: relative;
}

@media (max-width: 640px) {
	#rt-cookie-banner {
		flex-direction: column;
		align-items: stretch;
	}
	#rt-cookie-banner .rt-cc-actions {
		justify-content: flex-start;
	}
}
