/**
 * 198hr-fenoliga-cijene — front end.
 */

/* Vehicle price lines ([198hrfenoligacijene_automobil]): additional price and,
 * during a sale, the lowest price of the 30 days before the sale. */
.hr198fnl-automobil-cijene {
	display: block;
	margin: 0.25em 0 0;
	line-height: 1.4;
}

.hr198fnl-automobil-cijene .hr198fnl-legal {
	display: block;
	font-size: 0.9em;
	font-weight: 400;
}

.hr198fnl-automobil-cijene del {
	opacity: 0.6;
}

.hr198fnl-automobil-cijene ins {
	background: none;
	text-decoration: none;
}

p.hr198fnl-automobil {
	margin: 0 0 1em;
}

/* Public price list ([198hrfenoligacijene_cjenik]) */
.hr198fenoligacijene-pricelist__archive {
	width: 100%;
	border-collapse: collapse;
}

.hr198fenoligacijene-pricelist__archive th,
.hr198fenoligacijene-pricelist__archive td {
	padding: 6px 8px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	text-align: left;
}

.hr198fenoligacijene-pricelist__object,
.hr198fenoligacijene-pricelist__note {
	opacity: 0.8;
	font-size: 0.9em;
}

/*
 * Price lists entered in the admin: [198hrfenoligacijene_cjenik id="…"].
 * Colours come from the price list settings (CSS custom vehicles).
 */
.hr198fnl-cjenik {
	--hr198fnl-accent: #333333;
	--hr198fnl-header-text: #ffffff;
	margin: 0 0 1.5em;
}

.hr198fnl-cjenik__title {
	margin: 0 0 0.75em;
}

/* Item names with a link (the "Link" field of the item). */
.hr198fnl-cjenik a.hr198fnl-cjenik__link,
.hr198fnl-cjenik a.hr198fnl-cjenik__link:visited {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	text-decoration-color: currentColor;
	text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}

.hr198fnl-cjenik a.hr198fnl-cjenik__link:hover,
.hr198fnl-cjenik a.hr198fnl-cjenik__link:focus-visible {
	text-decoration-color: currentColor;
}

.hr198fnl-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hr198fnl-amount {
	white-space: nowrap;
}

.hr198fnl-legal {
	display: block;
	font-size: var(--hr198fnl-legal-size, 0.8em);
	font-weight: 400;
	line-height: 1.4;
	color: var(--hr198fnl-legal-color, inherit);
	white-space: normal;
}

/* Menu template */
.hr198fnl-menu {
	display: grid;
	gap: 1.6em;
}

.hr198fnl-cjenik--cols-2 .hr198fnl-menu {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 3em;
}

.hr198fnl-menu__group {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25em;
	align-items: center;
}

.hr198fnl-menu__group.has-image {
	grid-template-columns: 100px minmax(0, 1fr);
}

.hr198fnl-menu__image img {
	display: block;
	width: 100px;
	max-width: 100%;
	height: 100px;
	object-fit: cover;
}

.hr198fnl-cjenik--img-round .hr198fnl-menu__image img {
	border-radius: 50%;
}

.hr198fnl-cjenik--img-square .hr198fnl-menu__image img {
	border-radius: 6px;
}

.hr198fnl-menu__body {
	min-width: 0;
	/* Space left of the item names and right of the prices (and of the lines below them). */
	padding: 0 var(--hr198fnl-menu-gutter, 20px);
}

.hr198fnl-menu__item + .hr198fnl-menu__item {
	margin-top: 0.25em;
}

.hr198fnl-menu__line {
	/* One row: a long name wraps inside its column, the dotted line and the
	 * price stay next to its last line. */
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-end;
	gap: 0 0.75em;
	font-size: 1.25em;
	font-weight: 600;
	line-height: 1.3;
}

.hr198fnl-menu__name {
	/* As wide as the name, so the dotted line starts right after it. */
	flex: 0 1 auto;
	min-width: 0;
	overflow-wrap: break-word;
}

.hr198fnl-menu__dots {
	/* Only the space that is left over; never narrower than 1.5em. */
	flex: 1 1 0;
	min-width: 1.5em;
	border-bottom: 1px dotted currentColor;
	opacity: 0.6;
	transform: translateY(-0.3em);
}

.hr198fnl-menu__price {
	flex: none;
	margin-left: auto;
	text-align: right;
	white-space: nowrap;
}

