/* Vaikų krautuvė: cookie consent card (injected by js/cookie.js) */

.ck {
  position: fixed; left: 24px; bottom: 24px; z-index: 400;
  width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain;
  padding: 22px 22px 18px; border-radius: var(--radius-l, 24px);
  background: var(--c-white, #fff); color: var(--c-navy, #1F2A44);
  box-shadow: 0 0 0 1px var(--c-line, #E7DED0), 0 24px 56px rgba(31, 42, 68, .2);
  font-size: 15px; line-height: 1.5;
  transform: translateY(16px); opacity: 0; transition: transform .3s var(--ease, ease), opacity .3s var(--ease, ease);
}
.ck.is-visible { transform: none; opacity: 1; }
.ck[hidden] { display: none; }

.ck__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ck__icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--t-sun, #FBEBC8); color: var(--t-sun-ink, #A86A00); transform: rotate(-4deg); }
.ck__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ck__title { margin: 0; font-family: var(--font-display, sans-serif); font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.ck__text { margin: 0; color: var(--c-navy-soft, #3A4664); }
.ck__text a, .ck__link { color: var(--c-navy, #1F2A44); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

.ck__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
/* Equal size and weight for accept and reject (EU / VDAI guidance) */
.ck__btn { min-height: 46px; padding: 0 14px; border: 0; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 700; line-height: 1.15; cursor: pointer; transition: background-color .2s var(--ease, ease); }
.ck__btn--accept { background: var(--c-tomato, #E5533A); color: #fff; }
.ck__btn--accept:hover { background: var(--c-tomato-dark, #C9402A); }
.ck__btn--reject { background: var(--c-navy, #1F2A44); color: #fff; }
.ck__btn--reject:hover { background: var(--c-navy-soft, #3A4664); }
.ck__more { display: block; margin: 12px auto 0; padding: 4px 8px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--c-navy, #1F2A44); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ck__more[hidden] { display: none; }
.ck__more:hover { color: var(--c-tomato-dark, #C9402A); }

/* Settings panel */
.ck__prefs { margin-top: 14px; border-top: 1px solid var(--c-line, #E7DED0); }
.ck__prefs[hidden] { display: none; }
.ck__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--c-line, #E7DED0); }
.ck__row-title { font-size: 15px; font-weight: 700; }
.ck__row-text { grid-column: 1; font-size: 14px; line-height: 1.4; color: var(--c-muted, #6B6F7B); }
.ck__lock { grid-row: 1 / span 2; grid-column: 2; font-size: 14px; font-weight: 700; color: var(--c-sage, #3F7D5C); white-space: nowrap; }

/* Toggle switch */
.ck__switch { position: relative; grid-row: 1 / span 2; grid-column: 2; width: 46px; height: 28px; flex: none; }
.ck__switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.ck__track { position: absolute; inset: 0; border-radius: 999px; background: var(--c-line-strong, #D6C9B5); transition: background-color .2s var(--ease, ease); }
.ck__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(31, 42, 68, .25); transition: transform .2s var(--ease, ease); }
.ck__switch input:checked + .ck__track { background: var(--c-sage, #3F7D5C); }
.ck__switch input:checked + .ck__track::after { transform: translateX(18px); }
.ck__switch input:focus-visible + .ck__track { outline: 2px solid var(--c-tomato, #E5533A); outline-offset: 2px; }

.ck.is-prefs .ck__actions { margin-top: 14px; }

@media (max-width: 760px) {
  .ck { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px 16px 14px; }
  body.has-buybar .ck { bottom: calc(var(--buybar-h, 76px) + 12px); }
}
@media (prefers-reduced-motion: reduce) { .ck { transition: none; } }
