/* Puffkalica Pristanak na kolačiće — abeto brand tokeni (px, ne rem — plugin ne nasljeđuje temin rescale) */
#pkcc-banner,
#pkcc-modal,
#pkcc-revisit {
	--pkcc-blue: #43c2e8;
	--pkcc-blue-dark: #1d9fc7;
	--pkcc-red: #ef3340;
	--pkcc-ink: #111827;
	--pkcc-deep: #101622;
	--pkcc-paper: #fffaf0;
	--pkcc-soft: #f7f3ea;
	--pkcc-muted: #64748b;
	--pkcc-radius: 28px;
	--pkcc-radius-sm: 18px;
	--pkcc-font-display: "transducer-condensed", "Teko", "Oswald", "Bebas Neue", "Arial Narrow", sans-serif;

	/* Editabilne boje (admin: Puffkalica > Kolačići > Izgled). Zadane vrijednosti = brand. */
	--pkcc-c-banner-bg: var(--pkcc-paper);
	--pkcc-c-banner-border: #ece4d3;
	--pkcc-c-title: var(--pkcc-ink);
	--pkcc-c-text: var(--pkcc-muted);
	--pkcc-c-modal-bg: var(--pkcc-paper);
	--pkcc-c-category-bg: var(--pkcc-soft);
	--pkcc-c-accept-bg: var(--pkcc-blue);
	--pkcc-c-accept-text: #06222c;
	--pkcc-c-reject-text: var(--pkcc-red);
	--pkcc-c-reject-border: #f3c6c9;
	--pkcc-c-ghost-text: var(--pkcc-ink);
	--pkcc-c-ghost-border: #d8d2c4;
	--pkcc-c-revisit-bg: var(--pkcc-paper);

	box-sizing: border-box;
}
#pkcc-banner *,
#pkcc-modal *,
#pkcc-revisit * {
	box-sizing: border-box;
}

/* ---------- Banner (bar / box) ---------- */
#pkcc-banner {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 999999;
	padding: 16px;
	font-family: inherit;
	color: var(--pkcc-ink);
	animation: pkcc-rise 0.35s ease;
}
/* Bar layout: puna širina, gore ili dolje */
#pkcc-banner.pkcc-layout-bar.pkcc-pos-bottom { bottom: 0; }
#pkcc-banner.pkcc-layout-bar.pkcc-pos-top { top: 0; }

/* Box layout: kutija u jednom od 4 kuta ekrana */
#pkcc-banner.pkcc-layout-box { left: auto; right: auto; padding: 20px; max-width: 460px; }
#pkcc-banner.pkcc-layout-box.pkcc-pos-bottom-right { bottom: 0; right: 0; }
#pkcc-banner.pkcc-layout-box.pkcc-pos-bottom-left { bottom: 0; left: 0; }
#pkcc-banner.pkcc-layout-box.pkcc-pos-top-right { top: 0; right: 0; }
#pkcc-banner.pkcc-layout-box.pkcc-pos-top-left { top: 0; left: 0; }

#pkcc-banner[hidden] { display: none; }

@keyframes pkcc-rise {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}

#pkcc-banner .pkcc-banner__inner {
	background: var(--pkcc-c-banner-bg);
	border: 1px solid var(--pkcc-c-banner-border);
	border-radius: var(--pkcc-radius);
	box-shadow: 0 18px 44px rgba(16, 22, 34, 0.18);
	padding: 22px 26px;
	max-width: 1180px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 20px;
}
#pkcc-banner.pkcc-layout-box .pkcc-banner__inner {
	max-width: 460px;
	margin: 0;
	flex-direction: column;
	align-items: flex-start;
}

.pkcc-banner__icon {
	font-size: 34px;
	line-height: 1;
	flex-shrink: 0;
}
.pkcc-banner__body { flex: 1 1 auto; min-width: 200px; }
.pkcc-banner__title {
	font-family: var(--pkcc-font-display);
	font-weight: 600;
	letter-spacing: 0.02em;
	font-size: 20px;
	margin: 0 0 6px;
	color: var(--pkcc-c-title);
}
.pkcc-banner__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--pkcc-c-text);
}
.pkcc-banner__link {
	color: var(--pkcc-blue-dark);
	font-weight: 600;
	text-decoration: underline;
	white-space: nowrap;
}

.pkcc-banner__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.pkcc-btn {
	appearance: none;
	border: 2px solid transparent;
	border-radius: 999px;
	padding: 11px 22px;
	font-family: var(--pkcc-font-display);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.03em;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	white-space: nowrap;
}
.pkcc-btn:hover { transform: translateY(-1px); }
.pkcc-btn:active { transform: translateY(0); }

.pkcc-btn--accept {
	background: var(--pkcc-c-accept-bg);
	color: var(--pkcc-c-accept-text);
	box-shadow: 0 8px 18px rgba(67, 194, 232, 0.35);
}
.pkcc-btn--accept:hover { filter: brightness(0.92); }

