/* Kreditkompass – Bolåneräntor (frontend)
   Brand: navy #185FA5, green #1D9E75, light blue #E6F1FB, anthracite #2C2C2A
   Note: font-family intentionally NOT set – inherits theme typography. */

.kk-bolan-table-wrap,
.kk-bolan-graph {
	--kk-navy: #185FA5;
	--kk-green: #1D9E75;
	--kk-lightblue: #E6F1FB;
	--kk-anthracite: #2C2C2A;
	color: var(--kk-anthracite);
	margin: 1.5rem 0;
}

.kk-bolan-heading {
	color: var(--kk-navy);
	margin: 0 0 .35em;
}

.kk-bolan-updated {
	margin: 0 0 1rem;
	font-size: .95rem;
	color: #5a5a57;
}
.kk-bolan-updated strong { color: var(--kk-anthracite); }

/* ---------- Table ---------- */
.kk-bolan-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.kk-bolan-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 640px;
	font-variant-numeric: tabular-nums;
}
.kk-bolan-table thead th {
	background: var(--kk-navy);
	color: #fff;
	text-align: right;
	padding: .7rem .8rem;
	font-weight: 600;
	white-space: nowrap;
}
.kk-bolan-table thead th.kk-bolan-th-bank { text-align: left; }
.kk-bolan-table tbody td,
.kk-bolan-table tbody th {
	padding: .65rem .8rem;
	text-align: right;
	border-bottom: 1px solid #e7ecf2;
	white-space: nowrap;
}
.kk-bolan-table tbody tr:nth-child(even) td,
.kk-bolan-table tbody tr:nth-child(even) th { background: var(--kk-lightblue); }
.kk-bolan-bankcell {
	text-align: left !important;
	font-weight: 600;
}
.kk-bolan-bankcell a { color: var(--kk-navy); text-decoration: none; }
.kk-bolan-bankcell a:hover { text-decoration: underline; }
.kk-bolan-dot,
.kk-bolan-legend-dot {
	display: inline-block;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	margin-right: .5rem;
	vertical-align: baseline;
}
.kk-bolan-rate { font-weight: 600; }
.kk-bolan-na { color: #aab0b6; }
.kk-bolan-badge {
	display: inline-block;
	font-size: .68rem;
	font-weight: 700;
	line-height: 1;
	padding: .2rem .4rem;
	border-radius: 999px;
	margin-left: .4rem;
	vertical-align: middle;
	text-transform: uppercase;
	letter-spacing: .02em;
}
.kk-bolan-badge--low { background: var(--kk-green); color: #fff; }
.kk-bolan-badge--high { background: #f0e2d2; color: #8a5a1a; }

.kk-bolan-disclaimer {
	margin-top: .9rem;
	font-size: .82rem;
	color: #6c6c69;
}
.kk-bolan-empty {
	padding: 1.25rem;
	background: var(--kk-lightblue);
	border-radius: 10px;
	color: var(--kk-navy);
}

/* ---------- Graph ---------- */
.kk-bolan-graph-intro { margin: 0 0 1rem; color: #4a4a47; }
.kk-bolan-graph-status {
	padding: 1.5rem;
	text-align: center;
	color: #6c6c69;
	background: var(--kk-lightblue);
	border-radius: 10px;
}

.kk-bolan-controls {
	display: grid;
	gap: 1rem;
	margin-bottom: 1rem;
}
@media (min-width: 760px) {
	.kk-bolan-controls { grid-template-columns: 1fr; }
}

.kk-bolan-fieldset {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: .85rem 1rem 1rem;
	margin: 0;
}
.kk-bolan-fieldset legend {
	font-weight: 700;
	color: var(--kk-navy);
	padding: 0 .4rem;
}
.kk-bolan-legend-row {
	display: flex;
	align-items: center;
	gap: .75rem;
	flex-wrap: wrap;
}
.kk-bolan-linkbtn {
	background: none;
	border: none;
	color: var(--kk-navy);
	cursor: pointer;
	font-size: .85rem;
	text-decoration: underline;
	padding: 0;
}
.kk-bolan-linkbtn:hover { color: var(--kk-green); }

.kk-bolan-radio-row,
.kk-bolan-check-row {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem .7rem;
	margin-top: .6rem;
}

/* Term pills */
.kk-bolan-pill {
	display: inline-flex;
	align-items: center;
	border: 1.5px solid #cfd9e6;
	border-radius: 999px;
	padding: .3rem .8rem;
	cursor: pointer;
	user-select: none;
	font-size: .9rem;
	transition: all .15s ease;
}
.kk-bolan-pill input { position: absolute; opacity: 0; pointer-events: none; }
.kk-bolan-pill:has(input:checked) {
	background: var(--kk-navy);
	border-color: var(--kk-navy);
	color: #fff;
}
.kk-bolan-pill:hover { border-color: var(--kk-navy); }

/* Bank checkboxes */
.kk-bolan-check {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .25rem .55rem;
	border-radius: 8px;
	cursor: pointer;
	font-size: .9rem;
	border: 1px solid transparent;
}
.kk-bolan-check:hover { background: var(--kk-lightblue); }
.kk-bolan-check input { margin: 0; }
.kk-bolan-check--avg { font-weight: 600; }

.kk-bolan-canvas-wrap { position: relative; width: 100%; }
.kk-bolan-nodata {
	padding: 2rem 1rem;
	text-align: center;
	color: #6c6c69;
	background: var(--kk-lightblue);
	border-radius: 10px;
}

/* ---------- Dual-range slider ---------- */
.kk-bolan-slider { margin-top: 1.25rem; }
.kk-bolan-slider-heading {
	font-weight: 700;
	color: var(--kk-navy);
	margin-bottom: .35rem;
}
.kk-bolan-slider-labels {
	display: flex;
	justify-content: space-between;
	font-size: .85rem;
	color: #4a4a47;
	margin-bottom: .4rem;
}
.kk-bolan-slider-track {
	position: relative;
	height: 30px;
}
.kk-bolan-slider-track::before {
	content: "";
	position: absolute;
	top: 13px;
	left: 0;
	right: 0;
	height: 4px;
	background: #d7e0ec;
	border-radius: 4px;
}
.kk-bolan-slider-fill {
	position: absolute;
	top: 13px;
	height: 4px;
	background: var(--kk-green);
	border-radius: 4px;
}
.kk-bolan-range {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 30px;
	margin: 0;
	background: none;
	pointer-events: none;
}
.kk-bolan-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--kk-navy);
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0,0,0,.2);
	margin-top: 0;
}
.kk-bolan-range::-moz-range-thumb {
	pointer-events: auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--kk-navy);
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.kk-bolan-range::-webkit-slider-runnable-track { background: none; }
.kk-bolan-range::-moz-range-track { background: none; }
.kk-bolan-range:focus { outline: none; }
.kk-bolan-range:focus::-webkit-slider-thumb { border-color: var(--kk-green); }

/* Editor placeholder (graph block in Gutenberg) */
.kk-bolan-editor-placeholder {
	border: 1px dashed var(--kk-navy);
	background: var(--kk-lightblue);
	border-radius: 10px;
	padding: 40px 24px;
	text-align: center;
	color: var(--kk-anthracite);
}
.kk-bolan-editor-ph-inner {
	max-width: 420px;
	margin: 0 auto;
}
.kk-bolan-editor-ph-inner .dashicons {
	font-size: 40px;
	width: 40px;
	height: 40px;
	color: var(--kk-navy);
	margin-bottom: 8px;
}
.kk-bolan-editor-ph-inner strong {
	display: block;
	font-size: 16px;
	margin-bottom: 4px;
}
.kk-bolan-editor-ph-inner span.kk-bolan-ph-note {
	display: block;
	font-size: 13px;
	opacity: .75;
}

/* Table bank filter */
.kk-bolan-table-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 0 0 14px;
	padding: 12px 14px;
	background: var(--kk-lightblue);
	border-radius: 10px;
}
.kk-bolan-filter-label {
	font-weight: 600;
	color: var(--kk-navy);
	margin-right: 4px;
}
.kk-bolan-table-filter .kk-bolan-check {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 14px;
}
.kk-bolan-table-filter .kk-bolan-check input { margin: 0; }

/* Editor hints (block settings) */
.kk-bolan-editor-hint {
	font-size: 12px;
	color: #50575e;
	margin: 0 0 10px;
}

/* Editor: bank panel labels/separators */
.kk-bolan-editor-label {
	font-weight: 600;
	color: #1e1e1e;
	margin-bottom: 2px;
}
.kk-bolan-editor-sep {
	border: 0;
	border-top: 1px solid #e0e0e0;
	margin: 14px 0;
}
