﻿/* Start mobile viewport bug fix */
body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

html {
    height: -webkit-fill-available;
}
/* End mobile viewport bug fix */

button {
    color: inherit;
    padding: 0;
    margin: 0;
    border: 0;
    outline: none;
    background: none;
}

button:active,
button:focus {
    outline: none;
}

input {
    color: inherit;
    padding: 0;
    margin: 0;
    border: 0;
    outline: none;
    background: none;
}

.overflow-hidden {
    height: 100% !important;
    min-height: 100% !important;
}

.hide {
    display: none !important;
}

/* Start ti3__groups-tabs */
.ti3__groups-tabs {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.ti3__groups-tabs .ti3__groups-tab-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-margin-end: 10px;
    margin-inline-end: 10px;
    margin-bottom: 10px;
    padding: 0 16px;
    min-height: 28px;
    background-color: #f3f5f6;
    color: #272e36;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    border-radius: 20px;
}

.ti3__groups-tabs .ti3__groups-tab-item:last-child {
    -webkit-margin-end: 0;
    margin-inline-end: 0;
}

.ti3__groups-tabs .ti3__groups-tab-item.active {
    background-color: #272e36;
    color: #fff;
}
/* End ti3__groups-tabs */

/* Start ti3__symbols-table */
.ti3__symbols-table .ti3__symbols-table-body:not(.active) {
    display: none;
}

.ti3__symbols-table-body[data-group_id="forex"] .table__col-swap_sell .sort-by,
.ti3__symbols-table-body[data-group_id="forex"] .table__col-swap_buy .sort-by,
.ti3__symbols-table-body[data-group_id="metals"] .table__col-swap_sell .sort-by,
.ti3__symbols-table-body[data-group_id="metals"] .table__col-swap_buy  .sort-by{
    -webkit-margin-end: 5px;
    margin-inline-end: 5px;
}

.ti3__symbols-table-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: #1f252d;
    font-size: 14px;
    border-bottom: 1px solid #e9edef;
}

.ti3__symbols-table-head .ti3__symbols-table-row {
    padding: 0 16px;
}

.ti3__symbols-table-body .ti3__symbols-table-row {
    padding: 16px;
    font-size: 16px;
    -webkit-transition: background-color .25s ease;
    transition: background-color .25s ease;
}

.ti3__symbols-table-body .ti3__symbols-table-row:hover {
    color: #6f6f6f;
}

.ti3__symbols-table-row .table__col {
    width: 100%;
}

.ti3__symbols-table-row .table__col:not(.table__col-name) {
    text-align: right;
}

.ti3__symbols-table-row .table__col-name {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.ti3__symbols-table-row .table__col-swap_sell,
.ti3__symbols-table-row .table__col-swap_buy {
    max-width: 140px;
}

.ti3__symbols-table-row .table__col-spread {
    max-width: 160px;
}

.ti3__symbols-table-row .table__col-change {
    max-width: 170px;
}

.ti3__symbols-table-row .table__col-sell,
.ti3__symbols-table-row .table__col-buy {
    max-width: 100px;
}

.ti3__symbols-table-row .table__col--mobile {
    display: none;
}

.ti3__symbols-table-row .symbol__img {
    width: 100%;
    max-width: 48px;
    -webkit-margin-end: 15px;
    margin-inline-end: 15px;
}

.ti3__symbols-table-row .symbol__img img {
    border-radius: 50%;
}

.ti3__symbols-table-row .symbol__info {
    width: 100%;
    max-width: 300px;
}

.ti3__symbols-table-row .symbol__name {
    font-weight: bold;
    font-size: 16px;
    color: #252e37;
}

.ti3__symbols-table-row .symbol__description {
    font-size: 12px;
    color: #6f6f6f;
}

.ti3__symbols-table .increased {
    color: #67ac5b;
}

.ti3__symbols-table .decreased {
    color: #fa564d;
}

.ti3__symbols-table .not-changed {
    color: gray;
}

.ti3__symbols-table .table__col--mobile .table__col-change,
.ti3__symbols-table .table__col--mobile .table__col-buy {
    width: auto;
    max-width: none;
}
/* End ti3__symbols-table */

/* Start mobile__modal */
.mobile__modal {
    position: fixed;
    z-index: 100001;
    top: 0;
    right: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    height: 100vh; /* Для браузеров которые не поддерживают кастомные свойства */
    width: 330px;
    -webkit-box-shadow: -10px 0px 32px rgba(161, 177, 191, 0.25);
    box-shadow: -10px 0px 32px rgba(161, 177, 191, 0.25);
    background: #fff;
    -webkit-transform: translateX(150%);
    -ms-transform: translateX(150%);
    transform: translateX(150%);
    -webkit-transition: -webkit-transform .3s ease;
    transition: -webkit-transform .3s ease;
    -o-transition: transform .3s ease;
    transition: transform .3s ease;
    transition: transform .3s ease, -webkit-transform .3s ease;
    overflow: hidden;
}

.mobile__modal.active {
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
}

.mobile__modal-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
}

