/* Traka za pristanak i dijalog postavki privatnosti. */

.dr-consent {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 9998;
	padding: 20px 24px;
	background-color: #f7f3ea;
	color: #2c2c2c;
	border-top: 1px solid rgba(44, 44, 44, 0.18);
	box-shadow: 0 -6px 24px rgba(44, 44, 44, 0.08);
}

.dr-consent__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 40px;
	width: 100%;
	max-width: 1140px;
	margin-inline: auto;
}

.dr-consent__text {
	flex: 1 1 420px;
	max-width: 62ch;
}

.dr-consent__title {
	margin: 0 0 4px;
	font-family: var(--wp--preset--font-family--merriweather, Georgia, serif);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
}

.dr-consent__desc {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
}

.dr-consent__actions,
.dr-consent-dialog__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.dr-consent__actions {
	flex: 0 1 auto;
}

/* Prihvaćanje i odbijanje iste su veličine i težine. */
.dr-consent__btn {
	flex: 1 1 auto;
	min-width: 176px;
	min-height: 44px;
	padding: 0 20px;
	font-family: var(--wp--preset--font-family--work-sans, system-ui, sans-serif);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	border-radius: 4px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.dr-consent__btn--primary {
	background-color: #fe9920;
	border-color: #fe9920;
	color: #2c2c2c;
}

.dr-consent__btn--primary:hover {
	background-color: #e5890f;
	border-color: #e5890f;
}

.dr-consent__btn--secondary {
	background-color: transparent;
	border-color: #355e3b;
	color: #2c2c2c;
}

.dr-consent__btn--secondary:hover {
	background-color: rgba(53, 94, 59, 0.08);
}

.dr-consent__btn:focus-visible {
	outline: 2px solid #2c2c2c;
	outline-offset: 2px;
}

/* Dijalog postavki */
.dr-consent-dialog {
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	padding: 0;
	border: 0;
	border-radius: 6px;
	background-color: #f7f3ea;
	color: #2c2c2c;
	box-shadow: 0 16px 48px rgba(44, 44, 44, 0.28);
}

.dr-consent-dialog::backdrop {
	background-color: rgba(44, 44, 44, 0.5);
}

.dr-consent-dialog__inner {
	padding: 28px;
}

.dr-consent-dialog__title {
	margin: 0 0 12px;
	font-family: var(--wp--preset--font-family--merriweather, Georgia, serif);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.3;
	color: #355e3b;
}

.dr-consent-dialog__desc,
.dr-consent-dialog__state {
	margin: 0 0 12px;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.dr-consent-dialog__state {
	font-weight: 500;
}

.dr-consent-dialog__actions {
	margin-top: 20px;
}

.dr-consent-dialog__close {
	margin-top: 16px;
	padding: 0;
	background: none;
	border: 0;
	color: #2c2c2c;
	font: inherit;
	font-size: 0.875rem;
	line-height: 1.5;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.dr-consent-dialog__close:focus-visible {
	outline: 2px solid #2c2c2c;
	outline-offset: 3px;
}

/* Sadržaj se ne smije skrivati ispod trake. */
body {
	padding-bottom: var(--dr-consent-height, 0px);
}

/* Povernica u podnožju; prikazuje se tek kad sučelje radi. */
[data-dr-consent-open][hidden] {
	display: none;
}

/* Poruka za čitače zaslona. */
.dr-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 781px) {
	.dr-consent {
		padding: 16px 24px;
	}

	.dr-consent__actions {
		flex: 1 1 100%;
		flex-direction: column;
	}

	.dr-consent__btn {
		width: 100%;
	}

	.dr-consent-dialog__inner {
		padding: 24px;
	}

	.dr-consent-dialog__actions {
		flex-direction: column;
	}
}
