/* Cookie banner (Klaro); colours and fonts are set in klaro-config.js (styling) */
.klaro .cookie-notice:not(.cookie-modal-notice) {
    border-top: 3px solid #4d5d1c;
}
/* Klaro has no top padding; same space above the title as below the buttons */
.klaro .cookie-notice:not(.cookie-modal-notice) .cn-body {
    padding-top: 1em;
}
.klaro .cookie-notice h2,
.klaro .cookie-modal h1 {
    color: #4d5d1c;
    font-size: 20px;
    margin: 0 0 0.5em;
}
/* The notice gets focus on load (dialog); the buttons keep their own focus ring */
.klaro .cookie-notice:focus {
    outline: none;
}
.klaro .cookie-notice .cm-btn,
.klaro .cookie-modal .cm-btn {
    padding: 0.5em 1em;
}

/* Round cookie button bottom left: reopens the cookie settings */
.cookie-settings-button {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 900;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #4d5d1c;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.2s, background-color 0.2s;
}
.cookie-settings-button:hover,
.cookie-settings-button:focus-visible {
    opacity: 1;
    background: #859550;
}
.cookie-settings-button:focus-visible {
    outline: 2px solid #4d5d1c;
    outline-offset: 2px;
}
/* Not needed while the banner is open, and without Klaro it would do nothing */
body:has(.klaro .cookie-notice:not(.cookie-modal-notice)) .cookie-settings-button,
body:not(:has(.klaro)) .cookie-settings-button {
    display: none;
}
