.consent-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, .56);
}

.consent-modal {
    width: min(100%, 35rem);
    padding: 1.5rem;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: .55rem;
    background: var(--bo-theme-primary-soft, #fff);
    color: #111827;
    box-shadow: 0 1.25rem 3.5rem rgba(15, 23, 42, .24);
}

.consent-copy {
    min-width: 0;
}

.consent-modal-top {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .75rem;
}

.consent-modal h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
}

.consent-modal p {
    margin: 0 0 .75rem;
    color: #1f2937;
    line-height: 1.55;
}

.consent-modal .consent-more {
    margin-bottom: 0;
}

.consent-modal-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: #111827;
}

.consent-modal-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.consent-link {
    color: #111827;
    font-weight: 600;
    text-decoration: none;
}

.consent-actions {
    display: flex;
    justify-content: flex-end;
    gap: .65rem;
    margin-top: 1.1rem;
}

.consent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7rem;
    min-height: 2.65rem;
    padding: .6rem 1rem;
    border: 1px solid #d0d5dd;
    border-radius: .35rem;
    background: #fff;
    color: #111827;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.consent-btn--accept {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.consent-link:hover,
.consent-btn:hover {
    opacity: .82;
}

.consent-link:focus-visible,
.consent-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .35);
    outline-offset: 2px;
}

.consent-backdrop--compact {
    align-items: flex-end;
    justify-content: flex-end;
}

.consent-modal--compact {
    width: min(100%, 26rem);
    padding: 1.15rem;
}

.consent-modal--compact h2 {
    font-size: 1.1rem;
}

.consent-modal--compact .consent-body,
.consent-modal--compact .consent-more {
    font-size: .92rem;
}

.consent-modal--compact .consent-actions {
    margin-top: .85rem;
}

.consent-backdrop--banner {
    align-items: flex-end;
}

.consent-modal--banner {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: min(100%, 72rem);
    max-width: none;
}

.consent-modal--banner .consent-copy {
    flex: 1 1 auto;
}

.consent-modal--banner .consent-actions {
    flex: 0 0 auto;
    margin-top: 0;
}

@media (max-width: 767px) {
    .consent-backdrop {
        align-items: flex-end;
        padding: .75rem;
    }

    .consent-modal,
    .consent-modal--compact,
    .consent-modal--banner {
        display: block;
        width: 100%;
        padding: 1.1rem;
    }

    .consent-modal h2 {
        font-size: 1.08rem;
    }

    .consent-modal p {
        font-size: .92rem;
    }

    .consent-actions,
    .consent-modal--banner .consent-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: .9rem;
    }

    .consent-btn {
        min-width: 0;
        width: 100%;
    }
}
