/* Smarter Surfaces Cookie Consent. Colours come from the settings as CSS variables. */

.ssuite-cc,
.ssuite-cc-prefs,
.ssuite-cc-float {
	box-sizing: border-box;
	font-size: var(--ssuite-cc-size, 15px);
	line-height: 1.45;
}
.ssuite-cc *,
.ssuite-cc-prefs * {
	box-sizing: border-box;
}
.ssuite-cc[hidden],
.ssuite-cc-prefs[hidden],
.ssuite-cc-float[hidden] {
	display: none !important;
}

/* Slim full-width bar */
.ssuite-cc {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 2147483000;
	background: var(--ssuite-cc-bg, #8a979c);
	color: var(--ssuite-cc-text, #fff);
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.18);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.ssuite-cc-bottom {
	bottom: 0;
}
.ssuite-cc-top {
	top: 0;
}
.admin-bar .ssuite-cc-top {
	top: 32px;
}
@media (max-width: 782px) {
	.admin-bar .ssuite-cc-top {
		top: 46px;
	}
}
.ssuite-cc-bar {
	max-width: 1600px;
	margin: 0 auto;
	padding: 10px 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px 20px;
	flex-wrap: wrap;
}
.ssuite-cc-msg {
	margin: 0;
	flex: 0 1 auto;
	color: inherit;
	font-weight: 600;
	text-align: center;
}
.ssuite-cc-link {
	display: inline;
	margin: 0 0 0 8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ssuite-cc-link, inherit);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}
.ssuite-cc-link:hover,
.ssuite-cc-link:focus {
	text-decoration-thickness: 2px;
	color: var(--ssuite-cc-link, inherit);
}
.ssuite-cc-btns {
	display: flex;
	gap: 10px;
	flex: 0 0 auto;
}

/* Buttons: Accept and Reject are deliberately the same size and weight. */
.ssuite-cc-btn {
	min-width: 104px;
	margin: 0;
	padding: 10px 22px;
	border: 2px solid transparent;
	border-radius: var(--ssuite-cc-radius, 0);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
}
.ssuite-cc-accept {
	background: var(--ssuite-cc-accept, #f47c30);
	color: var(--ssuite-cc-accept-text, #fff);
}
.ssuite-cc-reject {
	background: var(--ssuite-cc-reject, #f47c30);
	color: var(--ssuite-cc-reject-text, #fff);
}
.ssuite-cc-save {
	background: transparent;
	color: inherit;
	border-color: currentColor;
}
.ssuite-cc-btn {
	transition: background-color 0.15s, color 0.15s;
}
.ssuite-cc-accept:hover,
.ssuite-cc-accept:focus-visible {
	background: var(--ssuite-cc-accept-hover, #d9661c);
	color: var(--ssuite-cc-accept-hover-text, #fff);
}
.ssuite-cc-reject:hover,
.ssuite-cc-reject:focus-visible {
	background: var(--ssuite-cc-reject-hover, #d9661c);
	color: var(--ssuite-cc-reject-hover-text, #fff);
}
.ssuite-cc-save:hover {
	background: rgba(0, 0, 0, 0.06);
}
.ssuite-cc-btn:focus-visible,
.ssuite-cc-link:focus-visible,
.ssuite-cc-close:focus-visible,
.ssuite-cc-float:focus-visible,
.ssuite-cc-switch input:focus-visible + span {
	outline: 3px solid #ffbf47;
	outline-offset: 2px;
}

/* Settings panel */
.ssuite-cc-prefs {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
html.ssuite-cc-modal {
	overflow: hidden;
}
.ssuite-cc-panel {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #fff;
	color: #1d2327;
	padding: 24px 24px 20px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	outline: none;
}
.ssuite-cc-panel h2 {
	margin: 0 32px 8px 0;
	padding: 0;
	font-size: 1.35em;
	line-height: 1.3;
	color: inherit;
}
.ssuite-cc-intro {
	margin: 0 0 16px;
	font-size: 14px;
}
.ssuite-cc-intro a {
	color: inherit;
}
.ssuite-cc-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: none;
	color: #50575e;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.ssuite-cc-cat {
	border-top: 1px solid #e0e0e0;
	padding: 12px 0;
}
.ssuite-cc-cat p {
	margin: 6px 0 0;
	font-size: 14px;
	color: #50575e;
}
.ssuite-cc-cat-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.ssuite-cc-cat-head label {
	cursor: pointer;
	margin: 0;
}
.ssuite-cc-always {
	font-size: 13px;
	font-weight: 600;
	color: #00a32a;
}

/* Toggle switch (a real checkbox underneath) */
.ssuite-cc-switch {
	position: relative;
	display: inline-block;
	width: 46px;
	height: 26px;
	flex: 0 0 46px;
}
.ssuite-cc-switch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}
.ssuite-cc-switch span {
	position: absolute;
	inset: 0;
	background: #8c8f94;
	border-radius: 26px;
	transition: background 0.2s;
}
.ssuite-cc-switch span::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s;
}
.ssuite-cc-switch input:checked + span {
	background: var(--ssuite-cc-accept, #f47c30);
}
.ssuite-cc-switch input:checked + span::after {
	transform: translateX(20px);
}

.ssuite-cc-panel-btns {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
	border-top: 1px solid #e0e0e0;
	padding-top: 16px;
}
.ssuite-cc-panel .ssuite-cc-save {
	color: #1d2327;
}

/* Small button to change your mind later */
.ssuite-cc-float {
	position: fixed;
	bottom: 16px;
	z-index: 2147482999;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ssuite-cc-bg-solid, #8a979c);
	color: var(--ssuite-cc-text, #fff);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.85;
}
.ssuite-cc-float:hover {
	opacity: 1;
}
.ssuite-cc-float-left {
	left: 16px;
}
.ssuite-cc-float-right {
	right: 16px;
}
html.ssuite-cc-open .ssuite-cc-float {
	display: none;
}

@media (max-width: 640px) {
	.ssuite-cc-bar {
		padding: 12px;
	}
	.ssuite-cc-msg {
		font-size: 14px;
	}
	.ssuite-cc-btns {
		width: 100%;
	}
	.ssuite-cc-btns .ssuite-cc-btn {
		flex: 1;
	}
	.ssuite-cc-panel-btns .ssuite-cc-btn {
		flex: 1 1 100%;
	}
}

/* Slide in */
@keyframes ssuite-cc-up {
	from { transform: translateY(100%); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}
@keyframes ssuite-cc-down {
	from { transform: translateY(-100%); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}
.ssuite-cc-bottom.ssuite-cc-anim {
	animation: ssuite-cc-up 0.45s ease-out both;
}
.ssuite-cc-top.ssuite-cc-anim {
	animation: ssuite-cc-down 0.45s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
	.ssuite-cc-switch span,
	.ssuite-cc-switch span::after {
		transition: none;
	}
	.ssuite-cc-anim {
		animation: none !important;
	}
}
