/* Baner za kolačiće (inc/consent.php): kartica dolje lijevo na desktopu, preko cijele širine na mobitelu. */
.sw-consent[hidden] {
	display: none;
}

.sw-consent {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100001;
	display: flex;
	justify-content: flex-start;
	padding: 16px;
	pointer-events: none;
}

.sw-consent__box {
	width: min(460px, 100%);
	padding: 20px;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
	color: #111;
	font-family: var(--e-global-typography-text-font-family, "Roboto"), sans-serif;
	pointer-events: auto;
}

.sw-consent__title {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 600;
}

.sw-consent__text {
	margin: 0 0 16px;
	color: #444;
	font-size: 14px;
	line-height: 1.5;
}

.sw-consent__text a {
	color: #111;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Oba izbora jednako vidljiva i iste veličine (odbijanje jednako lako kao prihvatanje). */
.sw-consent__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.sw-consent .sw-consent__btn {
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid #111;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.2;
	text-transform: none;
	cursor: pointer;
}

.sw-consent .sw-consent__btn:hover,
.sw-consent .sw-consent__btn:focus {
	border-color: #111;
	background: #333;
	color: #fff;
}

/* Link "Postavke kolačića" u footeru izgleda kao ostali linkovi. */
.sw-footer__links .sw-footer__consent-link {
	display: flex;
	align-items: center;
	padding: 0;
	border: 0;
	background: none;
	color: var(--e-global-color-text);
	font: inherit;
	letter-spacing: inherit;
	text-align: left;
	text-transform: none;
	cursor: pointer;
}

.sw-footer__links .sw-footer__consent-link > span:last-child {
	padding-left: 5px;
}

.sw-footer__links .sw-footer__consent-link:hover,
.sw-footer__links .sw-footer__consent-link:focus {
	border: 0;
	background: none;
	color: inherit;
}

@media (max-width: 767px) {
	.sw-consent {
		padding: 0;
	}

	.sw-consent__box {
		width: 100%;
		border-width: 1px 0 0;
		border-radius: 12px 12px 0 0;
		padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
	}
}
