/* ==========================================================================
   Cookie Consent Banner
   Cargado en app.blade.php — disponible en toda la plataforma.
   Autocontenido: no depende de btn--base, main.css ni style.css.
   ========================================================================== */

/* ── Card ── */
#cookie-consent {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999999;
  width: 420px;
  max-width: calc(100vw - 48px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 24px;
  transition: opacity .4s cubic-bezier(0.4, 0, 0.2, 1),
              transform .4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateY(0);
}

#cookie-consent.hide {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* ── Close ── */
#cookie-consent .cookies-card__close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color .2s;
}

#cookie-consent .cookies-card__close:hover {
  color: #475569;
}

/* ── Body (icon + text) ── */
#cookie-consent .cookies-card__body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* ── Icon ── */
#cookie-consent .cookies-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: hsl(var(--base));
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Text ── */
#cookie-consent .cookies-card__text {
  flex: 1;
  min-width: 0;
}

#cookie-consent .cookies-card__content {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #334155;
}

#cookie-consent .cookies-card__link {
  color: hsl(var(--base));
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

#cookie-consent .cookies-card__link:hover {
  opacity: 0.8;
}

/* ── Actions ── */
#cookie-consent .cookies-card__actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* ── Button ── */
#cookie-consent .cookies-card__btn {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 24px;
  border-radius: 8px;
  border: 2px solid hsl(var(--base));
  background: hsl(var(--base));
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s;
}

#cookie-consent .cookies-card__btn:hover {
  opacity: 0.85;
  color: #fff;
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  #cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    border-radius: 12px 12px 0 0;
    padding: 18px;
  }

  #cookie-consent .cookies-card__body {
    gap: 12px;
  }

  #cookie-consent .cookies-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 20px;
  }

  #cookie-consent .cookies-card__content {
    font-size: 0.78rem;
  }

  #cookie-consent .cookies-card__btn {
    font-size: 0.8rem;
    padding: 8px 20px;
  }
}
