/* Weblux Cookie Consent — izoliran od teme; barve iz nastavitev (inline) */

.weblux-cc-root {
	position: fixed;
	z-index: 999999;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	font-weight: 400;
	color: #f0f0f0;
	-webkit-font-smoothing: antialiased;
	isolation: isolate;
	text-align: left;
	direction: ltr;
}

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

/* Plavajoča kartica — spodaj */
.weblux-cc-root.weblux-cc-pos-bottom-left {
	bottom: max(16px, env(safe-area-inset-bottom, 0px));
	left: max(16px, env(safe-area-inset-left, 0px));
	right: auto;
	top: auto;
	width: auto;
	max-width: min(420px, calc(100vw - 28px));
}

.weblux-cc-root.weblux-cc-pos-bottom-center {
	bottom: max(16px, env(safe-area-inset-bottom, 0px));
	left: 50%;
	right: auto;
	top: auto;
	transform: translateX(-50%);
	width: auto;
	max-width: min(640px, calc(100vw - 28px));
}

.weblux-cc-root.weblux-cc-pos-bottom-right {
	bottom: max(16px, env(safe-area-inset-bottom, 0px));
	right: max(16px, env(safe-area-inset-right, 0px));
	left: auto;
	top: auto;
	width: auto;
	max-width: min(420px, calc(100vw - 28px));
}

/* Cel pas zgoraj */
.weblux-cc-root.weblux-cc-pos-top {
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	max-width: none;
	transform: none;
	padding: 12px 16px;
}

/* Modalna kartica */
.weblux-cc-root.weblux-cc-pos-box {
	top: 50%;
	left: 50%;
	right: auto;
	transform: translate(-50%, -50%);
	max-width: min(520px, calc(100vw - 28px));
	width: 100%;
}

.weblux-cc-bar {
	width: 100%;
	padding: 18px 20px;
	border-radius: 14px;
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.06),
		0 10px 40px rgba(0, 0, 0, 0.18),
		0 2px 8px rgba(0, 0, 0, 0.08);
}

.weblux-cc-pos-top .weblux-cc-bar {
	border-radius: 0;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.weblux-cc-pos-box .weblux-cc-bar {
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.08),
		0 20px 60px rgba(0, 0, 0, 0.28);
}

.weblux-cc-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 20px;
	width: 100%;
}

.weblux-cc-pos-top .weblux-cc-inner {
	max-width: 1200px;
	margin: 0 auto;
}

.weblux-cc-text {
	flex: 1 1 220px;
	min-width: 0;
}

.weblux-cc-title {
	display: block;
	margin: 0 0 8px;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.weblux-cc-msg {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	opacity: 0.94;
}

.weblux-cc-msg a {
	text-decoration: underline;
	text-underline-offset: 2px;
	color: inherit;
	opacity: 0.95;
}

.weblux-cc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	align-items: center;
}

.weblux-cc-pos-bottom-center .weblux-cc-actions {
	justify-content: flex-end;
}

