/*
 * ==========================================================
 * TAHLIL_SEARCH_FAVORITE_V142
 *
 * Dynamic Search Favorite Star.
 * ==========================================================
 */


body.tc-chart-workspace
.tc-dynamic-search-result {

    position:
        relative;
}


/*
 * Reserve a small independent zone for the star.
 */

body.tc-chart-workspace
.tc-dynamic-search-result {

    padding-inline-end:
        48px !important;
}


body.tc-chart-workspace
.tc-dynamic-search-favorite-v142 {

    position:
        absolute;

    inset-inline-end:
        11px;

    top:
        50%;

    transform:
        translateY(-50%);

    z-index:
        4;

    width:
        29px;

    min-width:
        29px;

    height:
        29px;

    min-height:
        29px;

    display:
        grid;

    place-items:
        center;

    border:
        1px solid
        transparent;

    border-radius:
        6px;

    color:
        #7f8997;

    background:
        transparent;

    font-family:
        Arial,
        sans-serif;

    font-size:
        19px;

    line-height:
        1;

    cursor:
        pointer;

    user-select:
        none;

    transition:
        color .12s ease,
        background .12s ease,
        border-color .12s ease,
        transform .12s ease;
}


body.tc-chart-workspace
.tc-dynamic-search-favorite-v142:hover {

    color:
        #e3ba59;

    background:
        rgba(227,186,89,.075);

    border-color:
        rgba(227,186,89,.18);

    transform:
        translateY(-50%)
        scale(1.04);
}


body.tc-chart-workspace
.tc-dynamic-search-favorite-v142.is-saved {

    color:
        #e3ba59;
}


/*
 * Busy state prevents accidental repeated requests.
 */

body.tc-chart-workspace
.tc-dynamic-search-favorite-v142[data-busy="1"] {

    opacity:
        .52;

    pointer-events:
        none;
}


/* ==========================================================
   LIGHT MODE
   ========================================================== */


body.tc-chart-workspace[data-tc-market-theme="light"]
.tc-dynamic-search-favorite-v142 {

    color:
        #7a8490;
}


body.tc-chart-workspace[data-tc-market-theme="light"]
.tc-dynamic-search-favorite-v142:hover {

    color:
        #a8750a;

    background:
        rgba(168,117,10,.07);

    border-color:
        rgba(168,117,10,.18);
}


body.tc-chart-workspace[data-tc-market-theme="light"]
.tc-dynamic-search-favorite-v142.is-saved {

    color:
        #a8750a;
}


/* ==========================================================
   MOBILE
   ========================================================== */


@media (max-width: 760px) {

    body.tc-chart-workspace
    .tc-dynamic-search-result {

        padding-inline-end:
            52px !important;
    }


    body.tc-chart-workspace
    .tc-dynamic-search-favorite-v142 {

        width:
            32px;

        min-width:
            32px;

        height:
            32px;

        min-height:
            32px;

        font-size:
            20px;
    }

}

