:root {
	--kcc-navy: #102d4f;
	--kcc-navy-light: #123e68;
	--kcc-yellow: #ffd438;
	--kcc-paper: #f8f9fb;
	--kcc-ink: #26323d;
}

html.kcc-open { overflow: hidden; }
.kcc[hidden], .kcc [hidden], .kcc-manage[hidden] { display: none !important; }
.kcc { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 24px; font-family: inherit; }
.kcc__backdrop { position: absolute; inset: 0; background: rgba(10, 30, 50, .58); backdrop-filter: blur(2px); }
.kcc__dialog { position: relative; width: min(760px, 100%); max-height: calc(100vh - 48px); overflow: auto; box-sizing: border-box; padding: 30px; color: var(--kcc-ink); background: var(--kcc-paper); border: 1px solid rgba(16, 45, 79, .16); border-radius: 18px; box-shadow: 0 22px 70px rgba(10, 30, 50, .3); }
.kcc__eyebrow { margin: 0 0 6px; color: var(--kcc-navy-light); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.kcc h2 { margin: 0 0 4px; color: var(--kcc-navy); font-size: clamp(22px, 3vw, 30px); line-height: 1.2; }
.kcc__intro { margin: 0 0 16px; color: #526477; font-size: 14px; }
.kcc__category { display: flex; align-items: center; justify-content: space-between; gap: 22px; border-top: 1px solid rgba(16, 45, 79, .16); padding: 16px 0; }
.kcc__category strong, .kcc__category div > span { display: block; }
.kcc__category strong { color: var(--kcc-navy); font-size: 16px; }
.kcc__category div > span { margin-top: 3px; color: #526477; font-size: 13px; line-height: 1.45; }
.kcc__switch { position: relative; flex: 0 0 50px; width: 50px; height: 28px; }
.kcc__switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.kcc__switch > span:last-child { position: absolute; inset: 0; border-radius: 30px; background: #b9c4cf; cursor: pointer; transition: background .16s ease; }
.kcc__switch > span:last-child::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .22); transition: transform .16s ease; }
.kcc__switch input:checked + span { background: var(--kcc-navy-light); }
.kcc__switch input:checked + span::after { transform: translateX(22px); }
.kcc__switch input:disabled + span { cursor: not-allowed; opacity: .7; }
.kcc__privacy { display: inline-block; margin-top: 2px; color: var(--kcc-navy-light); text-decoration: underline; font-size: 14px; }
.kcc__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 22px; }
.kcc__button { min-height: 48px; border: 2px solid var(--kcc-navy-light); border-radius: 11px; padding: 10px 14px; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.kcc__button:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(16, 45, 79, .16); }
.kcc__button--save { background: var(--kcc-navy-light); color: #fff; }
.kcc__button--accept { background: var(--kcc-yellow); color: var(--kcc-navy); }
.kcc__button--reject { background: #fff; color: var(--kcc-navy); }
.kcc__button:focus-visible, .kcc-manage:focus-visible, .kcc__privacy:focus-visible, .kcc__switch input:focus-visible + span { outline: 3px solid #1a73e8; outline-offset: 3px; }
.kcc-manage { position: fixed; z-index: 2147482000; left: 16px; bottom: 16px; border: 1px solid rgba(16, 45, 79, .26); border-radius: 999px; padding: 9px 14px; background: #fff; color: var(--kcc-navy); box-shadow: 0 5px 18px rgba(10, 30, 50, .18); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }

@media (max-width: 680px) {
	.kcc { padding: 12px; }
	.kcc__dialog { max-height: calc(100vh - 24px); border-radius: 15px; padding: 20px 18px; }
	.kcc__actions { grid-template-columns: 1fr; gap: 9px; margin-top: 18px; }
	.kcc__category { gap: 14px; padding: 13px 0; }
	.kcc-manage { left: 10px; bottom: 10px; padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.kcc__button, .kcc__switch > span:last-child, .kcc__switch > span:last-child::after { transition: none; }
}
