/* ============================================================
   Ferreira Obras — Cookie Consent Banner
   RGPD / GDPR compliant | Consent Mode v2
   ============================================================ */

#fo-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #1A1A1A;
  color: #ffffff;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;

  /* Fade-in state — starts hidden */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

/* Visible state */
#fo-consent-banner.fo-consent--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hidden / dismissing state */
#fo-consent-banner.fo-consent--hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* ── Inner layout ──────────────────────────────────────────── */
.fo-consent__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ── Text block ────────────────────────────────────────────── */
.fo-consent__text {
  flex: 1 1 300px;
}

.fo-consent__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.fo-consent__body {
  margin: 0;
  color: #cccccc;
  font-size: 13px;
  line-height: 1.55;
}

/* ── Actions block ─────────────────────────────────────────── */
.fo-consent__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ── Base button styles ────────────────────────────────────── */
.fo-consent__btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  border: 2px solid transparent;
  line-height: 1.2;
  font-family: inherit;
}

/* Accept — golden CTA */
.fo-consent__btn--accept {
  background: #C9A96E;
  color: #1A1A1A;
  border-color: #C9A96E;
}

.fo-consent__btn--accept:hover,
.fo-consent__btn--accept:focus {
  background: #b8924e;
  border-color: #b8924e;
  outline: none;
}

/* Decline — white outline */
.fo-consent__btn--decline {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.fo-consent__btn--decline:hover,
.fo-consent__btn--decline:focus {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

/* More info — text link style */
.fo-consent__btn--more {
  background: transparent;
  color: #C9A96E;
  border-color: transparent;
  padding: 10px 8px;
  text-decoration: underline;
  font-weight: 500;
}

.fo-consent__btn--more:hover,
.fo-consent__btn--more:focus {
  color: #b8924e;
  outline: none;
}

/* ── Responsive / mobile ───────────────────────────────────── */
@media (max-width: 640px) {
  .fo-consent__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 16px 20px;
    gap: 14px;
  }

  .fo-consent__actions {
    width: 100%;
  }

  .fo-consent__btn--accept,
  .fo-consent__btn--decline {
    flex: 1;
    text-align: center;
  }

  .fo-consent__btn--more {
    width: 100%;
    text-align: center;
    padding: 6px 8px;
  }
}
