/* Smart Consent — Base Styles */

/* ── Banner ── */
#sc-banner {
	position: fixed;
	left: 0;
	right: 0;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 24px;
	gap: 16px;
	z-index: 99999;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	box-sizing: border-box;

	/* default bottom — overridden inline if position=top */
	bottom: 0;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);

	/* hidden until JS adds .sc-visible */
	transform: translateY(110%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}

#sc-banner.sc-visible {
	transform: translateY(0);
	pointer-events: auto;
}

/* Top position */
#sc-banner.sc-top {
	bottom: auto;
	top: 0;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
	transform: translateY(-110%);
}
#sc-banner.sc-top.sc-visible {
	transform: translateY(0);
}

/* ── Banner Cookie Icon ── */
.sc-banner-icon {
	width: 20px;
	height: 20px;
	fill: currentColor;
	flex-shrink: 0;
	opacity: 0.9;
}

/* ── Banner Text ── */
.sc-banner-text {
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sc-privacy-link {
	color: inherit;
	opacity: 0.75;
	margin-left: 6px;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.sc-privacy-link:hover {
	opacity: 1;
}

/* ── Buttons ── */
.sc-banner-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	padding-left: 50px;
}

.sc-btn {
	border: none;
	border-radius: 4px;
	padding: 8px 20px;
	font-weight: 600;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity 0.15s ease, transform 0.1s ease;
}
.sc-btn:hover  { opacity: 0.85; transform: translateY(-1px); }
.sc-btn:active { transform: translateY(0); }
.sc-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* ── Floating Cookie Icon ── */
.sc-icon {
	position: fixed;
	bottom: 70px;
	right: 20px;
	z-index: 99999;
	display: none;
}
.sc-icon.sc-visible {
	display: block;
}

.sc-icon a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background: #2c2c2c;
	color: #ffffff;
	text-decoration: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sc-icon a:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.sc-icon a:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.7);
	outline-offset: 3px;
}

.sc-icon svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
	display: block;
}

/* visually hidden label */
.sc-icon span {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ── Mobile ── */
@media (max-width: 640px) {
	#sc-banner {
		height: auto;
		flex-direction: column;
		align-items: flex-start;
		padding: 14px 16px;
		gap: 12px;
		transform: translateY(110%);
	}
	#sc-banner.sc-top {
		transform: translateY(-110%);
	}
	.sc-banner-text {
		white-space: normal;
		overflow: visible;
		text-overflow: unset;
	}
	.sc-banner-actions {
		width: 100%;
		justify-content: flex-end;
	}
}
