/**
 * Slapukų sutikimas — frontend styles.
 * Colours come from CSS variables set inline per-site:
 *   --cc-primary, --cc-text, --cc-bg, --cc-radius
 */

.cc-root {
	--cc-primary: #182B3F;
	--cc-text: #1d1d1f;
	--cc-bg: #ffffff;
	--cc-radius: 14px;
	--cc-muted: #5b5b60;
	--cc-border: rgba(0, 0, 0, .1);
	--cc-shadow: 0 18px 50px rgba(0, 0, 0, .22);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--cc-text);
}

.cc-root *, .cc-root *::before, .cc-root *::after { box-sizing: border-box; }

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

.cc-banner {
	position: fixed;
	z-index: 2147483000;
	background: var(--cc-bg);
	color: var(--cc-text);
	border-radius: var(--cc-radius);
	box-shadow: var(--cc-shadow);
	border: 1px solid var(--cc-border);
	padding: 22px 22px 20px;
	width: 380px;
	max-width: calc(100vw - 32px);
	opacity: 0;
	transform: translateY(16px);
	pointer-events: none;
	transition: opacity .28s ease, transform .28s ease;
}

.cc-root.cc-banner-visible .cc-banner {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* position variants */
.cc-pos-bottom-left .cc-banner { left: 20px; bottom: 20px; }
.cc-pos-bottom-right .cc-banner { right: 20px; bottom: 20px; }
.cc-pos-bottom-bar .cc-banner {
	left: 0; right: 0; bottom: 0; width: 100%;
	max-width: 100%; border-radius: 0;
	display: flex; align-items: center; gap: 24px;
	padding: 18px 28px;
}
.cc-pos-bottom-bar .cc-banner-body { flex: 1; }
.cc-pos-bottom-bar .cc-actions { margin-top: 0; flex-shrink: 0; }
.cc-pos-center .cc-banner {
	left: 50%; bottom: auto; top: 50%;
	transform: translate(-50%, -50%) scale(.96);
	width: 440px;
}
.cc-root.cc-banner-visible.cc-pos-center .cc-banner { transform: translate(-50%, -50%) scale(1); }
.cc-pos-center.cc-banner-visible::before {
	content: ""; position: fixed; inset: 0;
	background: rgba(0, 0, 0, .45); z-index: 2147482999;
}

.cc-title { margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.25; }
.cc-text { margin: 0; color: var(--cc-muted); font-size: 14px; }
.cc-policy-link { color: var(--cc-primary); text-decoration: underline; }

.cc-x {
	position: absolute; top: 10px; right: 12px;
	background: none; border: 0; cursor: pointer;
	font-size: 22px; line-height: 1; color: var(--cc-muted);
	width: 28px; height: 28px; border-radius: 50%;
}
.cc-x:hover { background: rgba(0, 0, 0, .06); }

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

.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cc-pos-bottom-bar .cc-actions { flex-wrap: nowrap; }

.cc-btn {
	flex: 1 1 auto;
	min-width: 96px;
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	padding: 11px 16px;
	border-radius: calc(var(--cc-radius) - 4px);
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: filter .15s ease, background .15s ease, color .15s ease;
	white-space: nowrap;
}
.cc-btn-primary { background: var(--cc-primary); color: #fff; }
.cc-btn-primary:hover { filter: brightness(.93); }
/* Reject given equal weight to Accept — no dark pattern. */
.cc-btn-ghost { background: transparent; color: var(--cc-text); border-color: var(--cc-border); }
.cc-btn-ghost:hover { background: rgba(0, 0, 0, .05); }
.cc-btn-secondary { background: transparent; color: var(--cc-text); border-color: var(--cc-border); }
.cc-btn-secondary:hover { background: rgba(0, 0, 0, .05); }

/* outline button style */
.cc-btn-outline .cc-btn-primary {
	background: transparent; color: var(--cc-primary); border-color: var(--cc-primary);
}
.cc-btn-outline .cc-btn-primary:hover { background: var(--cc-primary); color: #fff; }

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

.cc-modal-overlay {
	position: fixed; inset: 0; z-index: 2147483600;
	background: rgba(0, 0, 0, .5);
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
	opacity: 0; visibility: hidden;
	transition: opacity .2s ease, visibility .2s ease;
}
.cc-modal-overlay.is-open { opacity: 1; visibility: visible; }
html.cc-modal-lock { overflow: hidden; }

.cc-modal {
	background: var(--cc-bg);
	color: var(--cc-text);
	border-radius: var(--cc-radius);
	width: 560px; max-width: 100%;
	max-height: 88vh;
	display: flex; flex-direction: column;
	box-shadow: var(--cc-shadow);
	transform: translateY(12px) scale(.98);
	transition: transform .2s ease;
}
.cc-modal-overlay.is-open .cc-modal { transform: none; }

.cc-modal-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 20px 22px 14px;
	border-bottom: 1px solid var(--cc-border);
}
.cc-modal-title { margin: 0; font-size: 18px; font-weight: 700; }
.cc-modal-close {
	background: none; border: 0; cursor: pointer;
	font-size: 26px; line-height: 1; color: var(--cc-muted);
	width: 34px; height: 34px; border-radius: 50%;
}
.cc-modal-close:hover { background: rgba(0, 0, 0, .06); }

.cc-modal-body { padding: 18px 22px; overflow-y: auto; }
.cc-modal-intro { margin: 0 0 14px; color: var(--cc-muted); font-size: 14px; }
.cc-more-toggle {
	background: none; border: 0; padding: 0; cursor: pointer;
	color: var(--cc-primary); font: inherit; font-weight: 600; text-decoration: underline;
}
.cc-modal-more { margin: 0 0 16px; color: var(--cc-muted); font-size: 14px; }

/* category rows */
.cc-cat { border: 1px solid var(--cc-border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.cc-cat-toggle {
	display: flex; align-items: center; gap: 10px;
	background: none; border: 0; cursor: pointer; font: inherit;
	color: var(--cc-text); font-weight: 600; flex: 1; text-align: left;
}
.cc-caret {
	width: 8px; height: 8px; border-right: 2px solid var(--cc-muted); border-bottom: 2px solid var(--cc-muted);
	transform: rotate(-45deg); transition: transform .18s ease; flex-shrink: 0;
}
.cc-cat.is-open .cc-caret { transform: rotate(45deg); }
.cc-cat-name { font-size: 15px; }
.cc-cat-desc { max-height: 0; overflow: hidden; padding: 0 14px; color: var(--cc-muted); font-size: 13.5px; transition: max-height .2s ease, padding .2s ease; }
.cc-cat.is-open .cc-cat-desc { max-height: 360px; padding: 0 14px 14px; }

.cc-always { font-size: 12.5px; color: var(--cc-primary); font-weight: 600; margin-right: 8px; }

/* toggle switch */
.cc-switch { position: relative; display: inline-block; width: 44px; height: 26px; flex-shrink: 0; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider {
	position: absolute; inset: 0; cursor: pointer;
	background: #cfcfd4; border-radius: 26px; transition: background .18s ease;
}
.cc-slider::before {
	content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
	background: #fff; border-radius: 50%; transition: transform .18s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.cc-switch input:checked + .cc-slider { background: var(--cc-primary); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(18px); }
.cc-switch.is-locked .cc-slider { background: var(--cc-primary); opacity: .55; cursor: not-allowed; }

.cc-modal-actions {
	display: flex; flex-wrap: wrap; gap: 10px;
	padding: 16px 22px; border-top: 1px solid var(--cc-border);
}

/* ----------------------------------------------------------------- reopen */

.cc-reopen {
	position: fixed; z-index: 2147482000;
	width: 48px; height: 48px; border-radius: 50%;
	background: var(--cc-primary); color: #fff;
	border: 0; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
	transition: transform .15s ease, filter .15s ease;
}
.cc-reopen:hover { transform: translateY(-2px); filter: brightness(.95); }
.cc-reopen-bottom-left { left: 18px; bottom: 18px; }
.cc-reopen-bottom-right { right: 18px; bottom: 18px; }
/* Don't overlap the banner: when the banner is visible, nudge the reopen out. */
.cc-banner-visible .cc-reopen { opacity: 0; pointer-events: none; }

.cc-powered { margin-top: 12px; font-size: 11px; color: var(--cc-muted); opacity: .8; text-align: right; }

.cc-footer-reopen { text-align: center; padding: 8px 0; font-size: 13px; }
.cc-footer-reopen a { color: inherit; cursor: pointer; }

/* ----------------------------------------------------------------- mobile */

@media (max-width: 600px) {
	.cc-banner {
		left: 12px !important; right: 12px !important; bottom: 12px !important;
		width: auto; max-width: none;
	}
	.cc-pos-center .cc-banner { top: auto; transform: none; }
	.cc-root.cc-banner-visible.cc-pos-center .cc-banner { transform: none; }
	.cc-actions { flex-direction: column; }
	.cc-pos-bottom-bar .cc-banner { flex-direction: column; align-items: stretch; }
	.cc-pos-bottom-bar .cc-actions { flex-wrap: wrap; }
	.cc-modal-actions { flex-direction: column; }
	.cc-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.cc-banner, .cc-modal, .cc-modal-overlay, .cc-reopen, .cc-caret, .cc-slider, .cc-slider::before { transition: none !important; }
}
