/* Kavopija – Sidrena cijena i cjenik */

.ksc-anchor {
	display: block;
	margin: .35em 0 .75em;
	font-size: .875em;
	line-height: 1.45;
	opacity: .95;
}

.ksc-anchor--hidden {
	display: none;
}

.ksc-anchor__label {
	font-weight: 600;
}

.ksc-anchor__date {
	font-weight: 400;
	white-space: nowrap;
}

.ksc-anchor__value {
	white-space: nowrap;
}

/* Tekst ostaje u DOM-u (za pretraživače i čitače), prikazuje se u popupu. */
.ksc-anchor__tip {
	display: none;
}

.ksc-anchor__info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.2em;
	height: 1.2em;
	margin-left: .3em;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: .8em;
	font-style: italic;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	vertical-align: middle;
}

.ksc-anchor__info:hover,
.ksc-anchor__info:focus {
	opacity: .7;
}

.ksc-anchor--loop {
	font-size: .8em;
	margin: .2em 0 .5em;
}

/* Blokovi na naslovnici nasljeđuju bijeli tekst – boja se zadaje izričito. */
.ksc-anchor.ksc-anchor--loop,
.ksc-anchor.ksc-anchor--loop .ksc-anchor__label,
.ksc-anchor.ksc-anchor--loop .ksc-anchor__value,
.ksc-anchor.ksc-anchor--loop .ksc-anchor__value *,
.ksc-anchor.ksc-anchor--loop .ksc-anchor__info {
	color: var(--wp--preset--color--gray-700, #3d4f58);
}

/* Popup s grafikonom ------------------------------------------------- */

.ksc-modal[hidden] {
	display: none;
}

.ksc-modal {
	position: fixed;
	inset: 0;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.ksc-modal__backdrop {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, .5);
}

.ksc-modal__box {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 18px 20px 20px;
	border-radius: 10px;
	background: #fff;
	color: #1f2328;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
}

.ksc-modal__close {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	opacity: .6;
}

.ksc-modal__close:hover {
	opacity: 1;
}

.ksc-modal__title {
	margin: 0 28px .1em 0;
	font-size: 16px;
	line-height: 1.3;
}

.ksc-modal__sub {
	margin: 0 0 .4em;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
	opacity: .6;
}

.ksc-modal__chart {
	margin: 0 0 .6em;
}

.ksc-chart {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.ksc-chart__grid {
	stroke: rgba(0, 0, 0, .12);
	stroke-width: 1;
}

.ksc-chart__line {
	fill: none;
	stroke: #1b6ac9;
	stroke-width: 2;
	stroke-linejoin: round;
}

.ksc-chart__anchor {
	stroke: #b3261e;
	stroke-width: 1.5;
	stroke-dasharray: 5 4;
}

.ksc-chart__dot {
	fill: #1b6ac9;
}

.ksc-chart__ylab,
.ksc-chart__xlab {
	fill: rgba(0, 0, 0, .55);
	font-size: 10px;
	font-family: inherit;
}

.ksc-chart__empty {
	margin: 0 0 .6em;
	padding: 1.2em .8em;
	border: 1px dashed rgba(0, 0, 0, .2);
	border-radius: 6px;
	text-align: center;
	font-size: 13px;
	opacity: .7;
}

.ksc-modal__legend {
	margin: 0 0 .8em;
	padding: 0;
	list-style: none;
	font-size: 13px;
}

.ksc-modal__legend li {
	margin: 0 0 .2em;
}

.ksc-key {
	display: inline-block;
	width: 14px;
	height: 0;
	margin-right: .5em;
	vertical-align: middle;
	border-top-width: 2px;
	border-top-style: solid;
}

.ksc-key--anchor {
	border-top-style: dashed;
	border-top-color: #b3261e;
}

.ksc-key--line {
	border-top-color: #1b6ac9;
}

.ksc-modal__count {
	opacity: .65;
}

.ksc-modal__text {
	margin: 0 0 .7em;
	font-size: 12.5px;
	opacity: .85;
}

.ksc-modal__link {
	margin: 0;
	font-size: 13px;
}

body.ksc-modal-open {
	overflow: hidden;
}

/* Link u footeru ----------------------------------------------------- */

.ksc-footer-link {
	padding: 10px 16px;
	text-align: center;
	font-size: 13px;
}

.ksc-footer-link__note {
	opacity: .7;
}

/* Cjenik ------------------------------------------------------------- */

.ksc-cjenik {
	margin: 0 0 2em;
}

.ksc-cjenik__h {
	margin: 1.4em 0 .5em;
	font-size: 1.15em;
}

.ksc-cjenik__intro {
	padding: 1em 1.1em;
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: 8px;
	background: rgba(0, 0, 0, .02);
	font-size: .95em;
}

.ksc-cjenik__intro p {
	margin: 0 0 .6em;
}

.ksc-cjenik__intro p:last-child {
	margin-bottom: 0;
}

.ksc-cjenik__note {
	font-size: .9em;
	opacity: .8;
}

.ksc-cjenik__name {
	font-size: 1.05em;
}

.ksc-cjenik__meta {
	font-size: .9em;
	opacity: .7;
}

.ksc-cjenik__file {
	display: flex;
	flex-wrap: wrap;
	gap: .6em;
	align-items: center;
	margin: 0;
}

a.ksc-btn {
	display: inline-block;
	padding: .5em .9em;
	border: 1px solid currentColor;
	border-radius: 6px;
	text-decoration: none;
	font-size: .9em;
	line-height: 1.2;
}

.ksc-archive-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: 8px;
	overflow: hidden;
}

.ksc-archive-list li {
	display: flex;
	flex-wrap: wrap;
	gap: .6em;
	align-items: center;
	margin: 0;
	padding: .55em .8em;
	border-bottom: 1px solid rgba(0, 0, 0, .07);
	font-size: .95em;
}

.ksc-archive-list li:last-child {
	border-bottom: 0;
}

.ksc-cjenik__search {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
	align-items: center;
	margin: 0 0 1em;
}

.ksc-cjenik__search input[type="search"] {
	flex: 1 1 260px;
	min-width: 0;
	padding: .55em .7em;
}

.ksc-table-wrap {
	overflow-x: auto;
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: 8px;
}

table.ksc-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: .92em;
}

