/* ConsentVision — cookie banner (matches the KSK black/white theme) */

#cnv-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000; /* above the WhatsApp button (9999) */
    background: #0a0a0a;
    color: #ffffff;
    border-top: 1px solid #222222;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .25);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.55;
}

/* Hidden once the visitor has chosen (class set in <head>), unless reopened from "Cookie Settings". */
#cnv-banner[hidden],
.cnv-decided #cnv-banner:not(.cnv-reopened) { display: none; }

.cnv-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
}

.cnv-text { flex: 1 1 420px; }
.cnv-title { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: #ffffff; }
.cnv-desc { margin: 0; color: #bbbbbb; }
.cnv-desc a { color: #ffffff; text-decoration: underline; }

.cnv-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.cnv-btn {
    padding: 11px 22px;
    border: 1px solid #ffffff;
    border-radius: 0;
    background: #ffffff;
    color: #0a0a0a;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background .2s;
}
.cnv-btn:hover { background: #dddddd; }
.cnv-btn:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.cnv-btn[hidden] { display: none; }

.cnv-btn-ghost { background: transparent; color: #ffffff; }
.cnv-btn-ghost:hover { background: #1a1a1a; }

.cnv-prefs {
    flex: 1 1 100%;
    display: grid;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #222222;
}
.cnv-prefs[hidden] { display: none; }

.cnv-row { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.cnv-row input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: #ffffff; }
.cnv-row strong { color: #ffffff; }
.cnv-row small { display: block; color: #999999; font-size: 13px; }

@media (max-width: 600px) {
    .cnv-inner { padding: 16px; gap: 12px; }
    .cnv-desc { font-size: 13px; }
    .cnv-actions { width: 100%; }
    /* Reject + Accept share a row at equal size; Settings / Save take their own row. */
    .cnv-btn { flex: 1 1 calc(50% - 5px); padding: 11px 8px; }
    .cnv-btn-ghost,
    .cnv-btn[data-cnv="save"] { flex-basis: 100%; }
}

/* Cookie policy page tables */
.cnv-policy-table { overflow-x: auto; margin-bottom: 24px; }
.cnv-policy table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.cnv-policy th,
.cnv-policy td { padding: 10px 12px; border-bottom: 1px solid #e0e0e0; text-align: left; vertical-align: top; }
.cnv-policy th { background: #f5f5f5; font-weight: 700; }
.cnv-policy code { font-size: .8rem; white-space: nowrap; }
