/* Presentation only. The existing consent functions control display and consent. */
body.bouz-cookie-dialog-open {
  overflow: hidden;
}

#cookie-banner.bouz-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  padding: 24px;
  background: rgba(35, 29, 20, .56);
  color: #202020;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.65;
  overflow: auto;
  overscroll-behavior: contain;
}

#cookie-banner.bouz-cookie-modal[style*="display: block"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#cookie-banner .bouz-cookie-panel {
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 34px;
  background: #faf8f3;
  border: 1px solid #d9ccb0;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(20, 16, 9, .24);
  box-sizing: border-box;
}

#cookie-banner .bouz-cookie-brand {
  margin: 0 0 12px;
  color: #796338;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.5;
  text-transform: uppercase;
}

#cookie-banner .bouz-cookie-title {
  margin: 0 0 20px;
  color: #202020;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(29px, 5vw, 38px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
}

/* The heading receives initial focus for orientation; it is not a control. */
#cookie-banner .bouz-cookie-title:focus {
  outline: none;
}

#cookie-banner .bouz-cookie-copy {
  margin: 0 0 14px;
  color: #35312a;
  font-size: 15px;
  line-height: 1.65;
}

#cookie-banner .bouz-cookie-note {
  margin: 0 0 22px;
  color: #5e584e;
  font-size: 14px;
  line-height: 1.6;
}

#cookie-banner .bouz-cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#cookie-banner .bouz-cookie-choice {
  width: 100%;
  min-height: 54px;
  padding: 13px 14px;
  border: 1px solid #8f7440;
  border-radius: 12px;
  background: #8f7440;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

#cookie-banner .bouz-cookie-choice:hover {
  background: #796137;
  border-color: #796137;
}

#cookie-banner .bouz-cookie-choice:focus-visible,
#cookie-banner a:focus-visible,
.bouz-cookie-preferences-trigger:focus-visible {
  outline: 3px solid #5f4925;
  outline-offset: 4px;
}

#cookie-banner .bouz-cookie-links {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

#cookie-banner .bouz-cookie-links a {
  color: #715a30;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bouz-cookie-preferences-row {
  padding: 12px 20px 16px;
  text-align: center;
}

.bouz-cookie-preferences-trigger {
  appearance: none;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  color: #715a30;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 600px) {
  #cookie-banner.bouz-cookie-modal {
    padding: 16px;
  }

  #cookie-banner .bouz-cookie-panel {
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding: 26px 22px;
    border-radius: 20px;
  }

  #cookie-banner .bouz-cookie-actions {
    grid-template-columns: 1fr;
  }
}
