/* EinShine Cookie Consent — frontend styles */

/* ── Reset / base ── */
#ecc-banner *,
#ecc-banner *::before,
#ecc-banner *::after {
	box-sizing: border-box;
}

/* ── Overlay ── */
.ecc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.55);
	z-index: 99998;
}

/* ── Banner wrapper ── */
.ecc-banner {
	position: fixed;
	z-index: 99999;
	background: var(--ecc-bg, #fff);
	color: var(--ecc-text, #333);
	box-shadow: 0 4px 24px rgba(0,0,0,.18);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	max-height: 90vh;
	overflow-y: auto;
}

/* Positions */
.ecc-pos-bottom {
	bottom: 0;
	left: 0;
	right: 0;
	border-top: 3px solid var(--ecc-primary, #3860be);
}
.ecc-pos-top {
	top: 0;
	left: 0;
	right: 0;
	border-bottom: 3px solid var(--ecc-primary, #3860be);
}
.ecc-pos-center {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(600px, 94vw);
	border-radius: 8px;
	border-top: 4px solid var(--ecc-primary, #3860be);
}

/* ── Inner ── */
.ecc-banner__inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px 24px;
}

/* ── Header ── */
.ecc-banner__title {
	margin: 0 0 10px;
	font-size: 1.1em;
	font-weight: 700;
	color: var(--ecc-text, #333);
}

/* ── Body ── */
.ecc-banner__summary p {
	margin: 0 0 10px;
}
.ecc-banner__summary a {
	color: var(--ecc-primary, #3860be);
}

/* ── Details / categories ── */
.ecc-banner__details {
	margin-top: 16px;
}
.ecc-category {
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	padding: 12px 14px;
	margin-bottom: 10px;
	background: #fafafa;
}
.ecc-category__header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}
.ecc-category__name {
	font-weight: 600;
}
.ecc-category__required {
	font-size: 0.82em;
	color: #888;
}
.ecc-category__desc {
	margin: 0;
	font-size: 0.88em;
	color: #555;
}

/* ── Toggle switch ── */
.ecc-toggle {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 24px;
	flex-shrink: 0;
}
.ecc-toggle__input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}
.ecc-toggle__slider {
	position: absolute;
	inset: 0;
	background: #ccc;
	border-radius: 24px;
	cursor: pointer;
	transition: background .2s;
}
.ecc-toggle__slider::before {
	content: "";
	position: absolute;
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform .2s;
}
.ecc-toggle__input:checked + .ecc-toggle__slider {
	background: var(--ecc-primary, #3860be);
}
.ecc-toggle__input:checked + .ecc-toggle__slider::before {
	transform: translateX(18px);
}
.ecc-toggle__input:disabled + .ecc-toggle__slider {
	opacity: .65;
	cursor: not-allowed;
}
.ecc-toggle__input:focus-visible + .ecc-toggle__slider {
	outline: 2px solid var(--ecc-primary, #3860be);
	outline-offset: 2px;
}

/* ── Footer / buttons ── */
.ecc-banner__footer {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}
.ecc-btn-group {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-left: auto;
}
.ecc-btn {
	padding: 8px 18px;
	border-radius: 4px;
	font-size: 0.9em;
	font-weight: 600;
	cursor: pointer;
	border: 2px solid transparent;
	transition: opacity .15s, background .15s;
	white-space: nowrap;
}
.ecc-btn:hover { opacity: .88; }
.ecc-btn--primary {
	background: var(--ecc-primary, #3860be);
	color: #fff;
	border-color: var(--ecc-primary, #3860be);
}
.ecc-btn--secondary {
	background: #f0f0f0;
	color: var(--ecc-text, #333);
	border-color: #d0d0d0;
}
.ecc-btn--outline {
	background: transparent;
	color: var(--ecc-primary, #3860be);
	border-color: var(--ecc-primary, #3860be);
}

/* ── Cookie declaration shortcode ── */
.ecc-declaration__block {
	border-left: 4px solid var(--ecc-primary, #3860be);
	padding: 10px 16px;
	margin-bottom: 18px;
	background: #f9f9f9;
}
.ecc-declaration__block h3 {
	margin: 0 0 6px;
}
.ecc-declaration__block p {
	margin: 0;
}

/* ── Mobile ── */
@media (max-width: 600px) {
	.ecc-banner__footer {
		flex-direction: column;
		align-items: stretch;
	}
	.ecc-btn-group {
		margin-left: 0;
		flex-direction: column;
	}
	.ecc-btn {
		width: 100%;
		text-align: center;
	}
}
