/* Згода на cookie: банер, вікно налаштувань (js/npc-consent.js), кнопка у футері. */
.npc-cc-bar, .npc-cc-modal {
	--cc-green: #007a53;
	--cc-green-dark: #00653f;
	--cc-ink: #2b2b2b;
	--cc-muted: #6b6b6b;
	--cc-line: #e3e3e3;
	--cc-tint: #f4f8f6;
	font-family: 'Open Sans', sans-serif;
	color: var(--cc-ink);
	box-sizing: border-box;
}
.npc-cc-bar *, .npc-cc-modal * { box-sizing: border-box; }

/* Банер */
.npc-cc-bar {
	position: fixed;
	z-index: 10050;
	left: 50%;
	bottom: 16px;
	display: flex;
	align-items: center;
	gap: 16px 24px;
	width: calc(100% - 32px);
	max-width: 1100px;
	padding: 18px 20px 18px 24px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
	transform: translate(-50%, 24px);
	opacity: 0;
	transition: transform .25s ease, opacity .25s ease;
}
.npc-cc-bar.is-on { transform: translate(-50%, 0); opacity: 1; }
.npc-cc-bar__text { flex: 1 1 auto; margin: 0; font-size: 14px; line-height: 1.55; color: var(--cc-ink); }
.npc-cc-bar__acts { display: flex; flex: 0 0 auto; gap: 8px; }

/* Кнопки */
.npc-cc__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 0 20px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.npc-cc__btn--ghost { background: #fff; border: 1px solid #cfd8d4; color: var(--cc-ink); }
.npc-cc__btn--ghost:hover { border-color: var(--cc-green); color: var(--cc-green); }
.npc-cc__btn--fill { background: var(--cc-green); border: 1px solid var(--cc-green); color: #fff; }
.npc-cc__btn--fill:hover { background: var(--cc-green-dark); border-color: var(--cc-green-dark); }
.npc-cc__btn:focus-visible, .npc-cc__sw:focus-visible, .npc-cc__x:focus-visible { outline: 3px solid rgba(0, 122, 83, .35); outline-offset: 2px; }

/* Вікно налаштувань */
html.npc-cc-lock { overflow: hidden; }
.npc-cc-modal {
	position: fixed;
	z-index: 10060;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	background: rgba(0, 0, 0, .55);
	opacity: 0;
	transition: opacity .2s ease;
}
.npc-cc-modal.is-on { opacity: 1; }
.npc-cc-box {
	position: relative;
	width: 100%;
	max-width: 620px;
	margin: auto;
	padding: 32px 40px 32px;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .2);
}
.npc-cc__x {
	position: absolute;
	top: 20px;
	right: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: var(--cc-tint);
	border: 0;
	border-radius: 50%;
	color: var(--cc-ink);
	cursor: pointer;
}
.npc-cc__x:hover { background: #e6f2ed; }
.npc-cc__title { margin: 0 56px 8px 0; font-family: inherit; font-size: 24px; line-height: 1.25; font-weight: 700; color: var(--cc-ink); text-transform: none; letter-spacing: 0; }
.npc-cc__title:focus { outline: none; }
.npc-cc__lead { margin: 0 0 8px; font-size: 15px; line-height: 1.55; color: var(--cc-muted); }
.npc-cc__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 0;
	border-top: 1px solid var(--cc-line);
}
.npc-cc__row:last-of-type { border-bottom: 1px solid var(--cc-line); }
.npc-cc__txt { flex: 1 1 auto; }
.npc-cc__name { margin: 0 0 4px; font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--cc-ink); }
.npc-cc__desc { margin: 0; font-size: 14px; line-height: 1.55; color: var(--cc-muted); }
.npc-cc__always { flex: 0 0 auto; padding-top: 2px; font-size: 13px; font-weight: 600; color: var(--cc-green); white-space: nowrap; }

/* Перемикач */
.npc-cc__sw {
	position: relative;
	flex: 0 0 52px;
	width: 52px;
	height: 30px;
	margin: 0;
	padding: 0;
	background: #cfd5d2;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color .2s ease;
}
.npc-cc__sw span {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 24px;
	height: 24px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
	transition: transform .2s ease;
}
.npc-cc__sw[aria-checked="true"] { background: var(--cc-green); }
.npc-cc__sw[aria-checked="true"] span { transform: translateX(22px); }

.npc-cc__acts { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Кнопка у футері */
.npc-footer__bottom { align-items: center; }
.npc-footer .npc-footer__cookie {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px 14px 6px 8px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 999px;
	font-family: 'Open Sans', sans-serif;
	font-size: 13px;
	line-height: 1.3;
	color: rgba(255, 255, 255, .92);
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}
.npc-footer .npc-footer__cookie:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }
.npc-footer .npc-footer__cookie:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 767px) {
	.npc-cc-bar { flex-direction: column; align-items: stretch; bottom: 8px; width: calc(100% - 16px); padding: 16px; border-radius: 16px; }
	.npc-cc-bar__acts { flex-wrap: wrap; }
	.npc-cc-bar__acts .npc-cc__btn { flex: 1 1 auto; }
	.npc-cc-bar__acts .npc-cc__btn--fill { flex-basis: 100%; order: -1; }
	.npc-cc-modal { align-items: flex-start; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
	.npc-cc-box { padding: 20px 16px 16px; border-radius: 20px; }
	.npc-cc__x { top: 12px; right: 12px; width: 40px; height: 40px; }
	.npc-cc__lead { font-size: 14px; }
	.npc-cc__row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 14px; padding: 14px 0; }
	.npc-cc__txt { display: contents; }
	.npc-cc__name { grid-column: 1; grid-row: 1; margin: 0; }
	.npc-cc__desc { grid-column: 1 / -1; grid-row: 2; }
	.npc-cc__always, .npc-cc__sw { grid-column: 2; grid-row: 1; padding-top: 0; }
	.npc-cc__name { font-size: 15px; }
	.npc-cc__desc { font-size: 13px; line-height: 1.5; }
	.npc-cc__always { font-size: 12px; }
	.npc-cc__acts { gap: 8px; margin-top: 16px; }
	.npc-cc__title { margin-right: 48px; font-size: 20px; }
	.npc-cc__acts .npc-cc__btn { flex: 1 1 100%; }
	.npc-footer__bottom { flex-wrap: wrap; }
}
