/* Чёрный список VKService: стили только для этой страницы. */
.bl-v2 {
    box-sizing: border-box;
    --bl-primary: var(--color-primary, #6756c8);
    --bl-border: var(--color-border, #e2e5ee);
    --bl-text: var(--color-text-primary, #15182b);
    --bl-muted: var(--color-text-secondary, #000);
    width: 100%;
    min-width: 0;
    color: var(--bl-text);
}

.bl-v2__header,
.bl-v2__section-heading,
.bl-v2__item,
.bl-v2__form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bl-v2__header {
    margin-bottom: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.bl-v2__header h1 {
    margin: 0 0 5px;
    font-size: 23px;
    font-weight: 700;
}

.bl-v2__header p,
.bl-v2__section-heading p {
    margin: 0;
    color: var(--bl-muted);
    font-size: 12px;
    line-height: 1.5;
}

.bl-v2__back {
    white-space: nowrap;
}

.bl-v2__add-card,
.bl-v2__list-card {
    min-width: 0;
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid var(--bl-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(30, 33, 55, .035);
}

.bl-v2__section-heading {
    margin-bottom: 14px;
}

.bl-v2__section-heading h2 {
    margin: 0 0 3px;
    font-size: 16px;
    font-weight: 700;
}

.bl-v2__add-form .form-label {
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 600;
}

.bl-v2__search-box {
    position: relative;
    width: 100%;
    max-width: 680px;
}

.bl-v2__search-input {
    width: 100%;
    min-height: 44px;
    font-size: 13px;
}

.bl-v2__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 1010;
    width: 100%;
    max-height: 270px;
    padding: 5px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #dcd8ef;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(31, 35, 54, .15);
}

.bl-v2__option {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
    text-align: left;
    overflow-wrap: anywhere;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font: inherit;
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
}

.bl-v2__option:hover,
.bl-v2__option:focus-visible {
    background: #f3f0ff;
    outline: none;
}

.bl-v2__dropdown-empty {
    padding: 12px;
    color: var(--bl-muted);
    font-size: 12px;
}

.bl-v2__chosen {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #e7e3fa;
    border-radius: 8px;
    background: #faf9ff;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.bl-v2__clear {
    border: 0;
    background: transparent;
    color: var(--bl-primary);
    font-weight: 600;
    cursor: pointer;
}

.bl-v2__form-footer {
    margin-top: 14px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.bl-v2__submit {
    min-height: 42px;
}

.bl-v2__feedback {
    color: #278043;
    font-size: 12px;
    line-height: 1.4;
}

.bl-v2__feedback.is-error {
    color: #ce3443;
}

.bl-v2__filter-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 15px;
}

.bl-v2__filter-field {
    flex: 1 1 230px;
    min-width: 0;
    margin: 0;
}

.bl-v2__filter-form .form-control {
    min-height: 38px;
    font-size: 13px;
}

.bl-v2__item {
    min-width: 0;
    padding: 12px;
    justify-content: flex-start;
    border: 1px solid #e9eaf1;
    border-radius: 10px;
    background: #fff;
}

.bl-v2__avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f1eeff;
    color: var(--bl-primary);
    font-size: 18px;
}

.bl-v2__item-info strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.bl-v2__vk-link {
    display: inline-block;
    margin-top: 3px;
    color: var(--bl-primary);
    font-size: 11px;
    text-decoration: none;
}

.bl-v2__delete {
    white-space: nowrap;
    font-size: 12px;
}

.bl-v2__empty {
    padding: 28px 12px;
    text-align: center;
    color: var(--bl-muted);
    font-size: 13px;
}

.bl-v2__pagination {
    margin: 18px 0 0;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .bl-v2__header h1 {
        font-size: 19px;
    }

    .bl-v2__add-card,
    .bl-v2__list-card {
        padding: 13px;
        border-radius: 10px;
    }

    .bl-v2__section-heading h2 {
        font-size: 15px;
    }

    .bl-v2__item {
        flex-wrap: wrap;
    }

    .bl-v2__avatar {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .bl-v2__delete-form {
        width: 100%;
        padding-left: 46px;
    }

    .bl-v2__delete {
        width: 100%;
        min-height: 38px;
    }

    .bl-v2__filter-form .btn {
        flex: 1 1 auto;
    }
}

