.cookie-consent[hidden],
.cookie-consent [hidden] {
  display: none !important;
}

.cookie-consent {
  position: fixed;
  z-index: 1100;
  bottom: 1rem;
  left: 1rem;
  width: min(34rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 1.5rem;
  color: #202838;
  background: #fff;
  border: 1px solid #ccd5e3;
  border-top: 4px solid var(--belisia-blue-deep, #0a70b8);
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-consent h2 {
  margin: 0 0 0.75rem;
  color: #202838;
  font-family: var(--font-body, Arial, sans-serif);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}

.cookie-consent p {
  margin: 0 0 0.75rem;
}

.cookie-consent-details {
  margin-bottom: 0.75rem;
}

.cookie-consent-details summary {
  display: none;
  color: var(--belisia-blue-dark, #075b96);
  font-weight: 600;
  cursor: pointer;
}

.cookie-consent-details p {
  margin: 0;
}

.cookie-consent-status:empty {
  display: none;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cookie-consent-actions button {
  flex: 1 1 12rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--belisia-blue-deep, #0a70b8);
  border-radius: 0.35rem;
  color: var(--belisia-blue-dark, #075b96);
  background: #eef4ff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cookie-consent-actions button:hover {
  background: #dce8ff;
}

.site-footer .cookie-settings,
.cookie-consent-close {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-consent-close {
  margin-top: 1rem;
}

.cookie-consent :focus-visible,
.site-footer .cookie-settings:focus-visible {
  outline: 3px solid var(--belisia-blue-deep, #0a70b8);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .cookie-consent {
    padding: 1rem;
  }

  .cookie-consent-details summary {
    display: list-item;
  }

  .cookie-consent-details[open] summary {
    margin-bottom: 0.5rem;
  }

  .cookie-consent-actions button {
    flex-basis: 0;
  }
}
