.helppl-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #11141b;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  padding: 1.25rem 1.5rem;
  font-family: Poppins, Barlow, system-ui, sans-serif;
}

.helppl-cookie-banner[hidden] {
  display: none !important;
}

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

.helppl-cookie-text {
  flex: 1 1 280px;
  min-width: 0;
}

.helppl-cookie-text h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #fff;
}

.helppl-cookie-text p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.helppl-cookie-text a {
  color: #e85d5d;
  text-decoration: underline;
}

.helppl-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.helppl-cookie-btn {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.helppl-cookie-btn:hover {
  transform: scale(0.98);
}

.helppl-cookie-btn:focus-visible {
  outline: 2px solid #e85d5d;
  outline-offset: 2px;
}

.helppl-cookie-btn--reject {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.helppl-cookie-btn--accept {
  background: #e85d5d;
  color: #fff;
}

@media (max-width: 767px) {
  /* The banner covered more than half of a phone screen when the buttons were
     stacked full width. Side by side keeps it around a third. */
  .helppl-cookie-banner {
    padding: 1rem 1.15rem;
    max-height: 60vh;
    overflow-y: auto;
  }

  .helppl-cookie-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
  }

  /* flex-basis: 280px applies to the height once the row becomes a column,
     which left a large empty gap between the text and the buttons. */
  .helppl-cookie-text {
    flex: 0 0 auto;
  }

  .helppl-cookie-text p {
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .helppl-cookie-actions {
    flex-direction: row;
  }

  .helppl-cookie-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.7rem 0.6rem;
    text-align: center;
  }
}

body.helppl-fonts-denied {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
}

body.helppl-fonts-denied .custom-font {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
}
