/* /css/cookie-consent.css?v=2
   PRO CSS για το cookie-consent.js v2 (cc-root / cc-backdrop / cc-sheet / cc-settings)
   - Mobile-first, responsive
   - Fixes z-index / overlay issues
   - Scroll lock support (html.cc-open, body.cc-open)
   - Safe with hidden attr
*/

:root{
  --cc-bg: rgba(0,0,0,.62);
  --cc-card: rgba(16,18,24,.94);
  --cc-card-solid: #0f1218;
  --cc-border: rgba(255,255,255,.12);
  --cc-border2: rgba(255,255,255,.08);
  --cc-text: #ffffff;
  --cc-muted: rgba(255,255,255,.82);
  --cc-dim: rgba(255,255,255,.64);
  --cc-accent: #7fb3ff;

  --cc-radius: 18px;
  --cc-radius2: 16px;

  --cc-shadow: 0 24px 70px rgba(0,0,0,.55);
  --cc-shadow2: 0 -18px 50px rgba(0,0,0,.55);

  --cc-z-backdrop: 100000;
  --cc-z-sheet: 100001;
  --cc-z-settings: 100002;
}

html.cc-open, body.cc-open{
  overflow: hidden !important;
  overscroll-behavior: contain;
  touch-action: none;
}

/* Root wrapper (optional, but helps isolation) */
#cc-root{
  position: relative;
  z-index: var(--cc-z-backdrop);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* hidden always wins */
#cc-backdrop[hidden],
#cc-sheet[hidden],
#cc-settings[hidden]{
  display: none !important;
}

/* ---------------- Backdrop ---------------- */
#cc-backdrop{
  position: fixed;
  inset: 0;
  background: var(--cc-bg);
  z-index: var(--cc-z-backdrop);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ---------------- Bottom Sheet ---------------- */
#cc-sheet{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--cc-z-sheet);
  pointer-events: none; /* enabled only for card */

  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}

#cc-sheet.is-open{
  pointer-events: auto;
}

#cc-sheet .cc-card{
  pointer-events: auto;
  width: min(760px, 100%);
  margin: 0 auto;

  color: var(--cc-text);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), var(--cc-card-solid);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);

  box-shadow: var(--cc-shadow2);
  overflow: hidden;
  transform: translateY(115%);
  transition: transform .25s ease;
  will-change: transform;
}

#cc-sheet.is-open .cc-card{
  transform: translateY(0);
}

/* Handle */
#cc-sheet .cc-handle{
  width: 46px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  margin: 10px auto 8px;
}

/* Content */
#cc-sheet .cc-title{
  margin: 0;
  padding: 2px 16px 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .2px;
}

#cc-sheet .cc-text{
  margin: 0;
  padding: 6px 16px 12px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--cc-muted);
}

/* Actions */
#cc-sheet .cc-actions{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 0 16px 14px;
}

@media (max-width: 560px){
  #cc-sheet .cc-actions{
    grid-template-columns: 1fr 1fr;
  }
  #cc-sheet .cc-actions .cc-btn.linklike{
    grid-column: 1 / -1;
  }
}

/* Buttons */
#cc-root .cc-btn{
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--cc-border);
  background: rgba(255,255,255,.10);
  color: var(--cc-text);
  border-radius: 14px;

  padding: 12px 14px;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  user-select: none;

  transition: background .15s ease, transform .05s ease, border-color .15s ease;
}

#cc-root .cc-btn:hover{
  background: rgba(255,255,255,.14);
}

#cc-root .cc-btn:active{
  transform: translateY(1px);
}

#cc-root .cc-btn:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(127,179,255,.28);
  border-color: rgba(127,179,255,.55);
}

#cc-root .cc-btn.primary{
  background: linear-gradient(180deg, rgba(127,179,255,.30), rgba(127,179,255,.14));
  border-color: rgba(127,179,255,.45);
}

