/* Banner de cookies — layout moderno */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  pointer-events: none;
  opacity: 0;
  transform: translateY(110%);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

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

.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e3ebe8;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(25, 55, 47, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
  font-family: "Lato", sans-serif;
}

.cookie-banner__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef6f2 0%, #dceee6 100%);
  color: #19372F;
  font-size: 22px;
}

.cookie-banner__content {
  flex: 1;
  min-width: 0;
}

.cookie-banner__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #19372F;
  letter-spacing: 0.02em;
}

.cookie-banner__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #5a6562;
}

.cookie-banner__text strong {
  font-weight: 700;
  color: #2c3532;
}

.cookie-banner__link {
  color: #19372F;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__link:hover {
  color: #122820;
  text-decoration: none;
}

.cookie-banner__actions {
  flex-shrink: 0;
}

.cookie-banner__accept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: 10px;
  background: #19372F;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: "Lato", sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.cookie-banner__accept:hover {
  background: #122820;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(25, 55, 47, 0.25);
}

.cookie-banner__accept:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(25, 55, 47, 0.25);
}

/* Esconde banner legado cookieconsent2 se ainda carregar */
.cc_banner-wrapper,
.cc_container {
  display: none !important;
}

@media (max-width: 767px) {
  .cookie-banner {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0));
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    border-radius: 14px;
  }

  .cookie-banner__icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .cookie-banner__title {
    font-size: 14px;
  }

  .cookie-banner__text {
    font-size: 12px;
    line-height: 1.5;
  }

  .cookie-banner__accept {
    width: 100%;
    min-width: 0;
  }
}
