.cookie-banner,
.cookie-settings-button,
.cookie-modal {
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

.cookie-banner[hidden],
.cookie-settings-button[hidden],
.cookie-modal[hidden] {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  z-index: 1100;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid #dce5e1;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 12px 45px rgba(15, 39, 42, 0.22);
  color: #173239;
}

.cookie-banner__content {
  max-width: 660px;
}

.cookie-banner h2,
.cookie-modal h2 {
  margin: 0 0 0.45rem;
  color: #173239;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
}

.cookie-banner p,
.cookie-modal p {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
}

.cookie-banner a {
  color: #1e4b48;
  font-size: 0.9rem;
  text-decoration: underline;
}

.cookie-banner__actions,
.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.cookie-button {
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border: 1px solid #1e4b48;
  border-radius: 0.35rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
}

.cookie-button:focus-visible,
.cookie-settings-button:focus-visible,
.cookie-option input:focus-visible {
  outline: 3px solid #c8a76a;
  outline-offset: 3px;
}

.cookie-button--primary {
  background: #1e4b48;
  color: #fff;
}

.cookie-button--primary:hover {
  background: #153936;
}

.cookie-button--secondary {
  background: #fff;
  color: #1e4b48;
}

.cookie-button--secondary:hover {
  background: #f2f6f4;
}

.cookie-settings-button {
  position: fixed;
  z-index: 1090;
  right: 1rem;
  bottom: 1rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid #1e4b48;
  border-radius: 2rem;
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 39, 42, 0.18);
  color: #1e4b48;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
}

.cookie-modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  padding: 1rem;
  place-items: center;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 30, 0.66);
}

.cookie-modal__panel {
  position: relative;
  width: min(100%, 600px);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  color: #173239;
}

.cookie-modal__panel h2 {
  font-size: 1.5rem;
}

.cookie-option {
  display: flex;
  margin: 0;
  padding: 1rem 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #e4eae7;
  cursor: pointer;
}

.cookie-option span {
  display: grid;
  gap: 0.2rem;
}

.cookie-option small {
  color: #56686a;
  font-size: 0.85rem;
}

.cookie-option input {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  accent-color: #1e4b48;
}

.cookie-modal__actions {
  margin-top: 1rem;
}

.cookie-status {
  color: #9b2828;
  font-weight: 600;
}

body.cookie-preferences-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .cookie-banner {
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    display: block;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1rem;
  }

  .cookie-banner__actions {
    margin-top: 0.8rem;
    justify-content: stretch;
  }

  .cookie-banner__actions .cookie-button,
  .cookie-modal__actions .cookie-button {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner *,
  .cookie-modal * {
    scroll-behavior: auto;
  }
}
