/* Cookie notice: card in the bottom right corner; on phones a sheet across the bottom of the screen. Fixed, so no layout shift. */

.iw-consent {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1000;
	display: grid;
	gap: var(--iw-space-4);
	padding: var(--iw-space-6) var(--iw-gutter);
	background: var(--iw-color-bg);
	border-top: 1px solid var(--iw-color-line);
	box-shadow: var(--iw-shadow-md);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.iw-consent[hidden] {
	display: none;
}

.iw-consent.is-visible {
	opacity: 1;
	transform: none;
}

.iw-consent__text {
	margin: 0;
	color: var(--iw-color-ink-soft);
	font-size: var(--iw-text-sm);
	line-height: var(--iw-leading-body);
}

.iw-consent .iw-consent__text a {
	color: var(--iw-color-ink);
	text-decoration: underline;
	text-decoration-color: var(--iw-color-line);
	text-underline-offset: 4px;
	white-space: nowrap;
}

.iw-consent .iw-consent__text a:hover {
	color: var(--iw-color-primary-dark);
	text-decoration-color: currentColor;
}

/* Two equal buttons: rejecting is as easy as accepting */
.iw-consent__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--iw-space-3);
}

.iw-consent__button {
	min-height: 44px;
	padding: var(--iw-space-2) var(--iw-space-4);
	border: 1px solid var(--iw-color-brown);
	border-radius: var(--iw-radius);
	background: var(--iw-color-bg);
	color: var(--iw-color-brown);
	font: inherit;
	font-size: var(--iw-text-sm);
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.iw-consent__button:hover {
	background: var(--iw-color-brown);
	color: var(--iw-color-on-ink);
}

.iw-consent__button:focus-visible {
	outline: 2px solid var(--iw-color-primary);
	outline-offset: 2px;
}

@media (min-width: 640px) {
	.iw-consent {
		right: var(--iw-space-6);
		bottom: var(--iw-space-6);
		left: auto;
		width: 24rem;
		padding: var(--iw-space-6);
		border: 1px solid var(--iw-color-line);
		border-radius: var(--iw-radius-lg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.iw-consent {
		transition: none;
	}
}

/* "Postavke kolačića" in the footer legal menu: a button that looks like the other links there */
.iw-footer .iw-footer__consent {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.iw-footer .iw-footer__consent:hover {
	color: var(--iw-color-on-ink);
	text-decoration: underline;
	text-underline-offset: 4px;
}
