/**
 * EU zakonsko jamstvo i GARAN oznake – front-end styles.
 */

:root {
	--elg-blue: #034da2;
	--elg-ink: #1d1d1b;
	--elg-grey: #f1f1f1;
	--elg-border: #d9d9d9;
}

/* ------------------------------------------------------------------ *
 * Legal guarantee notice
 * ------------------------------------------------------------------ */

.elg-notice {
	background: #fff;
	border: 1px solid var(--elg-border);
	color: var(--elg-ink);
	font-size: 15px;
	line-height: 1.5;
	margin: 0 0 1.5em;
	max-width: 900px;
}

.elg-notice p {
	margin: 0 0 0.85em;
}

.elg-notice__header {
	align-items: center;
	background: var(--elg-blue);
	display: flex;
	gap: 18px;
	padding: 14px 20px;
}

.elg-notice__shield {
	flex: 0 0 auto;
	height: auto;
	width: clamp(46px, 7vw, 68px);
}

.elg-notice__title {
	color: #fff;
	font-size: clamp(22px, 4vw, 38px);
	font-weight: 700;
	line-height: 1.1;
	margin: 0;
	text-transform: uppercase;
}

.elg-notice__body {
	display: grid;
	gap: 24px;
	grid-template-columns: 1.6fr 1fr;
	padding: 22px 20px 6px;
}

@media (max-width: 782px) {
	.elg-notice__body {
		grid-template-columns: 1fr;
	}
}

.elg-notice__lead {
	border: 1px solid var(--elg-blue);
	color: var(--elg-blue);
	font-size: 1.15em;
	line-height: 1.35;
	padding: 12px 14px;
}

.elg-notice__list {
	list-style: none;
	margin: 0 0 1em;
	padding: 0;
}

.elg-notice__list li {
	margin: 0 0 0.45em;
	padding-left: 30px;
	position: relative;
}

.elg-notice__list li::before {
	background: var(--elg-ink);
	border-radius: 50%;
	content: "";
	height: 15px;
	left: 0;
	position: absolute;
	top: 0.25em;
	width: 15px;
}

.elg-notice__list li::after {
	border-bottom: 2px solid #fff;
	border-left: 2px solid #fff;
	content: "";
	height: 4px;
	left: 4px;
	position: absolute;
	top: calc(0.25em + 4px);
	transform: rotate(-45deg);
	width: 8px;
}

.elg-notice__aside {
	background: var(--elg-grey);
	padding: 16px;
}

.elg-notice__qr {
	color: var(--elg-ink);
	display: block;
	text-align: center;
	text-decoration: none;
	word-break: break-word;
}

.elg-notice__qr img {
	display: block;
	height: auto;
	margin: 0 auto 8px;
	max-width: 190px;
	width: 100%;
}

.elg-notice__section {
	border-top: 2px solid var(--elg-ink);
	margin: 18px 20px 0;
	padding: 14px 0 4px;
}

.elg-notice__h3 {
	margin: 0 0 10px;
}

.elg-notice__h3-big {
	display: block;
	font-size: 1.7em;
	font-weight: 700;
	line-height: 1.1;
}

.elg-notice__h3-small {
	display: block;
	font-size: 1.15em;
	font-weight: 700;
}

.elg-notice__steps {
	counter-reset: elg-step;
	list-style: none;
	margin: 0;
	padding: 0;
}

.elg-notice__steps li {
	counter-increment: elg-step;
	margin: 0 0 0.5em;
	padding-left: 34px;
	position: relative;
}

.elg-notice__steps li::before {
	background: var(--elg-ink);
	border-radius: 50%;
	color: #fff;
	content: counter(elg-step);
	font-size: 13px;
	font-weight: 700;
	height: 20px;
	left: 0;
	line-height: 20px;
	position: absolute;
	text-align: center;
	top: 0.15em;
	width: 20px;
}

.elg-notice__garan {
	align-items: flex-start;
	display: grid;
	gap: 18px;
	grid-template-columns: 170px 1fr;
	padding-bottom: 18px;
}

@media (max-width: 600px) {
	.elg-notice__garan {
		grid-template-columns: 1fr;
	}
}

.elg-notice__garan-mark {
	background: var(--elg-grey);
	padding: 10px;
}

.elg-notice__garan-mark img {
	display: block;
	height: auto;
	width: 100%;
}

.elg-notice__tools {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0 20px 18px;
}

.elg-notice__tool {
	background: var(--elg-blue);
	border: 0;
	border-radius: 3px;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-size: 14px;
	padding: 9px 16px;
	text-decoration: none;
}

.elg-notice__tool:hover,
.elg-notice__tool:focus {
	background: #023b7d;
	color: #fff;
}

/* ------------------------------------------------------------------ *
 * Compact bar + link
 * ------------------------------------------------------------------ */

.elg-legal-bar {
	align-items: center;
	background: #f7f9fc;
	border: 1px solid #dbe4f0;
	border-left: 4px solid var(--elg-blue);
	display: flex;
	flex-wrap: wrap;
	font-size: 14px;
	gap: 6px 12px;
	line-height: 1.45;
	margin: 14px 0;
	padding: 10px 14px;
}

.elg-notice-link {
	align-items: center;
	color: var(--elg-blue);
	display: inline-flex;
	font-weight: 600;
	gap: 6px;
	text-decoration: underline;
}