.weblux-cc-btn {
	cursor: pointer;
	margin: 0;
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25;
	border: 1px solid transparent;
	padding: 10px 16px;
	border-radius: 8px;
	transition: opacity 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.weblux-cc-btn:hover {
	opacity: 0.94;
	transform: translateY(-1px);
}

.weblux-cc-btn:active {
	transform: translateY(0);
}

.weblux-cc-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.weblux-cc-btn-primary {
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.weblux-cc-btn-ghost {
	background: rgba(255, 255, 255, 0.08);
	border-color: color-mix(in srgb, currentColor 28%, transparent);
	color: inherit;
	backdrop-filter: blur(6px);
}

@supports not (color: color-mix(in srgb, white, black)) {
	.weblux-cc-btn-ghost {
		border-color: rgba(255, 255, 255, 0.28);
	}
}

/* Banner skrit dokler JS ne prikaže soglasja (tema ne sme preglasiti [hidden]) */
div#weblux-cc-root.weblux-cc-root[hidden] {
	display: none !important;
}

@media (max-width: 560px) {
	.weblux-cc-bar {
		padding: 14px 14px;
	}

	.weblux-cc-title {
		font-size: 1rem;
	}

	.weblux-cc-msg {
		font-size: 0.875rem;
		line-height: 1.45;
	}

	.weblux-cc-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.weblux-cc-text {
		flex-basis: auto;
	}

	.weblux-cc-actions {
		justify-content: stretch;
		flex-direction: column;
		width: 100%;
		gap: 10px;
	}

	.weblux-cc-actions .weblux-cc-btn {
		width: 100%;
		min-height: 44px;
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.weblux-cc-root.weblux-cc-pos-bottom-left,
	.weblux-cc-root.weblux-cc-pos-bottom-right {
		left: max(10px, env(safe-area-inset-left, 0px)) !important;
		right: max(10px, env(safe-area-inset-right, 0px)) !important;
		width: auto !important;
		max-width: none !important;
	}

	.weblux-cc-root.weblux-cc-pos-bottom-center {
		left: max(10px, env(safe-area-inset-left, 0px)) !important;
		right: max(10px, env(safe-area-inset-right, 0px)) !important;
		width: auto !important;
		max-width: none !important;
		transform: none !important;
	}

	.weblux-cc-root.weblux-cc-pos-top {
		padding: 10px max(12px, env(safe-area-inset-left, 0px)) 10px max(12px, env(safe-area-inset-right, 0px));
	}

	.weblux-cc-root.weblux-cc-pos-box {
		left: max(10px, env(safe-area-inset-left, 0px)) !important;
		right: max(10px, env(safe-area-inset-right, 0px)) !important;
		top: 50% !important;
		bottom: auto !important;
		transform: translateY(-50%) !important;
		width: auto !important;
		max-width: none !important;
	}
}

.weblux-cc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 1000000;
}

.weblux-cc-modal {
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 1000001;
	background: #fff;
	color: #1a1a1a;
	max-width: min(480px, 100vw - 24px);
	width: 100%;
	border-radius: 12px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
	max-height: min(85vh, 640px);
	display: flex;
	flex-direction: column;
}

.weblux-cc-modal[hidden],
.weblux-cc-overlay[hidden] {
	display: none !important;
}

.weblux-cc-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border-bottom: 1px solid #eee;
}

.weblux-cc-modal-head h2 {
	margin: 0;
	font-size: 1.15rem;
}

.weblux-cc-close {
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 0 4px;
}

.weblux-cc-modal-body {
	padding: 12px 18px;
	overflow-y: auto;
	flex: 1;
}

.weblux-cc-cat {
	margin-bottom: 12px;
}

.weblux-cc-cat label {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	cursor: pointer;
}

.weblux-cc-cat input {
	margin-top: 4px;
	flex-shrink: 0;
}

.weblux-cc-cat strong {
	display: block;
}

.weblux-cc-cat small {
	display: block;
	opacity: 0.8;
	margin-top: 4px;
	font-size: 0.88em;
}

.weblux-cc-modal-actions {
	padding: 12px 18px 18px;
	border-top: 1px solid #eee;
}

@media (max-width: 480px) {
	.weblux-cc-modal {
		left: max(8px, env(safe-area-inset-left, 0px)) !important;
		right: max(8px, env(safe-area-inset-right, 0px)) !important;
		top: max(8px, env(safe-area-inset-top, 0px)) !important;
		bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
		transform: none !important;
		width: auto !important;
		max-width: none !important;
		max-height: none !important;
		height: auto !important;
		min-height: 0;
	}

	.weblux-cc-modal-head {
		padding: 12px 14px;
		flex-shrink: 0;
	}

	.weblux-cc-modal-head h2 {
		font-size: 1.05rem;
		padding-right: 8px;
	}

	.weblux-cc-modal-body {
		padding: 10px 14px;
	}

	.weblux-cc-modal-actions {
		padding: 10px 14px 14px;
		flex-shrink: 0;
	}

	.weblux-cc-modal-actions .weblux-cc-btn {
		width: 100%;
		min-height: 44px;
	}

	.weblux-cc-close {
		min-width: 44px;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
}

/* Tabela shortkode (stran politike) — sodobna kartica */
.weblux-cc-cookie-table {
	--weblux-cc-policy-accent: #4361ee;
	--weblux-cc-policy-accent-soft: rgba(67, 97, 238, 0.08);
	--weblux-cc-policy-border: #e2e8f0;
	--weblux-cc-policy-text: #0f172a;
	--weblux-cc-policy-muted: #64748b;
	--weblux-cc-policy-surface: #f8fafc;
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	color: var(--weblux-cc-policy-text);
}

.weblux-cc-cookie-table .weblux-cc-cookie-policy {
	max-width:100%;
	margin-left: auto;
	margin-right: auto;
}

.weblux-cc-cookie-table .weblux-cc-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
	margin: 0;
	border-radius: 12px;
	border: 1px solid var(--weblux-cc-policy-border);
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
}

