﻿.switch-chips .chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
    padding: .55rem .7rem;
    border: 1px solid #e6e9ee;
    border-radius: .75rem;
    background: #f7f8fa;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    user-select: none;
}

    .switch-chips .chip:hover {
        border-color: #1fa2f1;
        box-shadow: 0 0 0 .15rem rgba(31,162,241,.10);
    }

.switch-chips .chip-title {
    font-family: "Hikasami-Regular";
    font-size: .9rem;
    color: #17181a;
    flex: 1;
    min-width: 0;
}

.switch-chips .form-check {
    flex-shrink: 0;
    margin: 0;
}

.switch-chips .form-check-input {
    width: 2rem;
    height: 1rem;
    margin: 0;
    cursor: pointer;
    border: 1px solid #cfd3d7;
}

    .switch-chips .form-check-input:checked {
        background-color: #1fa2f1;
        border-color: #1fa2f1;
    }

    .switch-chips .form-check-input:focus {
        box-shadow: 0 0 0 .15rem rgba(31,162,241,.2);
    }

.switch-chips .chip.chip-disabled {
    opacity: .6;
    cursor: not-allowed;
}

    .switch-chips .chip.chip-disabled:hover {
        border-color: #e6e9ee;
        box-shadow: none;
    }

@media (max-width: 576px) {
    .switch-chips .row.g-2 {
        --bs-gutter-x: 0.3rem !important;
        --bs-gutter-y: 0.3rem !important;
    }

    .switch-chips .col-12 {
        padding: 0.15rem !important;
        width: 100% !important;
    }

    .switch-chips .chip {
        padding: 0.6rem 0.7rem !important;
        min-height: 48px;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem;
    }

    .switch-chips .chip-title {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
        flex: 1;
        margin-bottom: 0 !important;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-break: break-word;
        min-height: 2.4rem;
        display: flex;
        align-items: center;
    }

    .switch-chips .form-check {
        flex-shrink: 0;
        margin-left: 0.5rem;
    }

    .switch-chips .form-check-input {
        width: 1.8rem !important;
        height: 0.9rem !important;
        flex-shrink: 0;
    }

    .switch-chips .col-12:nth-child(1) {
        order: 1;
    }
    /* Есть новое сообщение */

    .switch-chips .col-12:nth-child(2) {
        order: 3;
    }
    /* Есть негативный отзыв */

    .switch-chips .col-12:nth-child(3) {
        order: 5;
    }
    /* По параметрам товара */

    .switch-chips .col-12:nth-child(4) {
        order: 2;
    }
    /* Есть сообщение в другом заказе */

    .switch-chips .col-12:nth-child(5) {
        order: 4;
    }
    /* Есть положительный отзыв */

    .switch-chips .col-12:nth-child(6) {
        order: 6;
    }
    /* Исключить заказы */
}

@media (max-width: 360px) {
    .switch-chips .chip {
        padding: 0.5rem 0.6rem !important;
        min-height: 46px;
    }

    .switch-chips .chip-title {
        font-size: 0.78rem !important;
    }
}
