
.bunstone-cookie[hidden],
.bunstone-cookie__modal-wrap[hidden] {
    display: none !important;
}

.bunstone-cookie {
    position: relative;
    z-index: 10000;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

.bunstone-cookie__banner {
    position: fixed;
    right: 24px;
    bottom: 24px;
    left: 24px;
    max-width: 1180px;
    margin-inline: auto;
    padding: 24px;
    color: #fff;
    background: #082a5b;
    border: 1px solid rgba(255, 255, 255, .15);
    border-top: 4px solid #f8b817;
    border-radius: 12px;
    box-shadow: 0 22px 60px rgba(4, 26, 57, .32);
}

.bunstone-cookie__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
}

.bunstone-cookie h2 {
    margin: 0 0 6px;
    color: #fff;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1;
    letter-spacing: .02em;
}

.bunstone-cookie p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    line-height: 1.65;
}

.bunstone-cookie a {
    color: #f8b817;
    font-weight: 700;
}

.bunstone-cookie__eyebrow {
    margin-bottom: 6px !important;
    color: #f8b817 !important;
    font-size: 11px !important;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.bunstone-cookie__actions,
.bunstone-cookie__modal-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.bunstone-cookie__actions {
    justify-content: flex-end;
    max-width: 430px;
}

.bunstone-cookie__button,
.bunstone-cookie__link-button {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .44);
    border-radius: 3px;
    color: #fff;
    background: transparent;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
}

.bunstone-cookie__button--primary {
    color: #082a5b;
    background: #f8b817;
    border-color: #f8b817;
}

.bunstone-cookie__link-button {
    min-height: auto;
    padding: 8px 0;
    border: 0;
    color: #f8b817;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bunstone-cookie__button:focus-visible,
.bunstone-cookie__link-button:focus-visible,
.bunstone-cookie__close:focus-visible,
.bunstone-cookie-settings:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.bunstone-cookie__modal-wrap {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    z-index: 10001;
}

.bunstone-cookie__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 26, 57, .78);
    backdrop-filter: blur(3px);
}

.bunstone-cookie__modal {
    position: relative;
    width: min(100%, 680px);
    max-height: min(760px, calc(100vh - 40px));
    overflow-y: auto;
    padding: 32px;
    color: #263238;
    background: #fff;
    border-top: 5px solid #f8b817;
    border-radius: 12px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .35);
}

.bunstone-cookie__modal h2 {
    color: #082a5b;
}

.bunstone-cookie__modal > p {
    color: #64748b;
}

.bunstone-cookie__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: #082a5b;
    background: #f2f5f9;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.bunstone-cookie__category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
    padding: 18px;
    background: #f5f7fb;
    border: 1px solid #e5eaf2;
    border-radius: 8px;
}

.bunstone-cookie__category h3,
.bunstone-cookie__category strong {
    display: block;
    margin: 0 0 4px;
    color: #082a5b;
    font-size: 15px;
}

.bunstone-cookie__category p,
.bunstone-cookie__category small {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.bunstone-cookie__always {
    color: #087f5b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.bunstone-cookie__category input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bunstone-cookie__switch {
    position: relative;
    width: 48px;
    height: 26px;
    border-radius: 999px;
    background: #a8b2c1;
    cursor: pointer;
    transition: background .2s ease;
}

.bunstone-cookie__switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .24);
    transition: transform .2s ease;
}

.bunstone-cookie__category input:checked + .bunstone-cookie__switch {
    background: #f8b817;
}

.bunstone-cookie__category input:checked + .bunstone-cookie__switch::after {
    transform: translateX(22px);
}

.bunstone-cookie__category input:focus-visible + .bunstone-cookie__switch {
    outline: 3px solid #082a5b;
    outline-offset: 3px;
}

.bunstone-cookie__modal-actions {
    margin-top: 22px;
}

.bunstone-cookie__modal .bunstone-cookie__button:not(.bunstone-cookie__button--primary) {
    color: #082a5b;
    border-color: #9ca9ba;
}

.bunstone-cookie-settings {
    position: fixed;
    right: 16px;
    bottom: 12px;
    z-index: 9998;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    color: #fff;
    background: #041a39;
    box-shadow: 0 8px 22px rgba(4, 26, 57, .22);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
}

@media (max-width: 820px) {
    .bunstone-cookie__banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
        padding: 20px;
    }

    .bunstone-cookie__content {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .bunstone-cookie__actions {
        justify-content: flex-start;
        max-width: none;
    }
}

@media (max-width: 520px) {
    .bunstone-cookie__banner {
        max-height: calc(100vh - 24px);
        overflow-y: auto;
    }

    .bunstone-cookie__actions,
    .bunstone-cookie__modal-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .bunstone-cookie__button,
    .bunstone-cookie__link-button {
        width: 100%;
    }

    .bunstone-cookie__modal {
        padding: 26px 20px 22px;
    }

    .bunstone-cookie__category {
        padding: 15px;
    }
}

.page-template-page-cookie-policy .content-narrow { width: min(100%, 820px); }
.page-template-page-cookie-policy .content-narrow h2 { margin-top: 42px; color: #082a5b; }
.page-template-page-cookie-policy .content-narrow h3 { margin-top: 24px; color: #082a5b; }


/* Compact first-visit cookie popup */
.bunstone-cookie__banner {
    right: 24px;
    bottom: 24px;
    left: auto;
    width: min(420px, calc(100vw - 48px));
    max-width: 420px;
    margin: 0;
    padding: 24px;
}

.bunstone-cookie__content {
    display: block;
}

.bunstone-cookie__actions {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: none;
}

.bunstone-cookie__link-button {
    grid-column: 1 / -1;
    justify-self: start;
}

@media (max-width: 520px) {
    .bunstone-cookie__banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 24px);
        padding: 20px;
        overflow-y: auto;
    }

    .bunstone-cookie__actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .bunstone-cookie__link-button {
        width: 100%;
        justify-content: center;
    }
}