.mobile__modal-header,
.mobile__modal-body,
.mobile__modal-footer {
    position: relative;
    width: 100%;
}

.mobile__modal-header {
    margin-bottom: 32px;
    padding: 40px 24px 0;
}

.mobile__modal-footer {
    padding: 0 24px 40px;
}

.mobile__modal-header__row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.mobile__modal-body {
    width: 98%;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0px;
    flex: 1 1 0;
    padding: 0 24px;
    margin-bottom: 32px;
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile__modal-body::-webkit-scrollbar {
    width: 4px;
}

.mobile__modal-body::-webkit-scrollbar-thumb {
    background: #d2d3d5;
    border-radius: 2px;
}

.mobile__modal-body::-webkit-scrollbar-track {
    background: #f4f4f4;
    border-radius: 2px;
}

.mobile__modal-close {
    display: block;
    width: 40px;
    height: 40px;
    -webkit-margin-start: auto;
    margin-inline-start: auto;
    -webkit-inline-end: auto;
    margin-inline-end: -10px;
    background-color: transparent;
    background-image: url(../image/close-icon.svg);
    background-size: 13px;
    background-position: center center;
    background-repeat: no-repeat;
}

.mobile__modal-close--mb {
    display: none;
}

.mobile__modal-reset {
    color: #68ad5c;
}

.mobile__modal-submit {
    width: 100%;
    border: none;
    background: #1f252d;
    border-radius: 5px;
    padding: 18px 20px;
    color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
    outline: none;
}

.mobile__modal-submit--mb {
    display: none;
}
/* End mobile__modal */

/* Start mobile__toggles */
.mobile__toggles {
    position: fixed;
    bottom: 0;
    inset-inline-start: 0;
    z-index: 10;
    display: none;
    padding: 12px 0;
    margin: 0;
    -webkit-transition: -webkit-transform .3s ease;
    transition: -webkit-transform .3s ease;
    -o-transition: transform .3s ease;
    transition: transform .3s ease;
    transition: transform .3s ease, -webkit-transform .3s ease;
    -webkit-transform: translateX(-150%);
    -ms-transform: translateX(-150%);
    transform: translateX(-150%);
}

.mobile__toggles.active {
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
}

.mobile__toggles-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: #272e36;
    border-radius: 50%;
    border: 0;
    margin: 0 8px;
}

.mobile__toggles-btn[data-modal="filter"] {
    display: none;
}

