/* Kla Zoe: Cookie Preferences
   Readable, maintainable styling for the cookie banner and preference dialog.
   The footer control deliberately matches the other legal links in size.
*/

/* Persistent footer entry */
.footer-group .kz-cookie-footer-link {
    display: block;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    color: #F0B83E;
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: inherit;
    letter-spacing: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.footer-group .kz-cookie-footer-link:hover,
.footer-group .kz-cookie-footer-link:focus-visible {
    color: #FFD675;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Consent banner and preference dialog */
[hidden] {
    display:none!important
}

.kz-cookie-banner {
    position:fixed;
    z-index:99990;
    bottom:16px;
    left:16px;
    right:16px;
    max-width:880px;
    margin:auto;
    background:#fff;
    color:#102748;
    border:1px solid #d7e0ec;
    box-shadow:0 16px 60px #081a3450;
    border-radius:14px;
    padding:20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px
}

.kz-cookie-banner p,.kz-cookie-dialog p {
    margin:6px 0 0;
    line-height:1.5;
    font-size:14px
}

.kz-cookie-actions {
    display:flex;
    gap:8px;
    flex-wrap:wrap
}

.kz-cookie-actions button {
    border:1px solid #b8c7dc;
    border-radius:8px;
    background:white;
    color:#102748;
    font:inherit;
    font-size:13px;
    font-weight:600;
    padding:11px 13px;
    cursor:pointer
}

.kz-cookie-actions .kz-cookie-primary {
    background:#102748;
    color:#fff;
    border-color:#102748
}

.kz-cookie-backdrop {
    position:fixed;
    inset:0;
    background:#09182eaa;
    z-index:99999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:16px
}

.kz-cookie-dialog {
    background:#fff;
    color:#102748;
    border-radius:16px;
    max-width:560px;
    width:100%;
    max-height:90vh;
    overflow:auto;
    padding:24px;
    box-shadow:0 24px 70px #0005
}

.kz-cookie-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px
}

.kz-cookie-head h2 {
    font-size:23px;
    margin:0
}

.kz-cookie-head button {
    border:0;
    background:#eef3fa;
    border-radius:8px;
    font-size:24px;
    width:38px;
    height:38px;
    cursor:pointer
}

.kz-cookie-category {
    border:1px solid #dce4ee;
    border-radius:10px;
    padding:15px;
    margin-top:12px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px
}

.kz-cookie-category strong {
    display:block
}

.kz-cookie-category p,.kz-cookie-category small {
    font-size:13px;
    color:#53657b;
    display:block;
    margin-top:3px
}

.kz-cookie-category input {
    width:22px;
    height:22px;
    accent-color:#102748;
    flex-shrink:0
}

.kz-cookie-required {
    font-size:12px;
    color:#51647a;
    white-space:nowrap
}

.kz-cookie-note {
    margin:14px 0!important;
    color:#53657b
}

.kz-cookie-dialog .kz-cookie-actions {
    justify-content:flex-end;
    margin-top:18px
}

.kz-cookie-dialog-open {
    overflow:hidden
}

@media(max-width:650px) {
    .kz-cookie-banner {
        bottom:70px;
        display:block;
        padding:16px
    }

    .kz-cookie-banner .kz-cookie-actions {
        margin-top:12px
    }

    .kz-cookie-actions button {
        flex:1
    }

    .kz-cookie-dialog {
        padding:18px
    }

}
