/* Фича «Оцените вашего менеджера» */

/* просмотр фото менеджера в полном размере */
.js-mgr-photo-view { cursor: zoom-in; }
.mgr-photo-viewer {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .8);
    cursor: zoom-out;
}
.mgr-photo-viewer img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}

/* --- фото менеджера (в блоках ЛК и в окне оценки) --- */
.mgr-photo {
    display: inline-block;
    width: 64px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    vertical-align: top;
    flex: 0 0 auto;
    background: #f0f1f3;
}
.mgr-photo--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8a929c;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 1px;
}

/* ФИО-триггер */
.js-rate-manager {
    cursor: pointer;
    border-bottom: 1px dashed currentColor;
}
.js-rate-manager:hover {
    opacity: .8;
}

/* --- оверлей + окно --- */
.mgr-rate-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(20, 22, 26, .55);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mgr-rate-dialog {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    font-family: inherit;
    color: #292929;
}
.mgr-rate-close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #9aa1aa;
    cursor: pointer;
}
.mgr-rate-close:hover { color: #292929; }

.mgr-rate-head {
    padding: 20px 24px 14px;
    border-bottom: 1px solid #eceef1;
}
.mgr-rate-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.mgr-rate-body { padding: 4px 24px; }

.mgr-rate-item { padding: 18px 0; }
.mgr-rate-item + .mgr-rate-item { border-top: 1px solid #eceef1; }

.mgr-rate-person {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.mgr-rate-person__text { line-height: 1.35; }
.mgr-rate-role {
    display: block;
    color: #9aa1aa;
    font-size: 14px;
}
.mgr-rate-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.mgr-rate-options {
    display: flex;
    gap: 8px;
}
.mgr-rate-opt {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
.mgr-rate-opt img {
    display: block;
    width: 100%;
    max-width: 90px;
    height: auto;
}
.mgr-rate-opt__label {
    color: #9aa1aa;
    font-size: 13px;
}
.mgr-rate-opt:hover {
    background: #f6f7f9;
}
.mgr-rate-opt.is-selected {
    border-color: #35a35a;
    background: #eef8f1;
}
.mgr-rate-opt.is-selected .mgr-rate-opt__label {
    color: #35a35a;
    font-weight: 600;
}

.mgr-rate-nocontact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    font-weight: 400;
}
.mgr-rate-nocontact input { margin: 0; }

.mgr-rate-foot {
    padding: 16px 24px 22px;
    text-align: right;
}
.mgr-rate-submit {
    min-width: 130px;
    padding: 10px 22px;
    border: 1px solid #35a35a;
    border-radius: 8px;
    background: #fff;
    color: #35a35a;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}
.mgr-rate-submit:hover {
    background: #35a35a;
    color: #fff;
}
.mgr-rate-submit[disabled] {
    opacity: .55;
    cursor: default;
}

.mgr-rate-empty {
    padding: 28px 24px;
    text-align: center;
    color: #6b7280;
}

@media (max-width: 420px) {
    .mgr-rate-opt img { max-width: 72px; }
}
