/* =============================================================
   SOLECOVIA · COOKIE CONSENT BANNER
   Sticky bottom banner, dark surface with the site green CTA.
   ============================================================= */

.sc-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #1a1a1a;
  color: #ffffff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 220ms ease-out;
}

.sc-cookie-banner.is-visible {
  transform: translateY(0);
}

.sc-cookie-banner.is-leaving {
  transform: translateY(100%);
}

.sc-cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  justify-content: space-between;
}

.sc-cookie-banner__message {
  margin: 0;
  flex: 1 1 320px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #ffffff;
}

.sc-cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.sc-cookie-banner__decline {
  color: #ffffff;
  text-decoration: underline;
  font-size: 0.9rem;
  background: transparent;
  border: 0;
  padding: 0.25rem 0;
  cursor: pointer;
}

.sc-cookie-banner__decline:hover,
.sc-cookie-banner__decline:focus {
  color: #ffffff;
  opacity: 0.85;
}

.sc-cookie-banner__accept {
  background: var(--soleco-green, #30824a);
  color: #ffffff;
  border: 0;
  border-radius: var(--soleco-radius, 3px);
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 160ms ease, opacity 160ms ease;
}

.sc-cookie-banner__accept:hover,
.sc-cookie-banner__accept:focus {
  background: var(--soleco-green-dark, #1f5c34);
}

.sc-cookie-banner__accept:focus-visible,
.sc-cookie-banner__decline:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .sc-cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
  }
  .sc-cookie-banner__message {
    flex: 0 0 auto;
    font-size: 0.85rem;
  }
  .sc-cookie-banner__actions {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sc-cookie-banner {
    transition: none;
  }
}
