.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2C5E3B;
    color: #ffffff;
    padding: 1rem;
    z-index: 1080;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
}

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

.cookie-consent-banner p {
    margin: 0;
    font-size: 0.9rem;
    max-width: 640px;
}

.cookie-consent-banner a {
    color: #FAF7F2;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Both choices look identical: a less visible "Decline" would nudge
   visitors towards "Accept" (EDPB guidance on cookie banners), and
   sage-on-forest text was unreadable (contrast 1.3:1). */
.cookie-consent-banner .cookie-choice {
    background-color: #FAF7F2;
    color: #2C5E3B;
    border: 2px solid #FAF7F2;
    font-weight: 600;
}

.cookie-consent-banner .cookie-choice:hover,
.cookie-consent-banner .cookie-choice:focus-visible {
    background-color: #ffffff;
    color: #2C5E3B;
    border-color: #ffffff;
}

/* Dialog (set by consent.js on most pages): the page is dimmed and can't be
   used until the visitor picks Accept or Decline. Both buttons get the same
   width, so neither stands out. */
.cookie-consent-banner.is-dialog {
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.55);
    box-shadow: none;
    overflow-y: auto;
}

.cookie-consent-banner.is-dialog:focus {
    outline: none; /* the whole dimmed screen; buttons and links keep their focus ring */
}

.cookie-consent-banner.is-dialog .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
    max-width: 32rem;
    margin: auto;
    padding: 1.5rem;
    background-color: #2C5E3B;
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.cookie-consent-banner.is-dialog p {
    font-size: 1rem;
    max-width: none;
}

.cookie-consent-banner.is-dialog .cookie-choice {
    flex: 1 1 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 1rem;
}

html.cookie-dialog-open,
html.cookie-dialog-open body {
    overflow: hidden; /* no scrolling the page behind the dialog */
}