.hr198fnl-menu__price del,
.hr198fnl-table__price del {
	margin-right: 0.25em;
	font-weight: 400;
	opacity: 0.6;
}

.hr198fnl-menu__price ins,
.hr198fnl-table__price ins {
	background: none;
	text-decoration: none;
}

.hr198fnl-menu__legal {
	margin-top: 0.15em;
	text-align: right;
}

/* Section headings inside a price list ("Hrana", "Pića", "Ostalo"). */
.hr198fnl-menu__section {
	grid-column: 1 / -1;
	margin-top: 0.6em;
	padding: 0 var(--hr198fnl-menu-gutter, 20px);
}

.hr198fnl-menu__section:first-child {
	margin-top: 0;
}

.hr198fnl-cjenik .hr198fnl-menu__section-title {
	margin: 0;
	font-size: 1.5em;
	line-height: 1.25;
	font-weight: 700;
}

.hr198fnl-menu__section-desc {
	margin: 0.3em 0 0;
	line-height: 1.5;
	opacity: 0.75;
}

.hr198fnl-menu__desc {
	margin: 0.5em 0 0;
	line-height: 1.6;
	opacity: 0.75;
}

/* Table template */
.hr198fnl-cjenik__note {
	margin: 0.5em 0 0;
	font-size: 0.85em;
	opacity: 0.75;
}

.hr198fnl-table-wrap {
	max-width: 100%;
	overflow-x: auto;
}

.hr198fnl-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	border: 0;
}

.hr198fnl-table thead th {
	padding: 0.9em 1.25em;
	border: 0;
	background: var(--hr198fnl-accent);
	color: var(--hr198fnl-header-text);
	font-weight: 600;
	text-align: left;
}

.hr198fnl-table td {
	padding: 0.95em 1.25em;
	border: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	background: transparent;
	vertical-align: top;
}

.hr198fnl-table tbody tr:nth-child(even) td {
	background: rgba(0, 0, 0, 0.03);
}

.hr198fnl-table tr.hr198fnl-table__section th {
	padding: 1.2em 1.25em 0.5em;
	border: 0;
	border-bottom: 2px solid var(--hr198fnl-accent);
	background: transparent;
	color: inherit;
	font-size: 1.1em;
	font-weight: 700;
	text-align: left;
}

.hr198fnl-table tbody tr.hr198fnl-table__section:first-child th {
	padding-top: 0.8em;
}

.hr198fnl-table__section-desc {
	display: block;
	margin-top: 0.2em;
	font-size: 0.85em;
	font-weight: 400;
	opacity: 0.75;
}

.hr198fnl-table th.hr198fnl-table__price,
.hr198fnl-table td.hr198fnl-table__price {
	width: 1%;
	text-align: right;
	white-space: nowrap;
}

.hr198fnl-table td.hr198fnl-table__price .hr198fnl-legal {
	white-space: nowrap;
}

.hr198fnl-table tr.is-linked td.hr198fnl-table__name {
	padding-left: 2.25em;
}

.hr198fnl-table__desc {
	display: block;
	margin-top: 0.2em;
	font-size: 0.85em;
	opacity: 0.75;
}

.hr198fnl-stavka .hr198fnl-legal {
	margin-top: 0.2em;
}

@media (max-width: 782px) {
	.hr198fnl-cjenik--cols-2 .hr198fnl-menu {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Phones: the image above, then name, dotted line and price in one row. */
@media (max-width: 600px) {
	.hr198fnl-menu__group.has-image {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.75em;
		align-items: start;
	}

	.hr198fnl-menu__image {
		padding: 0 var(--hr198fnl-menu-gutter, 20px);
	}

	.hr198fnl-menu__image img {
		width: 80px;
		height: 80px;
	}
}

@media (max-width: 480px) {
	.hr198fnl-menu__line {
		font-size: 1.1em;
	}

	.hr198fnl-table td,
	.hr198fnl-table thead th {
		padding: 0.75em 0.8em;
	}

	.hr198fnl-table th.hr198fnl-table__price,
	.hr198fnl-table td.hr198fnl-table__price,
	.hr198fnl-table td.hr198fnl-table__price .hr198fnl-legal,
	.hr198fnl-table td.hr198fnl-table__price .hr198fnl-amount {
		white-space: normal;
	}

	.hr198fnl-table td.hr198fnl-table__price {
		width: 40%;
	}
}
