/* SleekPress Cookies — front-end banner & modal */

#spc-root {
	--spc-bg: #ffffff;
	--spc-text: #1f2933;
	--spc-primary: #2563eb;
	--spc-primary-text: #ffffff;
	--spc-secondary: #e5e7eb;
	--spc-secondary-text: #1f2933;
	--spc-radius: 0.75rem;
	--spc-width: 26.25rem;
}

.spc-banner,
.spc-modal__box,
.spc-badge {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.875rem;
	line-height: 1.5;
}

.spc-banner *,
.spc-modal *,
.spc-badge * {
	box-sizing: border-box;
}

/* ---------- banner ---------- */

.spc-banner {
	position: fixed;
	z-index: 999999;
	background: var(--spc-bg);
	color: var(--spc-text);
	border-radius: var(--spc-radius);
	box-shadow: 0 0.625rem 2.5rem rgba( 0, 0, 0, 0.18 );
	padding: 1.25rem 1.375rem;
	width: var(--spc-width);
	max-width: calc( 100vw - 2rem );
	animation: spc-in 0.25s ease;
}

@keyframes spc-in {
	from { opacity: 0; transform: translateY( 0.75rem ); }
	to   { opacity: 1; transform: translateY( 0 ); }
}

.spc-pos-bottom-left  { left: 1rem;  bottom: 1rem; }
.spc-pos-bottom-right { right: 1rem; bottom: 1rem; }
.spc-banner.spc-pos-bottom-bar {
	left: 0; right: 0; bottom: 0;
	width: 100%;
	max-width: 100%;
	border-radius: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.5rem;
	padding: 1rem 1.5rem;
}
.spc-banner.spc-pos-bottom-bar .spc-banner__title { width: 100%; }
.spc-banner.spc-pos-bottom-bar .spc-banner__text { flex: 1 1 20rem; margin: 0; }
.spc-banner.spc-pos-bottom-bar .spc-banner__actions { margin-top: 0; }

.spc-banner__title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--spc-text);
}

.spc-banner__text {
	margin: 0 0 1rem;
	color: var(--spc-text);
	opacity: 0.92;
}

.spc-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.spc-banner__brand {
	margin-top: 0.75rem;
	font-size: 0.6875rem;
	opacity: 0.5;
}

/* ---------- buttons ---------- */

.spc-btn {
	-webkit-appearance: none;
	appearance: none;
	border: 0;
	cursor: pointer;
	border-radius: calc( var(--spc-radius) - 0.25rem );
	padding: 0.5625rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	transition: filter 0.15s ease;
	flex: 1 1 auto;
	min-width: 5.25rem;
}
.spc-btn:hover { filter: brightness( 0.94 ); }

.spc-btn--primary {
	background: var(--spc-primary);
	color: var(--spc-primary-text);
}
.spc-btn--secondary {
	background: var(--spc-secondary);
	color: var(--spc-secondary-text);
}

.spc-link {
	color: var(--spc-primary);
	text-decoration: underline;
}

/* ---------- modal ---------- */

.spc-modal {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	background: rgba( 0, 0, 0, 0.5 );
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	animation: spc-in 0.2s ease;
}

.spc-modal__box {
	background: var(--spc-bg);
	color: var(--spc-text);
	border-radius: var(--spc-radius);
	width: 35rem;
	max-width: 100%;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 1.25rem 3.75rem rgba( 0, 0, 0, 0.3 );
}

.spc-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border-bottom: 0.0625rem solid rgba( 128, 128, 128, 0.2 );
}
.spc-modal__head h2 { margin: 0; font-size: 1.0625rem; }
.spc-modal__close {
	background: none; border: 0; cursor: pointer;
	font-size: 1.5rem; line-height: 1; color: inherit; opacity: 0.6;
}
.spc-modal__close:hover { opacity: 1; }

.spc-modal__body {
	padding: 0.5rem 1.25rem;
	overflow-y: auto;
}

.spc-modal__foot {
	display: flex;
	gap: 0.5rem;
	padding: 1rem 1.25rem;
	border-top: 0.0625rem solid rgba( 128, 128, 128, 0.2 );
}

.spc-modal__privacy {
	padding: 0 1.25rem 0.875rem;
	font-size: 0.75rem;
}

/* ---------- categories ---------- */

.spc-cat {
	padding: 0.875rem 0;
	border-bottom: 0.0625rem solid rgba( 128, 128, 128, 0.15 );
}
.spc-cat:last-child { border-bottom: 0; }

.spc-cat__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}
.spc-cat__label { font-weight: 700; font-size: 0.9375rem; }
.spc-cat__always {
	font-size: 0.75rem;
	font-weight: 600;
	color: #15803d;
}
.spc-cat__desc {
	margin: 0.375rem 0 0;
	font-size: 0.8125rem;
	opacity: 0.85;
}
.spc-cat__toggle {
	margin-top: 0.5rem;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: var(--spc-primary);
	font-size: 0.75rem;
	text-decoration: underline;
}

/* switch */
.spc-switch { position: relative; display: inline-block; width: 2.625rem; height: 1.5rem; flex: none; }
.spc-switch input { opacity: 0; width: 0; height: 0; }
.spc-switch__track {
	position: absolute; inset: 0;
	background: #b6bcc6;
	border-radius: 1.5rem;
	transition: background 0.2s ease;
}
.spc-switch__track::before {
	content: "";
	position: absolute;
	height: 1.125rem; width: 1.125rem;
	left: 0.1875rem; top: 0.1875rem;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s ease;
}
.spc-switch input:checked + .spc-switch__track { background: var(--spc-primary); }
.spc-switch input:checked + .spc-switch__track::before { transform: translateX( 1.125rem ); }

/* cookie list inside a category */
.spc-cookies {
	margin-top: 0.5rem;
	border: 0.0625rem solid rgba( 128, 128, 128, 0.2 );
	border-radius: 0.5rem;
	padding: 0.25rem 0.75rem;
	background: rgba( 128, 128, 128, 0.05 );
}
.spc-cookie-item {
	padding: 0.5rem 0;
	border-bottom: 0.0625rem solid rgba( 128, 128, 128, 0.15 );
}
.spc-cookie-item:last-child { border-bottom: 0; }
.spc-cookie-item__name { font-family: monospace; font-weight: 600; font-size: 0.75rem; }
.spc-cookie-item__meta { font-size: 0.6875rem; opacity: 0.7; margin-top: 0.125rem; }
.spc-cookie-item__desc { font-size: 0.75rem; opacity: 0.85; margin-top: 0.1875rem; }

/* ---------- revisit badge ---------- */

.spc-badge {
	position: fixed;
	z-index: 999998;
	bottom: 1rem;
	width: 2.75rem; height: 2.75rem;
	border-radius: 50%;
	border: 0;
	cursor: pointer;
	background: var(--spc-bg);
	color: var(--spc-primary);
	box-shadow: 0 0.375rem 1.25rem rgba( 0, 0, 0, 0.2 );
	line-height: 1;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.spc-badge svg {
	width: 1.625rem;
	height: 1.625rem;
	display: block;
	fill: currentColor;
}
.spc-badge.spc-pos-bottom-right { right: 1rem; }
.spc-badge.spc-pos-bottom-left,
.spc-badge.spc-pos-bottom-bar { left: 1rem; }

@media ( max-width: 30em ) {
	.spc-banner.spc-pos-bottom-left,
	.spc-banner.spc-pos-bottom-right {
		left: 0.5rem; right: 0.5rem; bottom: 0.5rem; width: auto;
	}
}
