.bb-cookie-cmp,
.bb-cookie-modal,
.bb-cookie-cmp *,
.bb-cookie-modal * {
    box-sizing: border-box;
}

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

.bb-cookie-cmp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 99998;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.bb-cookie-banner {
    width: min(760px, 100%);
    padding: 18px;
    border: 1px solid rgba(34, 199, 214, 0.26);
    border-radius: 14px;
    background: #071A2E;
    color: #FFFFFF;
    box-shadow: 0 22px 60px rgba(7, 26, 46, 0.28);
    pointer-events: auto;
}

.bb-cookie-banner p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.88);
    font: 14px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bb-cookie-banner a {
    color: #22C7D6;
    font: 13px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bb-cookie-actions,
.bb-cookie-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.bb-cookie-button,
.bb-cookie-shortcode-button,
.bb-cookie-close {
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: 700 13px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bb-cookie-button {
    min-height: 40px;
    padding: 0 15px;
}

.bb-cookie-button--primary {
    background: #22C7D6;
    color: #071A2E;
}

.bb-cookie-button--secondary {
    background: #FFFFFF;
    color: #071A2E;
}

.bb-cookie-button[data-bb-cookie-reject] {
    background: #DC2626;
    color: #FFFFFF;
}

.bb-cookie-button[data-bb-cookie-reject]:hover,
.bb-cookie-button[data-bb-cookie-reject]:focus-visible {
    background: #B91C1C;
}

.bb-cookie-button--ghost {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    color: #FFFFFF;
}

.bb-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(7, 26, 46, 0.48);
}

.bb-cookie-dialog {
    width: min(620px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 20px;
    border: 1px solid rgba(34, 199, 214, 0.22);
    border-radius: 14px;
    background: #FFFFFF;
    color: #102A43;
    box-shadow: 0 26px 70px rgba(7, 26, 46, 0.32);
}

.bb-cookie-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.bb-cookie-dialog h2 {
    margin: 0;
    color: #071A2E;
    font: 700 22px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bb-cookie-close {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #DCE5EC;
    border-radius: 999px;
    background: #FFFFFF;
    color: #0E7490;
    font-size: 20px;
    line-height: 1;
}

.bb-cookie-close:hover,
.bb-cookie-close:focus-visible {
    border-color: rgba(14, 116, 144, 0.38);
    background: #EAFBFD;
}

.bb-cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid #DCE5EC;
}

.bb-cookie-option strong {
    display: block;
    color: #071A2E;
    font: 700 14px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-transform: uppercase;
}

.bb-cookie-option p {
    margin: 7px 0 0;
    color: #64748B;
    font: 14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bb-cookie-switch {
    position: relative;
    flex: 0 0 auto;
}

.bb-cookie-switch input {
    position: absolute;
    opacity: 0;
}

.bb-cookie-switch span:last-child {
    display: block;
    width: 50px;
    height: 28px;
    border-radius: 999px;
    background: #CBD5E1;
    transition: background 0.18s ease;
}

.bb-cookie-switch span:last-child::after {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    margin: 3px;
    border-radius: 999px;
    background: #FFFFFF;
    transition: transform 0.18s ease;
}

.bb-cookie-switch input:checked + span {
    background: #0E7490;
}

.bb-cookie-switch input:checked + span::after {
    transform: translateX(22px);
}

.bb-cookie-dialog__actions .bb-cookie-button--ghost {
    border-color: #DCE5EC;
    color: #071A2E;
}

.bb-cookie-dialog__actions .bb-cookie-button--secondary {
    background: #DC2626;
    color: #FFFFFF;
}

.bb-cookie-shortcode-button {
    min-height: 34px;
    padding: 0 12px;
    background: transparent;
    color: #0E7490;
    text-decoration: underline;
}

.bb-cookie-button:focus-visible,
.bb-cookie-shortcode-button:focus-visible,
.bb-cookie-close:focus-visible,
.bb-cookie-switch input:focus-visible + span {
    outline: 3px solid rgba(34, 199, 214, 0.42);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .bb-cookie-cmp {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .bb-cookie-banner,
    .bb-cookie-dialog {
        border-radius: 12px;
    }

    .bb-cookie-actions,
    .bb-cookie-dialog__actions {
        display: grid;
    }

    .bb-cookie-button {
        width: 100%;
    }
}
