﻿.chart__wrap {
    margin-top: 13px;
    margin-bottom: 30px;
}

.chart__container-outer {
    position: relative;
    width: 100%;
}

.loading__txt {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.chart__container {
    min-height: 400px;
    overflow: visible !important;
}

.chart__container .highcharts-container,
.chart__container svg {
    overflow: visible !important;
}

.chart__container-candle {
    display: none;
}

.chart__container-candle .highcharts-point-down {
    stroke: #fa564d;
    fill: #fa564d;
}

.chart__container-candle .highcharts-point-up {
    stroke: #68ad5c;
    fill: #68ad5c;
}

.chart__header {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-top: 15px;
    border-top: 1px solid #f3f5f6;
    border-bottom: 1px solid #f3f5f6;
}

.chart__timeframes,
.chart__timeframes-label {
    display: none;
}

.chart__timeframes-label {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-width: 74px;
    min-height: 31px;
    padding: 0 20px;
    background-color: #f4f5f7;
    border: 1px solid #f4f5f7;
    border-radius: 20px;
    -webkit-transition: border-color .2s ease;
    -o-transition: border-color .2s ease;
    transition: border-color .2s ease;
}

.chart__header.expanded .chart__timeframes-label {
    border-color: #8f9296;
}

.chart__timeframes-active {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.chart__timeframes .timeframe__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;
    margin-inline-end: 10px;
    margin-bottom: 15px;
    min-width: 68px;
    min-height: 31px;
    padding: 0 20px;
    font-size: 14px;
    line-height: 1;
    background-color: #f4f5f7;
    color: #272e36;
    outline: none;
    border-radius: 20px;
    border: none;
    white-space: nowrap;
}

.chart__timeframes .timeframe__item-active {
    background-color: #272e36;
    color: #fff;
}

.chart__timeframes .timeframe__item:last-child {
    margin-inline-end: 0;
}

.chart__switcher {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    max-width: 115px;
    height: 32px;
    margin-inline-start: 25px;
    background-color: #f3f5f6;
    border-radius: 15px;
    overflow: hidden;
}

.chart__switcher .switcher__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;
    width: 50%;
    height: 100%;
    cursor: pointer;
}

.chart__switcher .switcher__item-active {
    background-color: #1f252d;
    cursor: initial;
}

.chart__switcher .switcher__item-active path {
    stroke: #fff;
}

.chart__error {
    display: none;
    margin-bottom: 20px;
}

.tooltip__content {
    font-size: 12px;
}

.tooltip__content-line {
    text-align: center;
}

.tooltip__content-candle .tooltip__row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.rtl .tooltip__content-candle .tooltip__row {
    direction: rtl;
}

.tooltip__content .point__value {
    min-width: 80px;
    text-align: right;
}

.rtl .tooltip__content .point__value {
    direction: ltr;
    text-align: left;
}

.tooltip__content .point__date {
    color: #6f797e;
}

.tooltip__content .tooltip__row,
.tooltip__content-candle .point__date {
    color: #272e36;
}

.highcharts-credits {
    display: none;
}

@media (max-width: 991px) {
    .chart__timeframes .timeframe__item {
        min-width: 66px;
    }
}

@media (max-width: 767px) {
    .chart__timeframes-label {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
    .chart__timeframes {
        display: none;
    }
    .chart__header {
        padding-bottom: 15px;
    }
    .chart__header.expanded .chart__timeframes-active {
        position: absolute;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        width: 270px;
        left: 0;
        top: 60px;
        padding: 20px 20px 5px 20px;
        background-color: #fff;
        border-radius: 5px;
        -webkit-box-shadow: 0px 6px 32px rgba(30, 37, 44, 0.12);
        box-shadow: 0px 6px 32px rgba(30, 37, 44, 0.12);
        z-index: 2;
    }
    .rtl .chart__header.expanded .chart__timeframes-active {
        left: auto;
        right: 0;
    }
    .chart__timeframes .timeframe__item {
        min-width: 68px;
        margin-right: 0;
        margin-left: 0;
    }
}

@media (max-width: 500px) {
    .highcharts-yaxis .highcharts-axis-line {
        stroke: transparent;
    }

    .highcharts-yaxis-labels {
        opacity: 0;
    }

    .chart__header.expanded .chart__timeframes-active {
        top: 55px;
    }

    .chart__container {
        min-height: 300px;
        max-height: 300px;
    }

    .chart__timeframes .timeframe__item,
    .chart__timeframes-label {
        padding: 0 12px;
        min-height: 27px;
        font-size: 14px;
    }

    .chart__switcher {
        height: 27px;
    }

    .chart__switcher svg {
        max-width: 16px;
    }
}

@media (max-width: 360px) {
    .chart__timeframes .timeframe__item {
        font-size: 12px;
    }
}