.elg-notice-link__icon {
	display: inline-block !important;
	flex: 0 0 auto;
	height: 18px !important;
	margin: 0 !important;
	max-width: none !important;
	vertical-align: middle;
	width: auto !important;
}

/* Guarantees shown directly before the order button (Art. 8(2) of Directive
   2011/83/EU as amended). */

.elg-cart-block {
	background: #f7f9fc;
	border: 1px solid #dbe4f0;
	border-left: 4px solid var(--elg-blue);
	border-radius: 3px;
	display: block;
	margin: 16px 0;
	padding: 12px 14px;
}

/* Inside the block the parts have no boxes of their own, so the whole thing
   reads as one panel even when a theme wraps this area in a container. */

.elg-cart-block .elg-checkout-labels,
.elg-cart-block .elg-legal-bar {
	background: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.elg-cart-block .elg-legal-bar {
	border-top: 1px solid #dbe4f0 !important;
	margin-top: 10px !important;
	padding-top: 10px !important;
}

.elg-checkout-labels {
	border: 1px solid #dbe4f0;
	border-radius: 3px;
	margin: 14px 0;
	padding: 12px 14px;
}

.elg-checkout-labels__title {
	display: block;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 8px;
}

.elg-checkout-labels__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.elg-checkout-labels__list li {
	align-items: center;
	display: flex;
	gap: 10px;
	margin: 0 0 8px;
}

.elg-checkout-labels__name {
	font-size: 13px;
	line-height: 1.35;
}

.elg-footer-notice {
	margin: 0 auto;
	max-width: 1200px;
	padding: 0 16px 20px;
}

/* ------------------------------------------------------------------ *
 * GARAN labels
 * ------------------------------------------------------------------ */

.elg-label {
	display: inline-block;
	line-height: 0;
}

.elg-label--button {
	background: #fff;
	border: 1px solid var(--elg-border);
	border-radius: 2px;
	cursor: zoom-in;
	padding: 0;
}

.woocommerce ul.products li.product,
ul.products li.product {
	position: relative;
}

.elg-loop-badge {
	position: absolute;
	z-index: 5;
}

.elg-loop-badge--top-right {
	right: 8px;
	top: 8px;
}

.elg-loop-badge--top-left {
	left: 8px;
	top: 8px;
}

.elg-loop-badge--bottom-right {
	bottom: 8px;
	right: 8px;
}

.elg-loop-badge--bottom-left {
	bottom: 8px;
	left: 8px;
}

.elg-loop-badge .elg-label {
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Single product: label under the gallery, beside the theme's own badges. */

.elg-product-label {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 12px 0;
}

.elg-product-label__text {
	font-size: 0.9em;
	font-weight: 600;
}

.elg-product-label--overlay {
	margin: 0;
	position: absolute;
	right: 10px;
	top: 10px;
	z-index: 10;
}

.elg-summary {
	margin: 16px 0;
}

.elg-summary__garan {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.elg-summary__text {
	display: flex;
	flex: 1 1 220px;
	flex-direction: column;
	gap: 4px;
}

.elg-summary__years {
	font-size: 1.05em;
	font-weight: 700;
}

.elg-summary__note {
	color: #555;
	font-size: 0.85em;
	line-height: 1.4;
}

/* Themes style images inside the product gallery; the label must ignore that. */

.elg-label,
.elg-label * {
	box-sizing: border-box;
}

.elg-label > img {
	display: block;
	float: none !important;
	height: auto !important;
	margin: 0 !important;
	max-width: 100% !important;
	padding: 0 !important;
	width: 100% !important;
}

/* Official nested display: a wide strip, so it needs its own default width. */

.elg-label--nested {
	background: #fff;
	border-radius: 2px;
	padding: 3px 5px;
}

.elg-loop-badge .elg-label--nested {
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

/* ------------------------------------------------------------------ *
 * Modal
 * ------------------------------------------------------------------ */

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

.elg-modal {
	inset: 0;
	position: fixed;
	z-index: 999999;
}

.elg-modal__backdrop {
	background: rgba(0, 0, 0, 0.6);
	inset: 0;
	position: absolute;
}

.elg-modal__dialog {
	background: #fff;
	border-radius: 4px;
	left: 50%;
	max-height: 90vh;
	max-width: 960px;
	overflow: auto;
	padding: 34px 18px 18px;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 32px);
}

.elg-modal__close {
	background: transparent;
	border: 0;
	cursor: pointer;
	font-size: 28px;
	line-height: 1;
	padding: 4px 10px;
	position: absolute;
	right: 6px;
	top: 6px;
}

.elg-modal .elg-notice {
	border: 0;
	margin: 0;
}

.elg-visually-hidden {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
}

.elg-lightbox__dialog {
	max-width: 520px;
}

.elg-lightbox__content {
	display: flex;
	justify-content: center;
}

.elg-lightbox__image {
	background: #fff;
	display: block;
	height: auto;
	margin: 0 auto;
	max-height: 86vh;
	max-width: 100%;
	width: auto;
}

.elg-lightbox__card {
	max-width: 100%;
	width: 420px;
}

/* ------------------------------------------------------------------ *
 * Print
 * ------------------------------------------------------------------ */

@media print {
	body.elg-printing > *:not(.elg-print-root) {
		display: none !important;
	}

	.elg-notice {
		border: 0;
		max-width: none;
	}

	.elg-notice__tools,
	.elg-modal__close {
		display: none !important;
	}
}