table.ksc-table th,
table.ksc-table td {
	padding: .6em .7em;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
	text-align: left;
	vertical-align: top;
}

table.ksc-table thead th {
	background: rgba(0, 0, 0, .04);
	font-weight: 700;
	white-space: nowrap;
}

table.ksc-table tbody tr:last-child td {
	border-bottom: 0;
}

table.ksc-table .ksc-num {
	text-align: right;
	white-space: nowrap;
}

table.ksc-table .ksc-num--anchor {
	font-weight: 600;
}

.ksc-badge {
	display: inline-block;
	padding: .1em .45em;
	border-radius: 4px;
	background: rgba(0, 0, 0, .08);
	font-size: .8em;
	text-transform: uppercase;
	letter-spacing: .02em;
}

.ksc-up {
	color: #b3261e;
	font-weight: 600;
}

.ksc-down {
	color: #1b7f3b;
	font-weight: 600;
}

.ksc-dash {
	opacity: .5;
}

.ksc-cjenik__toggle,
.ksc-cjenik__pagination {
	margin-top: 1em;
	font-size: .9em;
}

.ksc-cjenik__pagination .page-numbers {
	display: inline-block;
	padding: .35em .7em;
	margin: 0 .15em .3em 0;
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 4px;
	text-decoration: none;
	font-size: .9em;
}

.ksc-cjenik__pagination .page-numbers.current {
	border-color: currentColor;
	font-weight: 700;
}

@media (max-width: 720px) {
	table.ksc-table thead {
		display: none;
	}

	table.ksc-table,
	table.ksc-table tbody,
	table.ksc-table tr,
	table.ksc-table td {
		display: block;
		width: 100%;
	}

	table.ksc-table tr {
		padding: .5em 0;
		border-bottom: 1px solid rgba(0, 0, 0, .12);
	}

	table.ksc-table td {
		display: flex;
		justify-content: space-between;
		gap: 1em;
		border: 0;
		padding: .25em .7em;
		text-align: right;
	}

	table.ksc-table td::before {
		content: attr(data-label);
		flex: 0 0 auto;
		font-weight: 600;
		text-align: left;
		opacity: .75;
	}
}
