/* Kreiss — sīkdatņu josla (krāsas no kreiss.lv: #E02625, teksts #474647) */
#kc-root,
.kc-ph {
	--kc-accent: #e02625;
	--kc-accent-dark: #b81d1c;
	--kc-text: #474647;
	--kc-muted: #6b6a6b;
	--kc-line: #e3e5e8;
	--kc-bg: #fff;
	font-family: "Open Sans", Arial, sans-serif;
	color: var(--kc-text);
	line-height: 1.5;
}
#kc-root [hidden] { display: none !important; }
html.kc-lock { overflow: hidden; }

.kc-banner {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 2147483000;
	box-sizing: border-box;
	width: 460px;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 24px;
	background: var(--kc-bg);
	border-radius: 6px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
}
.kc-banner__title { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #252525; }
.kc-banner__text { margin: 0 0 18px; font-size: 14px; }
#kc-root a { color: var(--kc-accent); text-decoration: underline; }

.kc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.kc-actions .kc-btn { flex: 1 1 auto; }
.kc-btn {
	box-sizing: border-box;
	min-height: 44px;
	padding: 10px 16px;
	border: 2px solid var(--kc-accent);
	border-radius: 3px;
	font: 600 14px/1.2 "Open Sans", Arial, sans-serif;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.kc-btn--primary { background: var(--kc-accent); color: #fff; }
.kc-btn--primary:hover { background: var(--kc-accent-dark); border-color: var(--kc-accent-dark); }
.kc-btn--ghost { background: #fff; color: var(--kc-accent); }
.kc-btn--ghost:hover { background: #fdf1f1; }
.kc-btn:focus-visible, .kc-x:focus-visible, .kc-fab:focus-visible, .kc-switch input:focus-visible + span, .kc-cat__list summary:focus-visible {
	outline: 3px solid #1a73e8;
	outline-offset: 2px;
}

.kc-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(20, 20, 20, .55);
}
.kc-modal__box {
	display: flex;
	flex-direction: column;
	width: 640px;
	max-width: 100%;
	max-height: calc(100vh - 32px);
	background: var(--kc-bg);
	border-radius: 6px;
	box-shadow: 0 12px 48px rgba(0, 0, 0, .25);
	outline: none;
}
.kc-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--kc-line); }
.kc-modal__title { margin: 0; font-size: 20px; font-weight: 700; color: #252525; }
.kc-x { width: 40px; height: 40px; border: 0; border-radius: 3px; background: none; color: var(--kc-text); font-size: 28px; line-height: 1; cursor: pointer; }
.kc-x:hover { background: #f2f3f5; }
.kc-modal__body { overflow-y: auto; padding: 8px 24px 16px; }
.kc-modal__intro { margin: 8px 0 12px; font-size: 14px; }
.kc-modal__foot { padding: 16px 24px; border-top: 1px solid var(--kc-line); }

.kc-cat { padding: 14px 0; border-top: 1px solid var(--kc-line); }
.kc-cat:first-of-type { border-top: 0; }
.kc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kc-cat__name { margin: 0; font-size: 16px; font-weight: 700; color: #252525; }
.kc-cat__always { font-size: 13px; font-weight: 600; color: #1e7b34; white-space: nowrap; }
.kc-cat__desc, .kc-cat__none { margin: 6px 0 0; font-size: 14px; }
.kc-cat__none { color: var(--kc-muted); font-style: italic; }
.kc-cat__list { margin-top: 8px; font-size: 13px; }
.kc-cat__list summary { cursor: pointer; color: var(--kc-accent); font-weight: 600; }
.kc-cat__list table { width: 100%; margin-top: 8px; border-collapse: collapse; }
.kc-cat__list th, .kc-cat__list td { padding: 6px 8px; border: 1px solid var(--kc-line); text-align: left; vertical-align: top; }
.kc-cat__list th { background: #f6f7f8; font-weight: 600; }

.kc-switch { position: relative; flex: none; width: 46px; height: 26px; }
.kc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.kc-switch span { position: absolute; inset: 0; border-radius: 13px; background: #b9bcc1; transition: background-color .15s; }
.kc-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.kc-switch input:checked + span { background: var(--kc-accent); }
.kc-switch input:checked + span::after { transform: translateX(20px); }

.kc-fab {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147482999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--kc-accent);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
	cursor: pointer;
}
.kc-fab:hover { background: #fdf1f1; }

/* iegultās kartes / video vietturis */
.kc-embed { position: relative; width: 100%; height: 100%; min-height: 260px; }
.kc-embed iframe:not([src]) { visibility: hidden; }
.kc-ph {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	padding: 20px;
	text-align: center;
	background: #eef0f2 repeating-linear-gradient(45deg, #e6e8eb 0 2px, transparent 2px 22px);
}
.kc-ph p { margin: 0; max-width: 460px; font-size: 14px; }
.kc-ph .kc-ph__note { font-size: 12px; color: var(--kc-muted); }
.kc-ph .kc-ph__link { color: var(--kc-accent); font-weight: 600; text-decoration: underline; font-size: 14px; }
.kc-ph .kc-btn { flex: none; }

@media (max-width: 600px) {
	.kc-banner { left: 0; right: 0; bottom: 0; width: auto; max-width: none; border-radius: 6px 6px 0 0; padding: 18px 16px; }
	.kc-actions .kc-btn { flex: 1 1 100%; }
	.kc-modal { padding: 0; align-items: flex-end; }
	.kc-modal__box { max-height: 92vh; border-radius: 6px 6px 0 0; }
	.kc-modal__head, .kc-modal__foot { padding: 14px 16px; }
	.kc-modal__body { padding: 4px 16px 12px; }
	.kc-cat__list th:nth-child(3), .kc-cat__list td:nth-child(3) { white-space: nowrap; }
}
