/* ═══════════════════════════════════════════════════════
   TELOIS — Cookie Consent
═══════════════════════════════════════════════════════ */

.cc-banner {
  position: fixed;
  bottom: var(--s4);
  inset-inline: var(--s4);
  z-index: 9998;
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card), var(--shadow-gold);
  padding: var(--s6);
  display: flex;
  align-items: center;
  gap: var(--s6);
  font-family: var(--font-body);
  color: var(--text);
  direction: rtl;
  animation: cc-slide-up 0.5s var(--ease) forwards;
}

@keyframes cc-slide-up {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.cc-banner__text {
  flex: 1;
  min-width: 0;
}

.cc-banner__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: var(--s2);
}

.cc-banner__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.cc-banner__actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cc-btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: var(--s3) var(--s5);
  border-radius: var(--r-full);
  border: 1px solid transparent;
  transition: all var(--t-base);
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}

.cc-btn--gold {
  background: linear-gradient(135deg, var(--gold) 0%, #A8872A 100%);
  color: #07111C;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(201, 168, 76, 0.28);
}
.cc-btn--gold:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-gold);
}

.cc-btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hover);
}
.cc-btn--ghost:hover {
  border-color: var(--gold-border);
  color: var(--gold-light);
}

.cc-btn--link {
  background: transparent;
  color: var(--text-muted);
  padding: var(--s2) var(--s2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cc-btn--link:hover { color: var(--gold-light); }

/* ── Modal ── */
.cc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(7, 17, 28, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s4);
  animation: cc-fade-in 0.25s var(--ease) forwards;
}

@keyframes cc-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cc-modal {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card), var(--shadow-gold);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--s8);
  direction: rtl;
  color: var(--text);
  font-family: var(--font-body);
  animation: cc-modal-pop 0.35s var(--ease) forwards;
}

@keyframes cc-modal-pop {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.cc-modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-light);
  margin-bottom: var(--s2);
}

.cc-modal__intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--s6);
  line-height: 1.6;
}

.cc-option {
  border-top: 1px solid var(--border);
  padding: var(--s5) 0;
}

.cc-option__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  margin-bottom: var(--s2);
}

.cc-option__name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.cc-option__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Toggle switch */
.cc-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.cc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cc-toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--bg-input);
  border: 1px solid var(--border-hover);
  border-radius: var(--r-full);
  transition: all var(--t-base);
  cursor: pointer;
}
.cc-toggle__slider::before {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--t-base);
}
.cc-toggle input:checked + .cc-toggle__slider {
  background: var(--gold-dim);
  border-color: var(--gold-border);
}
.cc-toggle input:checked + .cc-toggle__slider::before {
  right: calc(100% - 22px);
  background: var(--gold);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.6);
}
.cc-toggle input:disabled + .cc-toggle__slider {
  opacity: 0.7;
  cursor: not-allowed;
}

.cc-modal__actions {
  display: flex;
  gap: var(--s3);
  justify-content: flex-end;
  margin-top: var(--s8);
  padding-top: var(--s6);
  border-top: 1px solid var(--border);
}

/* ── Mobile ── */
@media (max-width: 720px) {
  .cc-banner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s4);
    bottom: var(--s2);
    inset-inline: var(--s2);
    padding: var(--s5);
  }
  .cc-banner__actions {
    justify-content: stretch;
  }
  .cc-banner__actions .cc-btn {
    flex: 1;
    min-width: 0;
  }
  .cc-banner__actions .cc-btn--link {
    flex-basis: 100%;
    order: 3;
  }
  .cc-modal {
    padding: var(--s6);
  }
  .cc-modal__title {
    font-size: 1.25rem;
  }
  .cc-modal__actions {
    flex-direction: column-reverse;
  }
  .cc-modal__actions .cc-btn {
    width: 100%;
  }
}