#cc-root .cc-btn.primary:hover{
  background: linear-gradient(180deg, rgba(127,179,255,.36), rgba(127,179,255,.18));
}

#cc-root .cc-btn.ghost{
  background: rgba(255,255,255,.06);
}

#cc-root .cc-btn.linklike{
  background: transparent;
  border-color: transparent;
  color: var(--cc-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 900;
}

#cc-root .cc-btn.linklike:hover{
  background: rgba(127,179,255,.10);
  border-color: rgba(127,179,255,.25);
  text-decoration: none;
}

/* Footer hint */
#cc-sheet .cc-foot{
  padding: 0 16px 14px;
}

#cc-sheet .cc-link{
  color: var(--cc-accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  opacity: .95;
}

#cc-sheet .cc-link:hover{
  text-decoration: underline;
}

/* ---------------- Settings Overlay ---------------- */
#cc-settings{
  position: fixed;
  inset: 0;
  z-index: var(--cc-z-settings);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px calc(14px + env(safe-area-inset-bottom));
  background: rgba(0,0,0,.70);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Card */
#cc-settings .cc-settings-card{
  width: min(560px, 96vw);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), var(--cc-card-solid);
  color: var(--cc-text);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius2);
  box-shadow: var(--cc-shadow);
  overflow: hidden;
}

/* Header */
#cc-settings .cc-settings-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--cc-border2);
}

#cc-settings .cc-settings-header .cc-title{
  font-size: 16px;
  font-weight: 950;
  letter-spacing: .2px;
}

#cc-settings .cc-x{
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--cc-border2);
  background: rgba(255,255,255,.06);
  color: var(--cc-text);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

#cc-settings .cc-x:hover{
  background: rgba(255,255,255,.10);
}

/* Toggles list */
#cc-settings .cc-toggles{
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}

#cc-settings .cc-toggle{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--cc-border2);
  background: rgba(255,255,255,.06);
}

#cc-settings .cc-toggle > div{
  display: grid;
  gap: 2px;
}

#cc-settings .cc-toggle strong{
  font-size: 14px;
  font-weight: 950;
}

#cc-settings .cc-toggle small{
  font-size: 12px;
  color: var(--cc-dim);
  line-height: 1.2;
}

/* Checkbox styling */
#cc-settings input[type="checkbox"]{
  width: 22px;
  height: 22px;
  accent-color: var(--cc-accent);
}

/* Actions in settings */
#cc-settings .cc-settings-actions{
  padding: 12px 14px 14px;
  border-top: 1px solid var(--cc-border2);
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 560px){
  #cc-settings .cc-settings-actions{
    grid-template-columns: 1fr;
  }
}

/* Make buttons full width in grid cells */
#cc-settings .cc-settings-actions .cc-btn{
  width: 100%;
}

/* ---------------- Mobile tuning ---------------- */
@media (max-width: 420px){
  #cc-sheet{
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  }

  #cc-sheet .cc-title{
    padding-left: 14px;
    padding-right: 14px;
  }

  #cc-sheet .cc-text{
    padding-left: 14px;
    padding-right: 14px;
  }

  #cc-sheet .cc-actions{
    padding-left: 14px;
    padding-right: 14px;
  }

  #cc-settings .cc-settings-card{
    width: 98vw;
  }
}

/* ---------------- Optional: reduce motion ---------------- */
@media (prefers-reduced-motion: reduce){
  #cc-sheet .cc-card{
    transition: none;
  }
  #cc-root .cc-btn{
    transition: none;
  }
}

