.bobook-cookie-banner[hidden],
.bobook-cookie-modal[hidden] {
    display: none !important;
}

.bobook-cookie-banner,
.bobook-cookie-modal,
.bobook-cookie-settings-link,
.bobook-cookie-banner .bobook-btn,
.bobook-cookie-modal .bobook-btn {
    font-family: inherit;
}

.bobook-cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
}

.bobook-cookie-banner__inner {
    max-width: 1100px;
    margin: 0 auto;
    background: #112f4e;
    color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(17, 47, 78, 0.28);
}

.bobook-cookie-banner__content {
    flex: 1 1 520px;
}

.bobook-cookie-banner__content h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
}

.bobook-cookie-banner__content p {
    margin: 0 0 10px;
    line-height: 1.6;
    font-size: 14px;
    font-weight: 400;
}

.bobook-cookie-banner__content a {
    color: #d8e9f8;
    font-weight: 600;
}

.bobook-cookie-banner__actions,
.bobook-cookie-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bobook-cookie-banner .bobook-btn,
.bobook-cookie-modal .bobook-btn {
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.bobook-cookie-banner .bobook-btn--primary,
.bobook-cookie-modal .bobook-btn--primary {
    background: #ffffff;
    color: #112f4e;
}

.bobook-cookie-banner .bobook-btn--secondary,
.bobook-cookie-modal .bobook-btn--secondary {
    background: #ffffff;
    color: #112f4e;
    border: 1px solid #112f4e;
}

.bobook-cookie-banner .bobook-btn--ghost,
.bobook-cookie-modal .bobook-btn--ghost {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.35);
}

.bobook-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.bobook-cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 47, 78, 0.55);
}

.bobook-cookie-modal__dialog {
    position: relative;
    max-width: 680px;
    margin: 8vh auto;
    background: #ffffff;
    color: #112f4e;
    border-radius: 12px;
    padding: 24px;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(17, 47, 78, 0.2);
}

.bobook-cookie-modal__dialog h3 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
}

.bobook-cookie-option {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(17, 47, 78, 0.12);
}

.bobook-cookie-option strong {
    font-weight: 700;
}

.bobook-cookie-option p {
    margin: 6px 0 0;
    font-size: 14px;
    color: rgba(17, 47, 78, 0.8);
}

.bobook-cookie-settings-link {
    border: 0;
    background: none;
    padding: 0;
    text-decoration: underline;
    cursor: pointer;
    color: inherit;
    font-weight: 600;
}

@media (max-width: 768px) {
    .bobook-cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .bobook-cookie-banner__inner,
    .bobook-cookie-modal__dialog {
        margin-left: 10px;
        margin-right: 10px;
    }
}
/* Scoped dimensions and contrast remain independent of theme button defaults. */
.bobook-cookie-banner *, .bobook-cookie-modal * { box-sizing: border-box; }
.bobook-cookie-banner h3, .bobook-cookie-banner p { color: #fff; }
.bobook-cookie-banner__content, .bobook-cookie-banner__actions { min-width: 0; }
.bobook-cookie-banner__content { overflow-wrap: anywhere; }
.bobook-cookie-banner .bobook-btn, .bobook-cookie-modal .bobook-btn {
    margin: 0; min-height: 44px; white-space: normal; line-height: 1.4; text-transform: none;
}
.bobook-cookie-banner .bobook-btn--primary { background: #fff; color: #112f4e; border: 1px solid #fff; }
.bobook-cookie-modal .bobook-btn--primary { background: #112f4e; color: #fff; border: 1px solid #112f4e; }
.bobook-cookie-modal .bobook-btn--secondary { background: #fff; color: #112f4e; border: 1px solid #112f4e; }
.bobook-cookie-modal__dialog { width: calc(100% - 32px); max-height: 84vh; overflow-y: auto; }
.bobook-cookie-option input { flex-shrink: 0; width: 20px; height: 20px; accent-color: #112f4e; }
.bobook-cookie-option label { cursor: pointer; }
.bobook-cookie-banner button:focus-visible, .bobook-cookie-modal :focus-visible,
.bobook-cookie-settings-link:focus-visible { outline: 3px solid #3FA9D8; outline-offset: 3px; }
.bobook-cookie-error { flex-basis: 100%; }
@media (max-width: 600px) {
    .bobook-cookie-banner__content { flex-basis: 100%; }
    .bobook-cookie-banner__actions { width: 100%; }
    .bobook-cookie-banner__actions .bobook-btn { flex: 1 1 100%; }
    .bobook-cookie-banner__inner { max-height: 80vh; overflow-y: auto; padding: 16px; margin: 0; }
    .bobook-cookie-modal__dialog { padding: 18px; margin: 5vh 16px; max-height: 90vh; }
    .bobook-cookie-option { gap: 12px; }
}

/* Always-available consent control; unrelated site buttons are unaffected. */
.bobook-cookie-launcher[hidden] { display: none !important; }
.bobook-cookie-launcher {
    position: fixed;
    left: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 99998;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: calc(100vw - 40px);
    min-height: 44px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #112f4e;
    border-radius: 12px;
    background: #112f4e;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(17, 47, 78, .16);
}
.bobook-cookie-launcher:hover { background: #112f4e; color: #fff; }
.bobook-cookie-launcher:focus-visible { outline: 3px solid #3FA9D8; outline-offset: 3px; }
@media (max-width: 600px) {
    .bobook-cookie-launcher { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 24px); }
}
