.cs-trigger {
    cursor: pointer;
    display: inline-flex;
}

.cs-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: .2s;
}

.cs-icon-wrap:hover {
    background: #eee;
}

.cs-icon {
    width: 24px;
    height: 24px;
}

/* POPUP */
#cs-popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,.4);
    z-index: 99999;
}

#cs-popup .cs-box {
    width: 520px;
    height: 420px;
    background: #fff;
    border-radius: 10px;
    margin: auto;
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    padding: 20px;
}

#cs-reason {
    width: 100%;
    font-size: 18px;
    margin-top: 10px;
    padding: 12px;
}

#cs-send {
    width: 100%;
    margin-top: 25px;
    padding: 12px;
    background: #0B5DD7;
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    border-radius: 6px;
}

#cs-msg {
    margin-top: 18px;
    font-size: 16px;
}
.cs-title {
    font-family: Roboto, sans-serif;
    font-size: 17px;
    font-weight: 400;
    margin-bottom: 14px;
}

.cs-reasons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.cs-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: Roboto, sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: #333;
}

.cs-radio input {
    display: none;
}

.cs-radio-mark {
    width: 18px;
    height: 18px;
    border: 2px solid #555;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: border-color .15s;
}

.cs-radio input:checked + .cs-radio-mark {
    border-color: #0B5DD7;
}

.cs-radio input:checked + .cs-radio-mark::after {
    content: "";
    width: 10px;
    height: 10px;
    background: #0B5DD7;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
}

.cs-radio-text {
    color: #444;
}

#cs-msg {
    margin-top: 18px;
    font-size: 16px;
    color: #222;
}
.cs-icon {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}
.cs-close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 22px;
    cursor: pointer;
    color: #888;
    transition: color .2s;
}

.cs-close:hover {
    color: #000;
}
/* ==== MOBILE ADAPTATION ==== */
@media (max-width: 600px) {
    #cs-popup .cs-box {
        width: 90%;
        height: auto;
        max-height: 50%;
        padding: 16px;
        border-radius: 8px;
        overflow-y: auto; /* Чтобы окно прокручивалось, если контента много */
    }

    .cs-title {
        font-size: 16px;
        text-align: center;
    }

    .cs-reasons {
        gap: 10px;
    }

    .cs-radio {
        font-size: 15px;
    }

    #cs-reason {
        font-size: 16px;
        padding: 10px;
    }

    #cs-send {
        font-size: 16px;
        padding: 10px;
    }

    .cs-close {
        top: 8px;
        right: 10px;
        font-size: 26px; /* немного больше для тапа пальцем */
    }

    .cs-icon-wrap {
        width: 40px;
        height: 40px;
    }

    .cs-icon {
        width: 22px;
        height: 22px;
    }
}

/* Небольшая адаптация для очень маленьких экранов */
@media (max-width: 400px) {
    #cs-popup .cs-box {
        width: 95%;
        padding: 14px;
    }

    #cs-send {
        font-size: 15px;
    }

    .cs-radio {
        font-size: 14px;
    }
}