/* =============================================================
   HBC — samtyckesruta och platshållare för inbäddat innehåll
   Diskret kort nere till vänster, cremefärgat, skarpa hörn, Outfit.
   Acceptera och Avvisa har exakt samma vikt — inget mörkt mönster.
   ============================================================= */
.ck{
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 2147483000;
  width: min(440px, calc(100vw - 48px));
  font-family: "Outfit", "Helvetica Neue", Helvetica, system-ui, sans-serif;
  color: #1f1e1c;
}
.ck[hidden]{ display: none; }
.ck__box{
  background: #f5f1ec;
  border: 1px solid rgba(31,30,28,0.18);
  box-shadow: 0 18px 48px rgba(20,18,16,0.16);
  padding: 26px 26px 24px;
}
.ck__title{ margin: 0 0 8px; font-size: 16px; font-weight: 500; letter-spacing: -0.005em; }
.ck__text{ margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: #2b2a28; }
.ck__text a, .ck__cat-text a{ color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ck__actions{ display: flex; flex-wrap: wrap; gap: 8px; }
.ck__actions--panel{ margin-top: 18px; }
.ck__btn{
  appearance: none;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 11px 16px;
  border: 1px solid #1f1e1c;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, opacity .18s ease;
}
.ck__btn--primary{ background: #1f1e1c; color: #efe9e1; }
.ck__btn--primary:hover{ background: #000; }
.ck__btn--ghost{ background: transparent; color: #1f1e1c; border-color: rgba(31,30,28,0.35); }
.ck__btn--ghost:hover{ border-color: #1f1e1c; }
.ck__btn:focus-visible{ outline: 2px solid #1f1e1c; outline-offset: 2px; }

/* ---- inställningar ---- */
.ck__panel[hidden], .ck__intro[hidden]{ display: none; }
.ck__cat{ padding: 14px 0; border-top: 1px solid rgba(31,30,28,0.12); }
.ck__cat:first-child{ border-top: 0; padding-top: 0; }
.ck__cat-head{ display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ck__cat-name{ font-size: 14.5px; font-weight: 500; }
.ck__always{ font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #6b6660; }
.ck__cat-text{ margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: #2b2a28; }
.ck__switch{ display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.ck__switch input{ position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck__track{
  position: relative; width: 38px; height: 22px; flex: 0 0 auto;
  background: rgba(31,30,28,0.22); transition: background-color .18s ease;
}
.ck__track::after{
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  background: #f5f1ec; transition: transform .18s ease;
}
.ck__switch input:checked + .ck__track{ background: #1f1e1c; }
.ck__switch input:checked + .ck__track::after{ transform: translateX(16px); }
.ck__switch input:focus-visible + .ck__track{ outline: 2px solid #1f1e1c; outline-offset: 2px; }

/* ---- platshållare där inbäddat innehåll väntar på samtycke ---- */
.embed-placeholder{
  display: grid; place-items: center; text-align: center;
  padding: 36px 24px; min-height: 240px;
  background: #ede8df; color: #1f1e1c;
  font-family: "Outfit", "Helvetica Neue", Helvetica, system-ui, sans-serif;
}
.embed-placeholder[hidden]{ display: none; }
.embed-placeholder p{ margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: #2b2a28; max-width: 44ch; }
.embed-placeholder__actions{ display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.embed-placeholder .ck__btn{ font-size: 13px; padding: 10px 14px; }

@media (max-width: 560px){
  .ck{ left: 12px; right: 12px; bottom: 12px; width: auto; }
  .ck__box{ padding: 20px 18px 18px; }
  .ck__actions{ flex-direction: column; }
  .ck__btn{ width: 100%; }
}
@media (prefers-reduced-motion: reduce){
  .ck__btn, .ck__track, .ck__track::after{ transition: none; }
}

/* Sidornas egna regler sätter display på iframes — hidden måste vinna. */
iframe[data-consent][hidden]{ display: none !important; }
