.bn-sidebar-ad {
    width: 300px;
    margin: 1rem auto;
}

.bn-ad-label {
    display: block;
    margin-bottom: 0.4rem;
    color: #536174;
    font-size: 0.7rem;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

.bn-sidebar-ad .bn-ad-frame {
    width: 300px;
    min-height: 250px;
}

.bn-ad-anchor {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1030;
    max-width: calc(100% - 16px);
    padding: 0 8px 8px;
    border: 1px solid #dfe5ed;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    background: #ffffff;
}

.bn-ad-anchor-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
}

.bn-ad-anchor .bn-ad-label {
    margin: 0;
}

.bn-ad-anchor button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #182333;
    font-size: 1.5rem;
    cursor: pointer;
}

.bn-ad-anchor button:focus-visible {
    outline: 2px solid #175da8;
    outline-offset: -2px;
}

.bn-ad-anchor .bn-ad-frame {
    width: 320px;
    min-height: 100px;
}

.bn-sidebar-ad[hidden],
.bn-ad-anchor[hidden] {
    display: none !important;
}

[data-bs-theme="dark"] .bn-ad-anchor {
    background: #20242b;
    border-color: #3c4654;
}

[data-bs-theme="dark"] .bn-ad-label {
    color: #b3bece;
}

[data-bs-theme="dark"] .bn-ad-anchor button {
    color: #edf1f7;
}

@media (min-width: 768px) {
    .bn-ad-anchor .bn-ad-frame {
        width: 728px;
    }
}
