/*
 * Cookie banner (charcoal, along the foot of the screen) and the cookie preferences dialog.
 * Reject and Accept carry equal weight; nothing optional is ticked to begin with.
 */

.ck { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--charcoal); color: var(--white); border-top: 3px solid var(--green); box-shadow: 0 -16px 40px rgba(0, 0, 0, .25); }
.ck-in { max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.ck-msg { flex: 1 1 560px; min-width: 0; }
.ck-h { margin: 0 0 6px; font-weight: 800; font-size: 18px; line-height: 1.25; color: var(--white); }
.ck-p { font-size: 15px; line-height: 1.6; color: var(--soft); }
.ck-p a { color: var(--white); font-weight: 600; }
@media (hover: hover) { .ck-p a:hover { color: var(--green); } }
.ck-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ck-b { min-height: 46px; padding: 0 20px; font-size: 15px; }

.ckd { width: calc(100% - 32px); max-width: 640px; max-height: calc(100% - 64px); margin: 48px auto auto; padding: 30px; border: 0; border-top: 3px solid var(--green); border-radius: var(--r-card); background: var(--white); color: var(--ink); box-shadow: 0 24px 64px rgba(0, 0, 0, .3); }
.ckd[open] { display: flex; flex-direction: column; gap: 18px; }
.ckd::backdrop { background: rgba(33, 33, 33, .6); }
.ckd-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ckd-h { font-weight: 800; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
.ckd-x { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); border: 1.5px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; }
@media (hover: hover) { .ckd-x:hover { border-color: var(--charcoal); background: var(--surface); } }
.ckd-intro { font-size: 16px; line-height: 1.6; color: var(--body); }
.ckd-cats { border-top: 1px solid var(--line); }
.ckd-cat { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ckd-cat-t { flex: 1; min-width: 0; }
.ckd-cat-t label { display: block; font-weight: 700; font-size: 16px; cursor: pointer; }
.ckd-cat-t p { margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--body); }
.ckd-sw { display: flex; align-items: center; gap: 10px; flex: none; min-height: 44px; font-size: 14px; font-weight: 600; cursor: pointer; }
.ckd-sw input { appearance: none; -webkit-appearance: none; position: relative; width: 48px; height: 28px; margin: 0; flex: none; border-radius: 999px; border: 1.5px solid var(--field); background: var(--white); cursor: pointer; }
.ckd-sw input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--field); }
.ckd-sw input:checked { border-color: var(--green-text); background: var(--green-text); }
.ckd-sw input:checked::after { translate: 20px 0; background: var(--white); }
.ckd-sw input:disabled { cursor: not-allowed; opacity: .7; }
.ckd-sw input:focus-visible { outline: 3px solid var(--green-text); outline-offset: 3px; }
.ckd-state { min-width: 4.5em; }
.ckd-sw input:checked ~ .ckd-state .ckd-off, .ckd-sw input:not(:checked) ~ .ckd-state .ckd-on { display: none; }
.ckd-btns { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.ckd-status:empty { display: none; }
.ckd-status { font-weight: 600; color: var(--green-text); }
.ckd-note { font-size: 15px; color: var(--body); }
.ckd-note a { font-weight: 600; }

@media (max-width: 600px) {
	.ck-in { padding: 18px var(--gutter) 20px; gap: 14px; }
	.ck-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
	.ck-b { padding: 0 12px; font-size: 14px; }
	.ck-manage { grid-column: 1 / -1; }
	.ckd { width: calc(100% - 16px); max-height: calc(100% - 32px); margin-top: 16px; padding: 22px 18px; gap: 14px; }
	.ckd-btns .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: no-preference) {
	.ck:not([hidden]) { animation: peiIn .6s var(--ease) .4s both; }
	.ckd[open] { animation: peiDrop .35s var(--ease) both; }
	.ckd[open]::backdrop { animation: peiFade .3s ease both; }
	.ckd-sw input::after { transition: translate .2s var(--ease), background-color .2s; }
	.ckd-sw input { transition: background-color .2s, border-color .2s; }
}
