/* ============================================================
   EYCIA — Cookie Consent Banner Styles
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
  transform: translateY(100%);
  transition: transform .4s ease;
  pointer-events: none;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.cookie-banner__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .15rem;
}

.cookie-banner__icon i {
  color: var(--navy);
  font-size: .95rem;
}

.cookie-banner__body {
  flex: 1;
}

.cookie-banner__body p {
  margin: 0;
  font-size: .85rem;
  line-height: 1.55;
  color: rgba(255,255,255,.88);
}

.cookie-banner__body a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__body a:hover {
  color: var(--gold);
}

.cookie-banner__actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: stretch;
  min-width: 140px;
}

.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem 1.1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
  text-align: center;
  white-space: nowrap;
}

.cookie-banner__btn:active {
  transform: scale(.97);
}

.cookie-banner__btn--accept {
  background: var(--gold);
  color: var(--navy);
}

.cookie-banner__btn--accept:hover {
  background: var(--gold-light);
}

.cookie-banner__btn--decline {
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.25);
}

.cookie-banner__btn--decline:hover {
  background: rgba(255,255,255,.08);
  color: var(--white);
}

.cookie-banner__btn--settings {
  background: transparent;
  color: rgba(255,255,255,.55);
  font-size: .72rem;
  padding: .35rem .8rem;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__btn--settings:hover {
  color: var(--white);
}

/* --- Cookie Settings Modal --- */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.cookie-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cookie-modal {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform .3s ease;
}

.cookie-modal-overlay.is-open .cookie-modal {
  transform: translateY(0);
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--grey-200);
}

.cookie-modal__header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--navy);
}

.cookie-modal__close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--grey-500);
  padding: .25rem;
  line-height: 1;
}

.cookie-modal__close:hover {
  color: var(--navy);
}

.cookie-modal__body {
  padding: 1.25rem 1.5rem;
}

.cookie-modal__desc {
  font-size: .85rem;
  color: var(--grey-700);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.cookie-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: .85rem 0;
  border-bottom: 1px solid var(--grey-100);
}

.cookie-item:last-child {
  border-bottom: none;
}

.cookie-item__info h4 {
  margin: 0 0 .2rem;
  font-size: .9rem;
  color: var(--navy);
}

.cookie-item__info p {
  margin: 0;
  font-size: .78rem;
  color: var(--grey-500);
  line-height: 1.5;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  margin-top: .15rem;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--grey-300);
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s;
}

.cookie-toggle__slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform .25s;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background: var(--gold);
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
  transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
  background: var(--grey-200);
  cursor: not-allowed;
}

.cookie-modal__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--grey-200);
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
}

.cookie-modal__footer .btn {
  font-size: .82rem;
  padding: .5rem 1.25rem;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-direction: column;
    padding: 1rem;
    gap: .85rem;
  }
  .cookie-banner__actions {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }
  .cookie-banner__btn--settings {
    width: 100%;
    text-align: center;
  }
}