.weblux-cc-cookie-table .weblux-cc-table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.weblux-cc-cookie-table .weblux-cc-table th,
.weblux-cc-cookie-table .weblux-cc-table td {
	border: none;
	border-bottom: 1px solid #f1f5f9;
	padding: 14px 18px;
	text-align: left;
	vertical-align: top;
}

.weblux-cc-cookie-table .weblux-cc-table th {
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--weblux-cc-policy-muted);
	border-bottom: 2px solid var(--weblux-cc-policy-border);
}

.weblux-cc-cookie-table .weblux-cc-table tbody tr:hover td {
	background: #fafbfc;
}

.weblux-cc-cookie-table .weblux-cc-table tbody tr:last-child td {
	border-bottom: none;
}

.weblux-cc-cookie-table .weblux-cc-table td:first-child {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: #1e293b;
}

@media (max-width: 640px) {
	.weblux-cc-cookie-table .weblux-cc-table--responsive {
		min-width: 0;
	}

	.weblux-cc-cookie-table .weblux-cc-table--responsive thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.weblux-cc-cookie-table .weblux-cc-table--responsive tbody tr {
		display: block;
		margin-bottom: 14px;
		border: 1px solid var(--weblux-cc-policy-border);
		border-radius: 12px;
		overflow: hidden;
		background: #fff;
		box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
	}

	.weblux-cc-cookie-table .weblux-cc-table--responsive tbody td {
		display: block;
		border: none;
		border-bottom: 1px solid #f1f5f9;
		padding: 12px 14px 12px 42%;
		position: relative;
		text-align: right;
		min-height: 1.25em;
		box-sizing: border-box;
	}

	.weblux-cc-cookie-table .weblux-cc-table--responsive tbody td:last-child {
		border-bottom: none;
	}

	.weblux-cc-cookie-table .weblux-cc-table--responsive tbody td::before {
		content: attr(data-label);
		position: absolute;
		left: 14px;
		top: 12px;
		width: 38%;
		font-weight: 700;
		font-size: 0.75rem;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		color: var(--weblux-cc-policy-muted);
		text-align: left;
		padding-right: 8px;
		box-sizing: border-box;
	}
}

/* Seznam piškotkov (shortkoda) — struktura po kategorijah */
.weblux-cc-cookie-table .weblux-cc-policy-intro {
	margin: 0 0 1.75rem;
	padding: 1.25rem 1.35rem;
	font-size: 1rem;
	line-height: 1.6;
	background: var(--weblux-cc-policy-surface);
	border: 1px solid var(--weblux-cc-policy-border);
	border-radius: 12px;
	border-left: 4px solid var(--weblux-cc-policy-accent);
}

.weblux-cc-cookie-table .weblux-cc-policy-intro p {
	margin: 0 0 0.75rem;
	color: #334155;
}

.weblux-cc-cookie-table .weblux-cc-policy-intro p:last-child {
	margin-bottom: 0;
}

.weblux-cc-cookie-table .weblux-cc-policy-cat {
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
	margin-bottom:24px;
}

.weblux-cc-cookie-table .weblux-cc-policy-cat--other {
	background: linear-gradient(180deg, #fff 0%, var(--weblux-cc-policy-surface) 100%);
}

.weblux-cc-cookie-table .weblux-cc-policy-cat-title {
	margin: 0 0 0.65rem;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--weblux-cc-policy-text);
	letter-spacing: -0.02em;
}

.weblux-cc-cookie-table .weblux-cc-policy-cat--other .weblux-cc-policy-cat-title {
	color: #475569;
}

.weblux-cc-cookie-table .weblux-cc-policy-cat-desc {
	margin: 0 0 1.15rem;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--weblux-cc-policy-muted);
}

