/* Price list rendered by the [bullfit_cjenik] shortcode. Inherits the theme's fonts and text colour. */

/* The theme's "transparent" header is positioned over the top of the content. The home page is built for that,
   a plain page is not: its title and first lines ended up behind the header. Keep the header in the normal flow here. */
.ast-theme-transparent-header.bf-has-cjenik #masthead {
	position: relative;
}

.bf-cjenik {
	--bf-accent: #f34e3a;
	--bf-line: rgba(128, 128, 128, 0.3);
	max-width: 860px;
	margin-inline: auto;
}

.bf-cjenik__intro {
	margin-bottom: 2em;
}

.bf-cjenik__notice {
	padding: 0.75em 1em;
	border-left: 4px solid var(--bf-accent);
	background: rgba(243, 78, 58, 0.08);
}

.bf-cjenik__obrt {
	margin-bottom: 3em;
}

.bf-cjenik__naziv {
	margin-bottom: 0.15em;
}

.bf-cjenik__meta {
	margin-bottom: 1.25em;
	font-size: 0.9em;
	opacity: 0.8;
}

.bf-cjenik__wrap {
	overflow-x: auto;
}

.bf-cjenik__table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
	margin: 0 0 1em;
}

.bf-cjenik__table th,
.bf-cjenik__table td {
	padding: 0.75em 0.9em;
	border: 0;
	border-bottom: 1px solid var(--bf-line);
	text-align: left;
	vertical-align: top;
}

.bf-cjenik__table thead th {
	border-bottom: 2px solid var(--bf-accent);
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.bf-cjenik__table thead small {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
}

.bf-cjenik__table tbody th {
	font-weight: 500;
}

.bf-cjenik__table td,
.bf-cjenik__table thead th:not(:first-child) {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.bf-cjenik__tag {
	display: inline-block;
	margin-left: 0.4em;
	padding: 0.05em 0.5em;
	border-radius: 999px;
	background: var(--bf-accent);
	color: #fff;
	font-size: 0.75em;
	vertical-align: middle;
}

.bf-cjenik__date {
	font-size: 0.85em;
	opacity: 0.75;
}

.bf-cjenik__table td .bf-cjenik__date {
	display: block;
}

.bf-cjenik__files,
.bf-cjenik__archive {
	font-size: 0.9em;
}

.bf-cjenik__archive summary {
	cursor: pointer;
}

.bf-cjenik__archive ul {
	margin: 0.5em 0 0 1.2em;
}

.bf-cjenik__archive a {
	overflow-wrap: anywhere;
}

/* Phones: one service per block, each price labelled. */
@media (max-width: 600px) {
	.bf-cjenik__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.bf-cjenik__table,
	.bf-cjenik__table tbody,
	.bf-cjenik__table tr,
	.bf-cjenik__table th,
	.bf-cjenik__table td {
		display: block;
	}

	.bf-cjenik__table tr {
		padding: 0.75em 0;
		border-bottom: 1px solid var(--bf-line);
	}

	.bf-cjenik__table tbody th,
	.bf-cjenik__table td {
		padding: 0.15em 0;
		border: 0;
	}

	.bf-cjenik__table td {
		display: flex;
		justify-content: space-between;
		gap: 1em;
		text-align: right;
		white-space: normal;
	}

	.bf-cjenik__table td::before {
		content: attr(data-label);
		opacity: 0.75;
		text-align: left;
	}

	.bf-cjenik__table td .bf-cjenik__date {
		display: inline;
	}
}
