/* Cookie consent banner + settings modal
   Uses main.css custom properties where available, with hex fallbacks so the
   standalone legal pages (which don't load main.css) still render correctly. */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  background: var(--background-color, #ffffff);
  color: var(--default-color, #444444);
  border-top: 3px solid var(--accent-color, #ff4a17);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
}

.cookie-banner.cookie-banner--visible {
  display: block;
}

/* Bootstrap adds body.modal-open while the settings modal is showing;
   hide the banner underneath so it can't visually collide with the modal. */
body.modal-open .cookie-banner {
  display: none;
}

.cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner__text {
  flex: 1 1 320px;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-banner__text a {
  color: var(--accent-color, #ff4a17);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.cookie-banner__actions .btn {
  white-space: nowrap;
}

.cookie-banner__actions .btn-accent {
  background: var(--accent-color, #ff4a17);
  border-color: var(--accent-color, #ff4a17);
  color: #ffffff;
}

.cookie-banner__actions .btn-accent:hover {
  filter: brightness(0.92);
  color: #ffffff;
}

@media (max-width: 576px) {
  .cookie-banner {
    padding: 14px 16px 16px;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .btn {
    flex: 1 1 100%;
  }
}

/* Settings modal */
.cookie-consent-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cookie-consent-option:last-child {
  border-bottom: none;
}

.cookie-consent-option__label {
  font-weight: 600;
  margin-bottom: 4px;
}

.cookie-consent-option__desc {
  font-size: 0.88rem;
  color: var(--default-color, #444444);
  opacity: 0.85;
  margin: 0;
}

.cookie-consent-option .form-check.form-switch {
  padding-top: 2px;
  flex: 0 0 auto;
}

.cookie-consent-option .form-check-input {
  width: 2.5em;
  height: 1.4em;
}
