/* Alfaprint kolačići - boje i fontovi iz Elementor kita alfaprint.hr */
.apk {
	--apk-bg: #111011;      /* e-global-color-secondary */
	--apk-text: #ffffff;
	--apk-muted: rgba(255, 255, 255, 0.85);
	--apk-accent: #95b136;  /* e-global-color-primary */
	--apk-radius: 6px;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	padding: 16px;
	box-sizing: border-box;
	pointer-events: none;
}
.apk[hidden] { display: none !important; }
.apk *, .apk *::before, .apk *::after { box-sizing: border-box; }

.apk__box {
	pointer-events: auto;
	max-width: 860px;
	margin: 0 auto;
	padding: 24px;
	background: var(--apk-bg);
	color: var(--apk-text);
	border-radius: 12px;
	border-top: 4px solid var(--apk-accent);
	box-shadow: 0 10px 40px rgba(17, 16, 17, 0.35);
	display: flex;
	flex-direction: column;
	gap: 20px;
	animation: apk-in 0.3s ease-out;
}

.apk__title {
	margin: 0;
	font-family: "Ubuntu", "Roboto", sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--apk-text);
}

.apk__text {
	margin: 8px 0 0;
	font-family: "Roboto", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--apk-muted);
}

.apk .apk__link,
.apk .apk__link:visited {
	color: var(--apk-accent);
	text-decoration: underline;
	text-underline-offset: 4px;
	white-space: nowrap;
}
.apk .apk__link:hover { text-decoration: none; color: var(--apk-accent); }

.apk__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex-shrink: 0;
}

/* Oba gumba identična - ista veličina, font i boja (EU pravilo). */
.apk .apk__btn {
	height: 48px;
	min-width: 150px;
	margin: 0;
	padding: 0 24px;
	font-family: "Roboto", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	color: var(--apk-text);
	background: transparent;
	border: 2px solid var(--apk-accent);
	border-radius: var(--apk-radius);
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}
.apk .apk__btn:hover {
	background: var(--apk-accent);
	color: var(--apk-bg);
}
.apk .apk__btn:focus { outline: none; }
.apk .apk__btn:focus-visible,
.apk .apk__link:focus-visible {
	outline: 2px solid var(--apk-text);
	outline-offset: 2px;
}

/* Link "Postavke kolačića" iz shortcodea - običan tekst kao ostali linkovi u footeru.
   Tema (Hello Elementor) gumbima daje okvir, pozadinu i padding, zato !important.
   Boja i podcrtavanje su bez !important da ih se može mijenjati u Elementoru. */
html body button.apk-postavke,
html body button.apk-postavke:hover,
html body button.apk-postavke:focus,
html body button.apk-postavke:active {
	display: inline !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: inherit;
	font: inherit !important;
	letter-spacing: inherit !important;
	text-transform: inherit !important;
	text-decoration: none;
	text-align: inherit !important;
	line-height: inherit !important;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
html body button.apk-postavke:focus { outline: none; }
html body button.apk-postavke:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

@media (min-width: 560px) {
	.apk__actions { flex-direction: row; }
	.apk__actions .apk__btn { flex: 1; }
}

@media (min-width: 900px) {
	.apk { padding: 24px; }
	.apk__box {
		flex-direction: row;
		align-items: center;
		gap: 32px;
		padding: 24px 32px;
	}
	.apk__body { flex: 1; }
	.apk__actions .apk__btn { flex: none; }
}

@keyframes apk-in {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.apk__box { animation: none; }
}