.mobile__toggles-btn[data-modal="filter"].active {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
/* End mobile__toggles */

/* Start noresult */
.noresult {
    display: none;
    letter-spacing: 0.01em;
    padding: 64px 0;
    text-align: center;
}

.noresult.active {
    display: block;
}

.noresult-title {
    font-weight: 700;
    font-size: 26px;
}

.noresult-text {
    font-size: 16px;
}
/* End noresult */

@media (hover: hover) and (pointer: fine) {
    .ti3__symbols-table-body .ti3__symbols-table-row:hover {
        background-color: #f6f6f6;
    }
}

@media (max-width: 1199px) {
    .ti3__symbols-table-row .table__col.table__col-spread {
        display: none;
    }
}

@media (max-width: 1024px) {
    .mobile__modal-header {
        padding: 24px 16px 0;
    }

    .mobile__modal-body {
        padding: 0 16px;
    }

    .mobile__modal-footer {
        padding: 0 16px 24px;
    }
}

@media (max-width: 991px) {
    .ti3__symbols-table-row .table__col.table__col-swap_sell,
    .ti3__symbols-table-row .table__col.table__col-swap_buy {
        display: none;
    }

    .ti3__symbols-table-head .ti3__symbols-table-row {
        padding: 6px 10px;
    }

    .ti3__symbols-table-body .ti3__symbols-table-row {
        padding: 10px;
        font-size: 14px;
    }

    .ti3__symbols-table-row .symbol__img {
        -webkit-margin-end: 10px;
        margin-inline-end: 10px;
    }
}

@media (max-width: 767px) {
    .ti3__symbols-table-head .ti3__symbols-table-row {
        padding: 6px 0;
    }

    .ti3__symbols-table-body .ti3__symbols-table-row {
        padding: 10px 5px;
    }

    .ti3__symbols-table-row .symbol__img {
        max-width: 36px;
    }

    .ti3__symbols-table-row .symbol__name {
        font-size: 14px;
    }

    .ti3__symbols-table-row .table__col-change {
        text-align: right;
    }

    .ti3__symbols-table-row .table__col-sell {
        display: none;
    }

    .ti3__symbols-table-body .arrow__handler {
        -webkit-padding-start: 0;
        padding-inline-start: 0;
    }

    .ti3__symbols-table-body .arrow__handler::before {
        display: none;
    }
}

@media (max-width: 480px),
(max-height: 480px) and (orientation: landscape) {
    .ti3__groups-tabs .ti3__groups-tab-item {
        padding: 0 12px;
        min-height: 24px;
        font-size: 12px;
    }

    .ti3__symbols-table-head .ti3__symbols-table-row .table__col {
        font-size: 12px;
    }

    .ti3__symbols-table-row .table__col.show,
    .ti3__symbols-table-row .table__col.table__col--number.show {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: end;
        -ms-flex-pack: end;
        justify-content: flex-end;
    }

    .ti3__symbols-table-row .table__col.table__col-name.show {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
    }

    .ti3__symbols-table-row .table__col {
        display: none;
    }

    .ti3__symbols-table-head .table__col-change,
    .ti3__symbols-table-head .table__col-buy {
        display: none;
    }

    .ti3__symbols-table-body .table__col-change,
    .ti3__symbols-table-row .table__col-spread,
    .ti3__symbols-table-row .table__col-swap_sell,
    .ti3__symbols-table-row .table__col-swap_buy,
    .ti3__symbols-table-body .table__col-sell,
    .ti3__symbols-table-body .table__col-buy {
        max-width: none;
    }

    .ti3__symbols-table-body .ti3__symbols-table-row {
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
        -ms-grid-rows: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        grid-template-areas:
            'name buy'
            'name change';
    }

    .ti3__symbols-table-body .ti3__symbols-table-row .table__col-name {
        grid-area: name;
    }

    .ti3__symbols-table-body .ti3__symbols-table-row .table__col-buy {
        grid-area: buy;
    }

    .ti3__symbols-table-body .ti3__symbols-table-row .table__col-change {
        grid-area: change;
    }

    .ti3__symbols-table-body .arrow__handler {
        display: block;
    }

    .mobile__toggles {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }

    .mobile__modal {
        width: 100vw;
        height: calc(var(--vh, 1vh) * 100); /* из archive.js добавляется --vh */
    }

    .mobile__modal-close--mb {
        display: block;
    }

    .mobile__modal-submit--mb {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }

    .mobile__modal-close--pc,
    .mobile__modal-submit--pc {
        display: none;
    }

    .mobile__modal-header {
        margin-bottom: 0;
        padding: 16px;
    }

    .mobile__modal-body {
        width: 100%;
        margin: 0;
    }

    .mobile__modal-footer {
        padding: 16px;
    }

    .ti3__filters.active {
        display: none;
    }
}

@media (max-width: 360px),
(max-height: 360px) and (orientation: landscape) {
    .mobile__modal-header__row {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
    }
}

/* RTL STYLES START */
.rtl .mobile__modal {
    left: 0;
    right: auto;
    -webkit-transform: translateX(-150%);
    -ms-transform: translateX(-150%);
    transform: translateX(-150%);
}

.rtl .mobile__modal.active {
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
}

.rtl .ti3_archive_search_results_list .search__result-title {
    text-align: left;
}

.rtl .ti3__symbols-table-row .table__col--number {
    font-family: Inter, Roboto, Helvetica, Arial, sans-serif;
    direction: ltr;
}

.rtl .ti3__symbols-table-row .table__col:not(.table__col-name) {
    text-align: left;
}

.rtl .mobile__toggles {
    -webkit-transform: translateX(150%);
    -ms-transform: translateX(150%);
    transform: translateX(150%);
}

.rtl .mobile__toggles.active {
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
}

@media (max-width: 480px),
(max-height: 480px) and (orientation: landscape) {
    .rtl .ti3__symbols-table-row .table__col-buy,
    .rtl .ti3__symbols-table-row .table__col--mobile {
        text-align: left;
    }

    .rtl .ti3__symbols-table-row .table__col.table__col--number.show {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
    }
}
