/* BayNet cookie consent banner + preferences dialog (see js/cookieconsent.js) */

.bn-cc, .bn-cc * {
    box-sizing: border-box;
}
.bn-cc {
    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: #222;
    text-align: left;
    text-shadow: none;
}

/* ---- banner: card in the lower-left corner, page stays usable (same as bayalarm.com) */
#bn-cc-banner {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 100000;
    width: 460px;
    max-width: calc(100% - 40px);
    max-height: calc(100% - 40px);
    overflow-y: auto;
    padding: 20px 22px 18px;
    background: #fff;
    border-top: 5px solid #ee3424;
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .35);
}

.bn-cc-title {
    margin: 0 0 8px;
    padding: 0;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    color: #222;
    background: none;
    border: 0;
}
.bn-cc-text {
    margin: 0 0 14px;
    padding: 0;
    font-size: 13px;
    color: #444;
}
.bn-cc a {
    color: #c4200f;
    text-decoration: underline;
}
.bn-cc-note {
    margin: 0 0 14px;
    padding: 8px 10px;
    font-size: 12px;
    background: #f3f7fb;
    border-left: 3px solid #2c6da0;
}

.bn-cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.bn-cc-btn {
    flex: 1 1 120px;
    margin: 0;
    padding: 9px 12px;
    font: bold 13px "Helvetica Neue", Arial, Helvetica, sans-serif;
    border-radius: 4px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
/* Accept and Decline get equal visual weight - no nudging toward "accept" */
.bn-cc-primary {
    color: #fff;
    background: #ee3424;
    border: 2px solid #ee3424;
}
.bn-cc-primary:hover {
    background: #c4200f;
    border-color: #c4200f;
}
.bn-cc-secondary {
    color: #333;
    background: #fff;
    border: 2px solid #999;
}
.bn-cc-secondary:hover {
    border-color: #333;
}
.bn-cc-btn:focus,
.bn-cc-close:focus,
.bn-cc input:focus,
.bn-cc a:focus {
    outline: 3px solid #2c6da0;
    outline-offset: 2px;
}

/* ---- preferences dialog */
.bn-cc-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .55);
}
.bn-cc-dialog {
    position: relative;
    width: 620px;
    max-width: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding: 24px 24px 20px;
    background: #fff;
    border-top: 5px solid #ee3424;
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .4);
}
.bn-cc-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 26px;
    line-height: 30px;
    color: #555;
    background: none;
    border: 0;
    cursor: pointer;
}
.bn-cc-close:hover {
    color: #000;
}

.bn-cc-cats {
    margin: 0 0 16px;
    border-top: 1px solid #ddd;
}
.bn-cc-cat {
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}
.bn-cc-cat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: bold;
    cursor: pointer;
}
.bn-cc-cat-head input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
}
.bn-cc-cat-title {
    flex: 1 1 auto;
}
.bn-cc-cat-state {
    font-size: 12px;
    font-weight: normal;
    color: #58aa00;
}
.bn-cc-cat-text {
    margin: 6px 0 0 28px;
    padding: 0;
    font-size: 12px;
    color: #555;
}

/* footer link */
a.js-cookie-preferences {
    cursor: pointer;
}
/* login page has no footer - link sits under the login box over the photo background */
#cookie-preferences-link {
    margin: 12px 0 0;
    text-align: center;
    font-size: 12px;
}
#cookie-preferences-link a {
    color: #fff;
    text-shadow: 0 1px 2px #000;
}

@media (max-width: 520px) {
    #bn-cc-banner {
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        max-width: 100%;
        border-radius: 0;
        padding: 16px;
    }
    .bn-cc-btn {
        flex-basis: 100%;
    }
    .bn-cc-dialog {
        padding: 20px 16px 16px;
    }
}

@media print {
    #bn-cc-banner, .bn-cc-overlay {
        display: none !important;
    }
}
