/* ========================================================================== */
/*  Cookie Banner (Smarty Consent Manager)                                   */
/* ========================================================================== */

#scm-cookie-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	font-family: inherit;
	display: none;
}

/* Shown when JS adds this class */
#scm-cookie-banner.scm-cookie-modal--visible {
	display: block;
}

/* Backdrop covering the viewport */
.scm-cookie-modal__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	pointer-events: auto;
}

/* Dialog (bottom bar / panel) */
.scm-cookie-modal__dialog {
	background-color: #ebe9e1;
	color: #000;
	border-radius: 0.4rem 0.4rem 0 0;
	box-shadow: 0 0.3rem 0.9rem rgba(0, 0, 0, 0.25);
	max-width: 1000px;
	width: 100%;
	margin: 0 1rem 1rem;
	pointer-events: auto;
}

/* Body */
.scm-cookie-modal__body {
	padding: 1rem 1.25rem 0.75rem;
	font-size: 0.9rem;
}

.scm-cookie-modal__title {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	font-weight: 600;
}

.scm-cookie-modal__text {
	margin: 0 0 0.5rem;
	line-height: 1.4;
}

.scm-cookie-modal__links {
	margin: 0 0 0.75rem;
	font-size: 0.85rem;
}

.scm-cookie-modal__links a {
	color: inherit;
	text-decoration: underline;
}

.scm-cookie-modal__links a:hover,
.scm-cookie-modal__links a:focus {
	text-decoration: none;
}

/* Categories */
.scm-cookie-modal__categories {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem 1rem;
	margin-bottom: 0.5rem;
}

.scm-cookie-category label {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	font-size: 0.85rem;
	cursor: pointer;
}

.scm-cookie-category input[type="checkbox"] {
	margin-top: 0.15rem;
}

/* Footer buttons */
.scm-cookie-modal__footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 1.25rem 0.75rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Buttons */
.scm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.4rem 0.9rem;
	border-radius: 0;
	border: 0;
	font-size: 0.85rem;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
}

.scm-btn--primary {
	background-color: #000;
	color: #fff;
	border: 0;
}

.scm-btn--primary:hover,
.scm-btn--primary:focus {
	background-color: #111;
	color: #fff;
	border: 0;
}

.scm-btn--secondary {
	background-color: #fff;
	color: #000;
}

.scm-btn--secondary:hover,
.scm-btn--secondary:focus {
	background-color: #f5f5f5;
	color: #000;
	border: 0;
}

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

.cookie-settings-icon {
	display: none; /* JS will set to block when needed */
	position: fixed;
	bottom: 20px;
	left: 20px;
	width: 40px;
	height: 40px;
	background-color: #ebe9e1;
	color: #000;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
	z-index: 9998;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cookie-settings-icon svg circle {
	fill: transparent;
}

/* -------------------------------------------------------------------------- */
/*  Vimeo Consent Overlay                                                     */
/* -------------------------------------------------------------------------- */

.video-consent-wrapper {
	position: relative;
	width: 100%;
	max-width: 100%;
	padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-consent-wrapper iframe[data-cookie-block="video"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Overlay that covers video when marketing consent = false */
.video-consent-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 1rem;
	text-align: center;
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	z-index: 2;
}

.video-consent-overlay p {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
}

.video-consent-overlay .video-consent-settings-btn {
	margin-top: 0;
	padding: 0.45rem 0.9rem;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	background-color: #fff;
	color: #000;
	font-size: 0.85rem;
}

/* -------------------------------------------------------------------------- */
/*  Responsive                                                                */
/* -------------------------------------------------------------------------- */

@media (max-width: 767px) {
	.scm-cookie-modal__dialog {
		margin: 0 0 0;
		border-radius: 0;
		max-width: 100%;
	}

	.scm-cookie-modal__categories {
		grid-template-columns: 1fr;
	}

	.scm-cookie-modal__body {
		padding: 0.9rem 0.85rem 0.5rem;
	}

	.scm-cookie-modal__footer {
		padding: 0.45rem 0.85rem 0.6rem;
		justify-content: space-between;
	}
}
