.ccp-root {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	color: #1b1b1b;
	-webkit-font-smoothing: antialiased;
}
.ccp-root *,
.ccp-root *::before,
.ccp-root *::after { box-sizing: border-box; }
.ccp-root button { font-family: inherit; cursor: pointer; margin: 0; }
.ccp-root p { margin: 0; }

html.ccp-no-scroll { overflow: hidden; }

@keyframes ccp-bar-in {
	from { opacity: 0; transform: translate(-50%, 24px); }
	to   { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes ccp-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ccp-pop-in {
	from { opacity: 0; transform: scale(.7); }
	to   { opacity: 1; transform: scale(1); }
}
@keyframes ccp-dialog-in {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Bottom bar ---------- */
.ccp-root .ccp-bar {
	display: none;
	position: fixed;
	left: 50%;
	bottom: 20px;
	z-index: 999990;
	align-items: center;
	gap: 22px;
	width: min(1150px, calc(100% - 40px));
	padding: 14px 20px 14px 24px;
	background: #fff;
	border-radius: 28px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .22), 0 2px 8px rgba(0, 0, 0, .08);
	transform: translateX(-50%);
}
.ccp-root .ccp-bar.is-visible {
	display: flex;
	animation: ccp-bar-in .35s ease both;
}

.ccp-bar__logo { display: flex; align-items: center; flex: 0 0 auto; }
.ccp-bar__logo-img { display: block; width: auto; max-width: 180px; }
.ccp-bar__logo-text { font-weight: 700; font-size: 18px; white-space: nowrap; }

.ccp-bar__sep { flex: 0 0 1px; align-self: stretch; margin: 4px 0; background: #dcdcdc; }

.ccp-bar__msg { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
.ccp-bar__icon { display: inline-flex; flex: 0 0 auto; font-size: 24px; color: #1b1b1b; }
.ccp-bar__msg p { font-size: 15px; font-weight: 500; }

.ccp-bar__actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

/* ---------- Buttons ---------- */
.ccp-root .ccp-btn {
	border: 0;
	border-radius: 999px;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	text-transform: none;
	letter-spacing: 0;
	transition: filter .15s ease, transform .1s ease;
}
.ccp-root .ccp-btn:hover { filter: brightness(.94); }
.ccp-root .ccp-btn:active { transform: scale(.98); }
.ccp-root .ccp-btn--primary { background: var(--ccp-primary, #e1212d); color: #fff; }
.ccp-root .ccp-btn--ghost { background: #efefef; color: #1b1b1b; }

.ccp-root .ccp-link {
	background: none;
	border: 0;
	padding: 8px 6px;
	font-size: 15px;
	font-weight: 700;
	color: #1b1b1b;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-transform: none;
	white-space: nowrap;
	box-shadow: none;
}
.ccp-root .ccp-link:hover { background: none; color: #1b1b1b; text-decoration-thickness: 2px; }

.ccp-root button:focus-visible,
.ccp-switch__input:focus-visible + .ccp-switch__slider {
	outline: 3px solid var(--ccp-primary, #e1212d);
	outline-offset: 2px;
}

/* ---------- Floating cookie button ---------- */
.ccp-root .ccp-icon-btn {
	display: none;
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 999980;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	font-size: 26px;
	color: var(--ccp-primary, #e1212d);
	background: #fff;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 6px 22px rgba(0, 0, 0, .22), 0 1px 4px rgba(0, 0, 0, .1);
	transition: transform .2s ease;
}
.ccp-root .ccp-icon-btn.is-visible {
	display: inline-flex;
	animation: ccp-pop-in .25s ease both;
}
.ccp-root .ccp-icon-btn:hover { transform: scale(1.08); background: #fff; color: var(--ccp-primary, #e1212d); }

/* ---------- Modal ---------- */
.ccp-root .ccp-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.ccp-root .ccp-modal.is-open {
	display: flex;
	animation: ccp-fade-in .2s ease both;
}
.ccp-modal__overlay { position: absolute; inset: 0; background: rgba(15, 15, 15, .55); }

.ccp-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 680px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 28px 32px;
	background: #fff;
	border-radius: 22px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
	outline: none;
	animation: ccp-dialog-in .25s ease both;
}

.ccp-root .ccp-modal__close {
	position: absolute;
	top: 20px;
	right: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	color: #444;
	background: #fff;
	border: 2px solid #8a8a8a;
	border-radius: 50%;
	transition: background .15s ease;
}
.ccp-root .ccp-modal__close:hover { background: #f1f1f1; color: #444; }

.ccp-root .ccp-modal__title { margin: 0 56px 6px 0; padding: 0; font-size: 21px; font-weight: 800; line-height: 1.25; color: #1b1b1b; }
.ccp-root .ccp-modal__desc { margin: 0 56px 18px 0; font-size: 15px; color: #555; }

.ccp-cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 16px 0;
	border-top: 1px solid #e6e6e6;
}
.ccp-cat:first-child { border-top: 0; padding-top: 6px; }
.ccp-cat__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ccp-cat__text strong { font-size: 16px; font-weight: 800; color: #1b1b1b; }
.ccp-cat__text span { font-size: 15px; color: #555; }
.ccp-cat__always { flex: 0 0 auto; font-size: 14px; font-weight: 700; color: #666; white-space: nowrap; }

.ccp-modal__footer {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 8px;
	padding-top: 20px;
	border-top: 1px solid #e6e6e6;
}

/* ---------- Switch ---------- */
.ccp-switch { position: relative; display: inline-block; flex: 0 0 auto; width: 52px; height: 30px; cursor: pointer; }
.ccp-root .ccp-switch__input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}
.ccp-switch__slider {
	position: absolute;
	inset: 0;
	background: #cfcfcf;
	border-radius: 999px;
	transition: background .2s ease;
	pointer-events: none;
}
.ccp-switch__slider::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 24px;
	height: 24px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
	transition: transform .2s ease;
}
.ccp-switch__input:checked + .ccp-switch__slider { background: var(--ccp-primary, #e1212d); }
.ccp-switch__input:checked + .ccp-switch__slider::before { transform: translateX(22px); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.ccp-root .ccp-bar {
		flex-wrap: wrap;
		gap: 14px;
		bottom: 12px;
		width: calc(100% - 24px);
		padding: 18px;
		border-radius: 22px;
	}
	.ccp-bar__sep { display: none; }
	.ccp-bar__logo { flex: 1 0 100%; }
	.ccp-bar__msg { flex: 1 0 100%; }
	.ccp-bar__actions { flex: 1 0 100%; flex-wrap: wrap; justify-content: space-between; }
	.ccp-root .ccp-bar__actions .ccp-link { flex: 1 0 100%; text-align: center; order: 3; }
	.ccp-root .ccp-bar__actions .ccp-btn { flex: 1 1 0; }
	.ccp-root .ccp-icon-btn { left: 12px; bottom: 12px; }
	.ccp-modal__dialog { padding: 22px 20px; }
	.ccp-root .ccp-modal__title, .ccp-root .ccp-modal__desc { margin-right: 46px; }
	.ccp-root .ccp-modal__close { top: 14px; right: 14px; }
	.ccp-modal__footer { flex-direction: column-reverse; }
	.ccp-root .ccp-modal__footer .ccp-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.ccp-root *, .ccp-root { animation: none !important; transition: none !important; }
}
