/* Soglasje za piškotke in zunanje vsebine */
.giz-consent {
	position: fixed;
	z-index: 100000;
	left: 16px;
	bottom: 16px;
	width: min(520px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 24px;
	background: #FFFDF8;
	color: #332300;
	border: 1px solid rgba(51, 35, 0, .15);
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(51, 35, 0, .22);
	font-size: 16px;
	line-height: 1.5;
}
.giz-consent[hidden] { display: none; }
.giz-consent p { margin: 0 0 18px; }
.giz-consent a { text-decoration: underline; }
.giz-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.giz-consent__actions .giz-consent__btn { flex: 1 1 200px; }

/* Selektorji so močnejši od Hello Elementor, ki gumbe ob hover/focus obarva vijolično. */
body button.giz-consent__btn {
	padding: 12px 20px;
	border: 1px solid #FF9D1F;
	border-radius: 40px;
	background: #FF9D1F;
	color: #332300;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}
body button.giz-consent__btn:hover,
body button.giz-consent__btn:focus,
body button.giz-consent__btn:active { background: #332300; border-color: #332300; color: #FFFDF8; }
/* »Samo nujni« je manj poudarjen: samo obroba. */
body button.giz-consent__btn--secondary { background: transparent; border-color: rgba(51, 35, 0, .35); font-weight: 400; }
body button.giz-consent__btn--secondary:hover,
body button.giz-consent__btn--secondary:focus,
body button.giz-consent__btn--secondary:active { background: rgba(51, 35, 0, .07); border-color: #332300; color: #332300; }
.giz-consent label { cursor: pointer; }
.giz-consent input[type="checkbox"] { margin-right: 6px; accent-color: #A35E00; }

body button.giz-consent-open,
body button.giz-consent-more {
	display: inline;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #332300;
	font: inherit;
	text-decoration: underline;
	white-space: normal;
	cursor: pointer;
}
body button.giz-consent-open { margin-left: 12px; }
body button.giz-consent-open:hover,
body button.giz-consent-open:focus,
body button.giz-consent-open:active,
body button.giz-consent-more:hover,
body button.giz-consent-more:focus,
body button.giz-consent-more:active { background: transparent; color: #A35E00; }
body button.giz-consent-open:focus-visible,
body button.giz-consent-more:focus-visible,
body button.giz-consent__btn:focus-visible { outline: 2px solid #A35E00; outline-offset: 2px; }
@media (max-width: 767px) {
	body button.giz-consent-open { display: block; margin: 6px auto 0; }
}

/* Nadomestek za še nenaloženo vdelano vsebino */
.giz-embed { position: relative; }
.giz-embed:not(.is-loaded) > iframe { visibility: hidden; min-height: 320px; width: 100%; }
.giz-embed__notice {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 24px;
	text-align: center;
	background: #FBF6EC;
	border-radius: 16px;
}
.giz-embed__notice p { margin: 0; max-width: 460px; }
.giz-embed.is-loaded .giz-embed__notice { display: none; }

/* Telefon (pokončno in ležeče): nižji pas ob spodnjem robu, gumba vedno vidna. */
@media (max-width: 767px), (max-height: 500px) {
	.giz-consent {
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		max-height: 85vh;
		max-height: 85dvh; /* upošteva orodno vrstico mobilnega brskalnika */
		padding: 16px 16px 0;
		border-width: 1px 0 0;
		border-radius: 16px 16px 0 0;
		overscroll-behavior: contain;
		font-size: 14px;
		line-height: 1.45;
	}
	.giz-consent p { margin-bottom: 10px; }
	body .giz-consent button.giz-consent-more { font-size: 14px; }
	body .giz-consent button.giz-consent__btn { padding: 11px 12px; font-size: 15px; }
	#giz-consent-details button.giz-consent__btn { width: 100%; }
	/* Gumba ostaneta pripeta na dnu, tudi ko so nastavitve odprte in se besedilo drsi. */
	.giz-consent__actions {
		position: sticky;
		bottom: 0;
		flex-wrap: nowrap;
		gap: 8px;
		margin: 0 -16px;
		padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px));
		background: #FFFDF8;
	}
	.giz-consent__actions .giz-consent__btn { flex: 1 1 0; }
}
