/* ============================================================
   FLOREA GRUP — Cookie consent UI
   ============================================================ */

/* ---------- Floating manage button ---------- */
.ck-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 1px solid var(--line-dark);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(24,23,21,.5);
  transition: transform .3s var(--ease), background .3s;
}
.ck-fab:hover { transform: translateY(-3px); background: var(--red); border-color: var(--red); }
.ck-fab svg { width: 22px; }

/* ---------- Banner ---------- */
.ck-banner {
  position: fixed; inset: auto 0 0 0; z-index: 95;
  background: rgba(245,244,242,0.96); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 40px -20px rgba(24,23,21,.3);
  animation: ckUp .5s var(--ease) both;
}
@keyframes ckUp { from { transform: translateY(100%); } to { transform: none; } }
.ck-banner__inner { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 3rem); padding-block: 1.3rem; }
.ck-banner__text { flex: 1; }
.ck-banner__head { display: flex; align-items: center; gap: 0.5em; font-family: var(--display); font-size: 1.02rem; color: var(--ink); margin-bottom: 0.3rem; }
.ck-banner__head svg { color: var(--red); }
.ck-banner__text p { font-size: 0.92rem; color: var(--graphite); max-width: 80ch; line-height: 1.55; }
.ck-banner__text a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ck-banner__actions { display: flex; gap: 0.7rem; flex: none; }
.ck-banner__actions .btn { padding: 0.8em 1.3em; font-size: 0.9rem; }
@media (max-width: 920px) {
  .ck-banner__inner { flex-direction: column; align-items: stretch; }
  .ck-banner__actions { flex-wrap: wrap; }
  .ck-banner__actions .btn { flex: 1; justify-content: center; min-width: 140px; }
}

/* ---------- Modal ---------- */
.ck-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(24,23,21,0.55); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 20px;
  animation: ckFade .25s ease both;
}
@keyframes ckFade { from { opacity: 0; } to { opacity: 1; } }
.ck-modal {
  width: min(840px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--paper); border-radius: 8px; border: 1px solid var(--line);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: 0 40px 90px -30px rgba(24,23,21,.6);
  animation: ckPop .35s var(--ease) both;
}
@keyframes ckPop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.ck-modal__head { display: flex; justify-content: space-between; align-items: center; }
.ck-x { background: none; border: 0; cursor: pointer; color: var(--steel); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; transition: all .2s; }
.ck-x:hover { background: var(--paper-2); color: var(--ink); }
.ck-x svg { width: 20px; }
.ck-modal__intro { margin-top: 0.6rem; font-size: 0.95rem; max-width: 70ch; }

.ck-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin: 1.5rem 0; }
@media (max-width: 640px) { .ck-grid { grid-template-columns: 1fr; } }

.ck-cat {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: 1.1rem 1.2rem; cursor: pointer;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.ck-cat:hover { border-color: var(--concrete); }
.ck-cat.is-on { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.ck-cat.is-locked { cursor: default; background: var(--paper-2); }
.ck-cat input { position: absolute; opacity: 0; pointer-events: none; }
.ck-cat__top { display: flex; align-items: center; gap: 0.6rem; }
.ck-cat__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--red-wash); color: var(--red); flex: none; }
.ck-cat.is-locked .ck-cat__icon { background: var(--paper-3); color: var(--steel); }
.ck-cat__name { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--ink); flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.ck-cat__name em { font-style: normal; font-weight: 500; font-size: 0.74rem; color: var(--steel); margin-top: 2px; }
.ck-cat__desc { display: block; margin-top: 0.7rem; font-size: 0.86rem; color: var(--graphite); line-height: 1.5; }

/* switch */
.ck-switch { flex: none; width: 42px; height: 24px; border-radius: 100px; background: var(--paper-3); position: relative; transition: background .25s var(--ease); }
.ck-switch span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.ck-switch.on { background: var(--red); }
.ck-switch.on span { transform: translateX(18px); }
.ck-cat.is-locked .ck-switch { background: var(--red); opacity: .5; }
.ck-cat.is-locked .ck-switch span { transform: translateX(18px); }

.ck-modal__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 0.4rem; }
.ck-modal__foot-r { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.ck-modal__foot .btn { padding: 0.8em 1.3em; font-size: 0.9rem; }
@media (max-width: 560px) {
  .ck-modal__foot { flex-direction: column-reverse; align-items: stretch; }
  .ck-modal__foot-r { flex-direction: column; }
  .ck-modal__foot .btn { width: 100%; justify-content: center; }
}