```css
/* /css/cookie-consent.css */

/* Backdrop */
.cc-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9998;
}

/* Bottom sheet */
.cc-sheet{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;

  max-width: 760px;
  margin: 0 auto;

  background: #0f0f10;
  color: #fff;

  border-top-left-radius: 18px;
  border-top-right-radius: 18px;

  box-shadow: 0 -16px 40px rgba(0,0,0,.45);
  padding: 14px 16px 18px;

  transform: translateY(110%);
  transition: transform .25s ease;
  will-change: transform;
}

.cc-sheet.is-open{
  transform: translateY(0);
}

/* Handle */
.cc-handle{
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  margin: 6px auto 12px;
}

/* Text */
.cc-title{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .2px;
}

.cc-text{
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.35;
  opacity: .92;
}

/* Buttons */
.cc-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cc-btn{
  flex: 1;
  min-width: 140px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
}

.cc-btn:hover{
  background: rgba(255,255,255,.14);
}

.cc-btn:active{
  transform: translateY(1px);
}

.cc-btn:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(120,160,255,.35);
}

.cc-btn-ghost{
  flex-basis: 100%;
  background: transparent;
}

/* Footer link */
.cc-foot{
  margin-top: 10px;
}

.cc-link{
  color: #9cc2ff;
  text-decoration: none;
  font-size: 13px;
}

.cc-link:hover{
  text-decoration: underline;
}

/* Settings overlay */
.cc-settings{
  position: fixed;
  inset: 0;
  z-index: 10000;

  background: rgba(0,0,0,.60);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 14px;
}

/* Settings card */
.cc-settings-card{
  width: min(560px, 92vw);
  background: #0f0f10;
  color: #fff;

  border-radius: 16px;
  padding: 14px;

  box-shadow: 0 22px 60px rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.10);
}

.cc-settings-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cc-x{
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
}

.cc-x:hover{
  background: rgba(255,255,255,.10);
}

/* Toggles rows */
.cc-row{
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 10px 10px;
  background: rgba(255,255,255,.06);
  border-radius: 12px;

  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,.08);
}

.cc-row span{
  font-size: 14px;
  font-weight: 700;
  opacity: .95;
}

/* Inputs */
.cc-row input[type="checkbox"]{
  width: 20px;
  height: 20px;
  accent-color: #6ea2ff;
}

/* Mobile tuning */
@media (max-width: 420px){
  .cc-sheet{
    padding: 12px 14px 16px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }
  .cc-btn{
    min-width: 120px;
    padding: 12px 12px;
  }
}

/* Force hide when JS sets hidden=true */
#cc-backdrop[hidden],
#cc-sheet[hidden],
#cc-settings[hidden]{
  display: none !important;
}


.cc-lang{
  display:flex;
  gap:8px;
  margin:10px 0 6px;
}
.cc-lang-btn{
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color:#fff;
  font-weight:600;
  cursor:pointer;
}
.cc-lang-btn:hover{
  background: rgba(255,255,255,.12);
}

/* ===== Language row (responsive) — smaller flags, nice buttons ===== */

/* Language pills: ALWAYS one row, shrink to fit, never overflow */
#cc-sheet .cc-actions .cc-lang-pills{
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(6px, 2vw, 10px);
  width: 100%;
  align-items: stretch;

  /* safety */
  box-sizing: border-box;
  min-width: 0;
}

/* Each button shrinks evenly */
#cc-sheet .cc-actions .cc-lang-pills .cc-lang-pick{
  flex: 1 1 0;
  min-width: 0;              /* CRITICAL: allow shrinking */
  width: auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.6vw, 8px);

  padding: clamp(6px, 1.8vw, 10px) clamp(8px, 2vw, 12px);
  min-height: 42px;
  line-height: 1;

  white-space: nowrap;       /* keep in one line */
  overflow: hidden;          /* prevent overflow */
  text-overflow: ellipsis;   /* if label too long */
}

/* Flag scales down */
#cc-sheet .cc-actions .cc-lang-pills .cc-lang-pick .cc-flag{
  width: clamp(18px, 6vw, 26px);
  height: clamp(18px, 6vw, 26px);
  flex: 0 0 auto;
  object-fit: contain;
}

/* Optional: make label slightly smaller on small screens */
@media (max-width: 420px){
  #cc-sheet .cc-actions .cc-lang-pills .cc-lang-pick{
    font-size: 13px;
  }
}