.pkcc-btn--reject {
	background: transparent;
	color: var(--pkcc-c-reject-text);
	border-color: var(--pkcc-c-reject-border);
}
.pkcc-btn--reject:hover { background: rgba(239, 51, 64, 0.08); }

.pkcc-btn--ghost {
	background: transparent;
	color: var(--pkcc-c-ghost-text);
	border-color: var(--pkcc-c-ghost-border);
}
.pkcc-btn--ghost:hover { background: rgba(17, 24, 39, 0.05); }

.pkcc-inline-link {
	appearance: none;
	background: none;
	border: none;
	padding: 0;
	color: var(--pkcc-blue-dark);
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	font-size: inherit;
	font-family: inherit;
}

/* ---------- Modal ---------- */
#pkcc-modal {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
#pkcc-modal[hidden] { display: none; }

.pkcc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(16, 22, 34, 0.55);
	backdrop-filter: blur(2px);
}

.pkcc-modal__panel {
	position: relative;
	background: var(--pkcc-c-modal-bg);
	border-radius: var(--pkcc-radius);
	box-shadow: 0 30px 70px rgba(16, 22, 34, 0.35);
	max-width: 560px;
	width: 100%;
	max-height: 86vh;
	overflow-y: auto;
	padding: 34px 30px 28px;
	animation: pkcc-pop 0.25s ease;
}
@keyframes pkcc-pop {
	from { opacity: 0; transform: scale(0.96); }
	to { opacity: 1; transform: scale(1); }
}

.pkcc-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: var(--pkcc-c-category-bg);
	color: var(--pkcc-c-title);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.pkcc-modal__close:hover { background: rgba(239, 51, 64, 0.12); color: var(--pkcc-red); }

.pkcc-modal__title {
	font-family: var(--pkcc-font-display);
	font-size: 26px;
	font-weight: 600;
	letter-spacing: 0.02em;
	margin: 0 0 18px;
	color: var(--pkcc-c-title);
	padding-right: 30px;
}

.pkcc-modal__categories {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 22px;
}

.pkcc-cat {
	background: var(--pkcc-c-category-bg);
	border-radius: var(--pkcc-radius-sm);
	padding: 16px 18px;
}
.pkcc-cat__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.pkcc-cat__label {
	font-family: var(--pkcc-font-display);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--pkcc-c-title);
}
.pkcc-cat__desc {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--pkcc-c-text);
}
.pkcc-cat__locked {
	display: inline-block;
	margin-top: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pkcc-blue-dark);
}

/* Toggle switch */
.pkcc-switch { position: relative; display: inline-block; width: 44px; height: 26px; flex-shrink: 0; }
.pkcc-switch__input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pkcc-switch__track {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.18);
	border-radius: 999px;
	transition: background 0.15s ease;
}
.pkcc-switch__thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(16, 22, 34, 0.25);
	transition: transform 0.15s ease;
}
.pkcc-switch__input:checked + .pkcc-switch__track { background: var(--pkcc-blue); }
.pkcc-switch__input:checked + .pkcc-switch__track .pkcc-switch__thumb { transform: translateX(18px); }
.pkcc-switch__input:disabled + .pkcc-switch__track { background: var(--pkcc-blue-dark); opacity: 0.55; cursor: not-allowed; }
.pkcc-switch__input:disabled { cursor: not-allowed; }

.pkcc-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

/* ---------- Revisit floating button ---------- */
#pkcc-revisit {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 999998;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: none;
	background: var(--pkcc-c-revisit-bg);
	box-shadow: 0 10px 24px rgba(16, 22, 34, 0.25);
	font-size: 22px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease;
}
#pkcc-revisit[hidden] { display: none; }
#pkcc-revisit:hover { transform: scale(1.08); }

/* ---------- Policy table shortcode ---------- */
.pkcc-policy-table__cat {
	font-family: var(--pkcc-font-display, inherit);
	font-size: 20px;
	margin: 28px 0 4px;
}
.pkcc-policy-table__desc {
	color: #64748b;
	font-size: 14px;
	margin: 0 0 12px;
}
.pkcc-policy-table__grid {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 8px;
	font-size: 13px;
}
.pkcc-policy-table__grid th,
.pkcc-policy-table__grid td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid rgba(17, 24, 39, 0.08);
	vertical-align: top;
}
.pkcc-policy-table__grid th {
	font-weight: 700;
	background: #f7f3ea;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
	#pkcc-banner .pkcc-banner__inner {
		flex-direction: column;
		align-items: flex-start;
		padding: 20px;
	}
	.pkcc-banner__actions { width: 100%; }
	.pkcc-btn { flex: 1 1 auto; text-align: center; }
	.pkcc-modal__panel { padding: 28px 20px 22px; }
	#pkcc-banner.pkcc-layout-box { left: 12px; right: 12px; max-width: none; padding: 0; }
	#pkcc-banner.pkcc-layout-box .pkcc-banner__inner { max-width: none; }
}
