/* Banner de cookie-uri și panoul de setări (inc/primebox-consent.php). */
.pbc[hidden], .pbc-panel[hidden] { display: none !important; }

.pbc {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
	display: flex; justify-content: center; pointer-events: none;
}
.pbc__box {
	pointer-events: auto;
	width: 100%; max-width: 960px;
	display: grid; grid-template-columns: 1fr auto; gap: 8px 28px; align-items: center;
	padding: 20px 24px;
	background: var(--ink, #0B0F14); color: #fff;
	border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r, 16px);
	box-shadow: var(--shadow-lg, 0 30px 80px -20px rgba(11, 15, 20, .45));
	font-family: var(--font-body, system-ui);
}
.pbc__title { grid-column: 1; margin: 0; font-family: var(--font-head, system-ui); font-weight: 800; font-size: 16px; }
.pbc__text { grid-column: 1; margin: 0; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .78); }
.pbc__text a { color: #ff9a5f; text-decoration: underline; text-underline-offset: 3px; }
.pbc__actions { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.pbc__btn {
	min-height: 44px; padding: 0 18px;
	font-family: var(--font-head, system-ui); font-weight: 700; font-size: 14px; line-height: 1;
	color: #fff; background: rgba(255, 255, 255, .1);
	border: 1.5px solid rgba(255, 255, 255, .55); border-radius: var(--r-sm, 10px);
	cursor: pointer; white-space: nowrap;
	transition: background .2s, border-color .2s;
}
.pbc__btn:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }
.pbc__btn--link { background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: 4px; padding: 0 8px; }
.pbc__btn--link:hover { background: transparent; border-color: transparent; color: #ff9a5f; }
.pbc__btn:focus-visible, .pbc-panel__close:focus-visible, .pbc-switch:focus-visible, .pbc__text a:focus-visible {
	outline: 2.5px solid var(--accent-2, #FF7B3A); outline-offset: 3px;
}

.pbc-panel {
	position: fixed; inset: 0; z-index: 100;
	display: flex; align-items: flex-end; justify-content: center;
	padding: 16px; background: rgba(11, 15, 20, .55);
}
.pbc-panel__box {
	position: relative; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow-y: auto;
	padding: 28px 26px 24px;
	background: var(--ink, #0B0F14); color: #fff;
	border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r, 16px);
	box-shadow: var(--shadow-lg, 0 30px 80px -20px rgba(11, 15, 20, .45));
	font-family: var(--font-body, system-ui);
}
.pbc-panel__box:focus { outline: none; }
.pbc-panel__close {
	position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
	display: grid; place-items: center; font-size: 26px; line-height: 1;
	color: #fff; background: transparent; border: 0; border-radius: var(--r-sm, 10px); cursor: pointer;
}
.pbc-panel__title { margin: 0 44px 8px 0; font-family: var(--font-head, system-ui); font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: #fff; }
.pbc-panel__intro { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .72); }

.pbc-cat {
	display: flex; align-items: center; justify-content: space-between; gap: 18px;
	padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .1);
	cursor: pointer;
}
div.pbc-cat { cursor: default; }
.pbc-cat__text { display: grid; gap: 3px; min-width: 0; }
.pbc-cat__name { margin: 0; font-family: var(--font-head, system-ui); font-weight: 700; font-size: 15px; color: #fff; }
.pbc-cat__desc { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .66); }
.pbc-cat__always { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #ff9a5f; }

.pbc-switch {
	flex: none; appearance: none; -webkit-appearance: none; margin: 0;
	width: 46px; height: 26px; border-radius: 13px;
	background: rgba(255, 255, 255, .22); position: relative; cursor: pointer;
	transition: background .2s;
}
.pbc-switch::after {
	content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
	background: #fff; transition: transform .2s;
}
.pbc-switch:checked { background: var(--accent, #FF5B14); }
.pbc-switch:checked::after { transform: translateX(20px); }

.pbc-panel__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); }

@media (max-width: 760px) {
	.pbc { left: 10px; right: 10px; bottom: 10px; }
	.pbc__box { grid-template-columns: 1fr; padding: 16px 16px 14px; }
	.pbc__actions { grid-column: 1; grid-row: auto; justify-content: stretch; }
	.pbc__actions .pbc__btn { flex: 1 1 0; padding: 0 10px; }
	.pbc__actions .pbc__btn--link { flex: 0 0 100%; order: 3; min-height: 36px; }
	.pbc-panel { padding: 10px; }
	.pbc-panel__box { padding: 22px 18px 18px; max-height: calc(100vh - 20px); }
	.pbc-panel__actions .pbc__btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.pbc__btn, .pbc-switch, .pbc-switch::after { transition: none; }
}
