/*
 * EASYLOOT ROLE RATINGS UI V2
 */

/* Старый seller-only блок больше не участвует в интерфейсе. */
#dealModal .easylootSellerRatingPanel {
    display: none !important;
}

/* =========================================================
   КОМПАКТНЫЙ СТАТУС ЗАВЕРШЁННОЙ СДЕЛКИ
   ========================================================= */

#dealModal
.easylootDealExactActions.easylootDealActionsFinalCompleted {
    min-height: 58px !important;
    height: 58px !important;
    padding: 0 !important;
    align-items: stretch !important;
    overflow: hidden !important;
}

#dealModal
.easylootDealExactActions.easylootDealActionsFinalCompleted
> button {
    display: none !important;
}

#dealModal
.easylootDealExactActions.easylootDealActionsFinalCompleted
.easylootDealFinalStatus {
    position: relative !important;
    inset: auto !important;

    width: 100% !important;
    min-width: 0 !important;
    min-height: 58px !important;
    height: 58px !important;

    padding: 8px 18px !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;

    overflow: hidden !important;
    text-align: center !important;
}

#dealModal
.easylootDealActionsFinalCompleted
.easylootDealFinalStatusTitle {
    font-size: 11px !important;
    font-weight: 1000 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

#dealModal
.easylootDealActionsFinalCompleted
.easylootDealFinalStatusDetail {
    font-size: 8px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    opacity: .72 !important;
}

/* =========================================================
   РЕЙТИНГ ВМЕСТО ТАЙМЕРА
   ========================================================= */

#dealModal
.easylootDealExactTimer.easylootRoleRatingMode {
    position: relative !important;

    min-height: 104px !important;
    height: auto !important;

    padding: 13px 16px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;

    border-color:
        rgba(194, 227, 94, .26)
        !important;

    background:
        linear-gradient(
            135deg,
            rgba(42, 49, 28, .98),
            rgba(27, 29, 24, .99)
        )
        !important;
}

.easylootRoleRatingTimerUi {
    width: 100%;

    display: grid;
    justify-items: center;
    align-content: center;
    gap: 6px;

    text-align: center;
}

.easylootRoleRatingTimerUi[hidden] {
    display: none !important;
}

.easylootRoleRatingTitle {
    color: #f1f2e9;

    font-size: 11px;
    font-weight: 1000;
    line-height: 1;

    letter-spacing: .035em;
}

.easylootRoleRatingStars {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.easylootRoleRatingStar {
    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;
    background: transparent;

    display: grid;
    place-items: center;

    color:
        rgba(151, 151, 136, .34);

    font-size: 36px;
    line-height: 1;

    cursor: pointer;

    transform:
        translateY(0)
        scale(1);

    transition:
        color .12s ease,
        text-shadow .12s ease,
        transform .12s ease,
        opacity .12s ease;
}

.easylootRoleRatingStar:hover,
.easylootRoleRatingStar:focus-visible {
    outline: none;

    transform:
        translateY(-2px)
        scale(1.08);
}

.easylootRoleRatingStar.is-active {
    color: #efbc35;

    text-shadow:
        0 0 16px
        rgba(239, 188, 53, .28);
}

.easylootRoleRatingStar.is-selected {
    transform:
        translateY(-2px)
        scale(1.12);
}

.easylootRoleRatingStar:disabled {
    cursor: default;
}

.easylootRoleRatingTimerUi.is-saving
.easylootRoleRatingStar {
    opacity: .58;
}

.easylootRoleRatingMessage {
    color:
        rgba(232, 232, 220, .52);

    font-size: 8px;
    font-weight: 800;
    line-height: 1.2;
}

.easylootRoleRatingTimerUi.is-saved
.easylootRoleRatingMessage {
    color:
        rgba(191, 225, 112, .76);
}

.easylootRoleRatingTimerUi.is-error
.easylootRoleRatingMessage {
    color:
        rgba(232, 122, 95, .86);
}

/* =========================================================
   РОЛЕВОЙ РЕЙТИНГ В КАРТОЧКАХ
   ========================================================= */

.sellerTrustRating {
    gap: 4px !important;
}

.sellerTrustRating.is-empty {
    color:
        rgba(184, 180, 169, .58)
        !important;
}

.easylootRoleRatingCount {
    display: inline-block;

    margin-left: 1px;

    color:
        rgba(188, 184, 174, .62);

    font-size: 8px;
    font-weight: 800;
    line-height: 1;
}

.easylootRoleRatingCount[hidden] {
    display: none !important;
}

/* =========================================================
   АДАПТИВ
   ========================================================= */

@media (max-width: 650px) {
    #dealModal
    .easylootDealExactActions.easylootDealActionsFinalCompleted {
        height: auto !important;
        min-height: 54px !important;
    }

    #dealModal
    .easylootDealExactActions.easylootDealActionsFinalCompleted
    .easylootDealFinalStatus {
        height: auto !important;
        min-height: 54px !important;

        flex-direction: column !important;
        gap: 3px !important;
    }

    .easylootRoleRatingStar {
        width: 36px;
        height: 38px;
        font-size: 31px;
    }
}

/*
 * EASYLOOT ROLE RATING REPLACES TIMER V2.1
 *
 * После завершения сделки секция таймера становится
 * исключительно секцией оценки.
 *
 * Старые заголовок «ТАЙМЕР» и значение 00:00
 * полностью скрываются независимо от прежних !important-стилей.
 */

#dealModal
.easylootDealExactTimer.easylootRoleRatingMode
> :not(.easylootRoleRatingTimerUi) {
    display:
        none !important;

    visibility:
        hidden !important;

    width:
        0 !important;

    min-width:
        0 !important;

    max-width:
        0 !important;

    height:
        0 !important;

    min-height:
        0 !important;

    max-height:
        0 !important;

    margin:
        0 !important;

    padding:
        0 !important;

    border:
        0 !important;

    overflow:
        hidden !important;

    opacity:
        0 !important;

    pointer-events:
        none !important;
}

#dealModal
.easylootDealExactTimer.easylootRoleRatingMode
> .easylootRoleRatingTimerUi {
    display:
        grid !important;

    visibility:
        visible !important;

    width:
        100% !important;

    height:
        auto !important;

    margin:
        0 !important;

    opacity:
        1 !important;
}

#dealModal
.easylootDealExactTimer.easylootRoleRatingMode {
    grid-template-columns:
        1fr !important;

    justify-items:
        center !important;

    align-items:
        center !important;

    padding:
        14px 18px !important;
}
