/* Cookie banner + settings + reopen button (built by /assets/js/consent.js).
   Self-contained: loaded on every page, including pages that don't use site.css yet,
   so the tokens it needs are scoped to .ck (same names/values as site.css). */
.ck {
  --ck-ink: #090B0E; --ck-text-2: #45484E; --ck-text-3: #55585E; --ck-line: #DAD8D2; --ck-line-soft: #EEEDE8;
  --ck-accent: #FF6600; --ck-accent-text: #AD4600; --ck-accent-soft: #FFE3CF; --ck-ok: #11702F; --ck-off: #CFCDC6;
  --ck-shadow: 0 30px 70px -30px rgba(9, 11, 14, .45);
  font-family: 'CeraPro-Medium', system-ui, sans-serif; font-weight: 500; color: var(--ck-ink);
}
.ck *, .ck *::before, .ck *::after { box-sizing: border-box; }
.ck [hidden] { display: none !important; }
.ck button { font-family: inherit; cursor: pointer; margin: 0; }
.ck__title {
  margin: 0; font-family: 'CeraPro-Black', sans-serif; font-weight: 900; font-size: 20px; line-height: 1.25;
  letter-spacing: -.01em; color: var(--ck-ink); text-transform: none;
}
.ck__title span { color: var(--ck-accent); }
.ck__text { margin: 0; font-family: 'CeraPro-Regular', sans-serif; font-weight: 400; font-size: 15px; line-height: 1.55; color: var(--ck-text-2); }
.ck__text a { color: var(--ck-ink); text-decoration: underline; }
.ck__text a:hover { color: var(--ck-accent-text); }

/* banner */
.ck__banner {
  position: fixed; left: 32px; bottom: 32px; z-index: 9990; width: 480px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid var(--ck-line); border-top: 4px solid var(--ck-accent); border-radius: 16px;
  box-shadow: var(--ck-shadow); padding: 26px; display: flex; flex-direction: column; gap: 16px;
}
.ck__head { display: flex; gap: 14px; align-items: flex-start; }
.ck__head > div { display: flex; flex-direction: column; gap: 6px; }
.ck__icon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--ck-accent-soft);
  display: flex; align-items: center; justify-content: center; color: var(--ck-accent-text);
}
.ck__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ck__actions--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* "Απόρριψη" and "Αποδοχή όλων" are deliberately the same size */
.ck__btn {
  min-height: 48px; padding: 0 12px; border: 1px solid var(--ck-ink); border-radius: 10px;
  background: #fff; color: var(--ck-ink); font-size: 15px; line-height: 1.2; transition: background .15s, color .15s;
}
.ck__btn:hover { background: var(--ck-line-soft); }
.ck__btn--dark { background: var(--ck-ink); color: #fff; }
.ck__btn--dark:hover { background: var(--ck-accent); border-color: var(--ck-accent); color: #fff; }
.ck__link {
  align-self: center; min-height: 44px; padding: 0 12px; border: 0; background: transparent; font-size: 14px;
  color: var(--ck-accent-text); text-decoration: underline; text-underline-offset: 3px;
}
.ck__link:hover { color: var(--ck-ink); }

/* settings dialog */
.ck__overlay { position: fixed; inset: 0; z-index: 9991; background: rgba(9, 11, 14, .45); }
.ck__modal {
  position: fixed; left: 50%; top: 50%; z-index: 9992; transform: translate(-50%, -50%);
  width: 580px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(9, 11, 14, .55); display: flex; flex-direction: column;
}
.ck__modal-head {
  padding: 24px 28px; border-top: 4px solid var(--ck-accent); border-bottom: 1px solid var(--ck-line-soft);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.ck__modal-head .ck__title { font-size: 24px; letter-spacing: -.02em; }
.ck__close {
  flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ck-line); border-radius: 10px;
  background: #fff; color: var(--ck-ink); display: flex; align-items: center; justify-content: center;
}
.ck__cats { padding: 8px 28px; display: flex; flex-direction: column; }
.ck__cat { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--ck-line-soft); }
.ck__cat > div { display: flex; flex-direction: column; gap: 4px; }
.ck__cat-title { font-family: 'CeraPro-Black', sans-serif; font-weight: 800; font-size: 17px; }
.ck__cat .ck__text { font-size: 14px; line-height: 1.5; }
.ck__on { flex: 0 0 auto; font-size: 13px; color: var(--ck-ok); padding-top: 4px; }
.ck__switch {
  flex: 0 0 auto; position: relative; width: 52px; height: 30px; padding: 0; border: 0; border-radius: 99px;
  background: var(--ck-off); transition: background .15s;
}
.ck__switch::after {
  content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .15s;
}
.ck__switch[aria-checked="true"] { background: var(--ck-accent); }
.ck__switch[aria-checked="true"]::after { left: 26px; }
.ck__modal-foot { padding: 20px 28px 24px; }
.ck__modal-foot .ck__btn { font-size: 14px; }

/* reopen button (after a choice) */
.ck__reopen {
  position: fixed; left: 24px; bottom: 24px; z-index: 9980; width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--ck-line); border-radius: 50%; background: #fff; color: var(--ck-ink);
  box-shadow: 0 10px 30px -12px rgba(9, 11, 14, .4); display: flex; align-items: center; justify-content: center;
}
.ck__reopen:hover { color: var(--ck-accent-text); }
.ck__toast {
  position: fixed; left: 84px; bottom: 36px; z-index: 9980; font-size: 13px; color: var(--ck-text-3);
  background: #fff; border: 1px solid var(--ck-line); padding: 6px 12px; border-radius: 99px;
}
.ck button:focus-visible { outline: 2px solid var(--ck-accent-text); outline-offset: 2px; }

@media (max-width: 767px) {
  .ck__banner {
    left: 0; right: 0; bottom: 0; width: auto; max-width: none; border-radius: 20px 20px 0 0;
    border-left: 0; border-right: 0; border-bottom: 0; padding: 22px 20px 24px; gap: 14px;
    box-shadow: 0 -20px 50px -20px rgba(9, 11, 14, .45);
  }
  .ck__modal {
    left: 0; right: 0; bottom: 0; top: 64px; transform: none; width: auto; max-width: none; max-height: none;
    border-radius: 20px 20px 0 0;
  }
  .ck__modal-head { padding: 20px; }
  .ck__cats { padding: 4px 20px; flex: 1; }
  .ck__modal-foot { padding: 16px 20px 20px; }
  .ck__actions--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ck__actions--3 .ck__btn--dark { grid-column: span 2; order: -1; }
  .ck__reopen { left: 16px; bottom: 20px; }
  .ck__toast { left: 74px; bottom: 32px; }
  /* redesigned pages with the mobile sticky action bar */
  .has-sticky .ck__reopen { bottom: 92px; }
  .has-sticky .ck__toast { bottom: 104px; }
}