.weblux-cc-cookie-table .weblux-cc-policy-cat-desc p {
	margin: 0 0 0.5rem;
}

.weblux-cc-cookie-table .weblux-cc-policy-cat-desc p:last-child {
	margin-bottom: 0;
}

.weblux-cc-cookie-table .weblux-cc-policy-table {
	min-width: 280px;
}

.weblux-cc-note {
	opacity: 0.88;
	font-size: 0.9rem;
}

.weblux-cc-cookie-table .weblux-cc-policy-footer {
	margin-top: 1.5rem;
	padding: 1rem 1.25rem;
	background: var(--weblux-cc-policy-accent-soft);
	border-radius: 10px;
	border: 1px solid rgba(67, 97, 238, 0.15);
}

.weblux-cc-loading {
	margin: 1.25rem 0;
	padding: 1.25rem 1.5rem;
	text-align: center;
	font-size: 0.95rem;
	color: var(--weblux-cc-policy-muted);
	background: var(--weblux-cc-policy-surface);
	border-radius: 12px;
	border: 1px dashed var(--weblux-cc-policy-border);
}

.weblux-cc-cookie-table .weblux-cc-empty {
	margin: 1rem 0;
	padding: 1.25rem 1.5rem;
	border-radius: 12px;
	background: var(--weblux-cc-policy-surface);
	border: 1px solid var(--weblux-cc-policy-border);
	color: var(--weblux-cc-policy-muted);
	font-size: 0.9375rem;
}

/* Plavajoča ikona: ponoven obisk nastavitev (revisit) — !important zaradi Elementor/transform prednikov */
#weblux-cc-revisit.weblux-cc-revisit,
.weblux-cc-revisit {
	position: fixed !important;
	z-index: 2147483000 !important;
	width: 48px;
	height: 48px;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	background: #4361ee;
	color: #fff;
}

/* Dokler ni veljavnega soglasja, mora biti ikona skrita (display:flex zgoraj sicer premaga [hidden] v nekaterih temah) */
#weblux-cc-revisit.weblux-cc-revisit[hidden],
.weblux-cc-revisit[hidden] {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

@media (max-width: 560px) {
	#weblux-cc-revisit.weblux-cc-revisit,
	.weblux-cc-revisit {
		width: 44px;
		height: 44px;
	}

	.weblux-cc-revisit-bl,
	.weblux-cc-revisit-br {
		bottom: max(16px, env(safe-area-inset-bottom, 0px)) !important;
	}

	.weblux-cc-revisit--viewport-top.weblux-cc-revisit-bl,
	.weblux-cc-revisit--viewport-top.weblux-cc-revisit-br {
		top: max(12px, env(safe-area-inset-top, 0px)) !important;
	}
}

.weblux-cc-revisit:hover {
	transform: scale(1.06);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.weblux-cc-revisit:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.weblux-cc-revisit-bl {
	bottom: 20px;
	left: 20px;
}

.weblux-cc-revisit-br {
	bottom: 20px;
	right: 20px;
}

/* Spodaj zaslona */
.weblux-cc-revisit--viewport-bottom.weblux-cc-revisit-bl,
.weblux-cc-revisit--viewport-bottom.weblux-cc-revisit-br {
	bottom: 20px !important;
	top: auto !important;
}

/* Zgoraj zaslona (plavajoče) */
.weblux-cc-revisit--viewport-top.weblux-cc-revisit-bl {
	top: 20px !important;
	bottom: auto !important;
	left: 20px !important;
	right: auto !important;
}

.weblux-cc-revisit--viewport-top.weblux-cc-revisit-br {
	top: 20px !important;
	bottom: auto !important;
	right: 20px !important;
	left: auto !important;
}

.weblux-cc-revisit-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.weblux-cc-revisit-icon svg {
	display: block;
}

.weblux-cc-revisit--custom .weblux-cc-revisit-img {
	display: block;
	max-width: 36px;
	max-height: 36px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.weblux-cc-revisit--transparent-bg.weblux-cc-revisit,
#weblux-cc-revisit.weblux-cc-revisit.weblux-cc-revisit--transparent-bg {
	background: transparent !important;
	color: inherit !important;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}
