.bw-consent {
    position: fixed;
    inset: auto 1rem 1rem 1rem;
    z-index: 100000;
    display: none;
    justify-content: center;
    pointer-events: none;
}

.bw-consent.is-visible {
    display: flex;
}

.bw-consent__panel {
    width: min(720px, 100%);
    background: #ffffff;
    color: #2c3e50;
    border: 1px solid #d7e1ea;
    border-radius: 10px;
    box-shadow: 0 18px 60px rgba(15, 35, 58, 0.22);
    padding: 1.25rem;
    pointer-events: auto;
}

.bw-consent__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.bw-consent__title {
    margin: 0;
    color: #152a45;
    font-size: 1.15rem;
}

.bw-consent__text {
    margin: 0 0 1rem;
    color: #5d6d7e;
    font-size: 0.95rem;
    line-height: 1.55;
}

.bw-consent__options {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
}

.bw-consent__option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    background: #f8fafc;
}

.bw-consent__option input {
    width: 20px;
    height: 20px;
    margin-top: 0.2rem;
    accent-color: #1e3a5f;
}

.bw-consent__option strong {
    display: block;
    margin-bottom: 0.2rem;
    color: #152a45;
}

.bw-consent__option span {
    display: block;
    color: #5d6d7e;
    font-size: 0.88rem;
    line-height: 1.45;
}

.bw-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.bw-consent__button {
    border: 2px solid #1e3a5f;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 0.75rem 1rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bw-consent__button--primary {
    background: #1e3a5f;
    color: #ffffff;
}

.bw-consent__button--primary:hover,
.bw-consent__button--primary:focus {
    background: #2a4f7f;
    border-color: #2a4f7f;
}

.bw-consent__button--secondary {
    background: #ffffff;
    color: #1e3a5f;
}

.bw-consent__button--secondary:hover,
.bw-consent__button--secondary:focus {
    background: #f0f7ff;
}

.bw-consent__link {
    color: #1e3a5f;
    text-decoration: underline;
}

.bw-consent__close {
    border: none;
    background: transparent;
    color: #5d6d7e;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.1rem 0.2rem;
}

.bw-consent__close:hover,
.bw-consent__close:focus {
    color: #1e3a5f;
}

@media (max-width: 640px) {
    .bw-consent {
        inset: auto 0 0 0;
    }

    .bw-consent__panel {
        border-radius: 10px 10px 0 0;
        max-height: 88vh;
        overflow-y: auto;
    }

    .bw-consent__actions {
        flex-direction: column;
    }

    .bw-consent__button {
        width: 100%;
    }
}
