.bmpro-live-price-chart {
    position: relative;
    width: 100%;
    margin-top: 1rem;
    border: 1px solid #E1E3E3;


    /* HTMX Indicator */

    .htmx-indicator {
        display: none;
    }

    .htmx-request .htmx-indicator {
        display: flex;
    }

    .htmx-request.htmx-indicator {
        display: flex;
    }

    /* Chart Controls */
    .chart-control-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .controls {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        padding: 0px 10px;
        text-align: center;
        margin-top: 1rem !important;
        margin-bottom: 0.25rem !important;

        &>button {
            width: 40px;
            height: 25px;
            cursor: pointer;
            padding: 2px;
            margin: 2px;
            border: 0;
            border-radius: 4px;
            font-size: 14px;
            text-align: center;
            color: #434653;
            background-color: #efefef;
        }

        &>button[data-stream].active {
            background-color: #3C75D5;
            color: white;
        }

        &>button[data-stream]:hover {
            background-color: #3C75D5;
            color: white;
        }

        &>button[data-stream]:active {
            background-color: #3C75D5;
            color: white;
        }

        &>button[data-stream]:focus {
            outline: none;
        }
    }

    /* Style chart load animation */
    .loader-container {
        position: absolute;
        background-color: rgba(255, 255, 255, 0.5);
        top: 0px;
        width: 100%;
        height: 100%;
        margin-top: 0px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .lds {
        display: inline-block;
        position: relative;
        width: 64px;
        height: 100px;
    }

    .lds div {
        display: inline-block;
        position: absolute;
        left: 6px;
        width: 6px;
        background: #3C75D5;
        animation: lds 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
    }

    .lds div:nth-child(1) {
        left: 6px;
        animation-delay: -0.36s;
    }

    .lds div:nth-child(2) {
        left: 18px;
        animation-delay: -0.24s;
    }

    .lds div:nth-child(3) {
        left: 30px;
        animation-delay: -0.18s;
    }

    .lds div:nth-child(4) {
        left: 42px;
        animation-delay: -0.12s;
    }

    .lds div:nth-child(5) {
        left: 54px;
        animation-delay: -0.06s;
    }

    .lds div:nth-child(6) {
        left: 66px;
        animation-delay: 0;
    }

    /* CHART Styles */

    .btc-live-chart-stats {
        display: table;
        width: 100%;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .btc-live-chart-stats span {
        display: table-cell;
        text-align: center;
    }

    .live-price {
        display: flex;
        flex-flow: column;
        text-align: center;
        margin-top: 0.25rem !important;

        &>p {
            font-size: 4rem;
            margin-bottom: 0rem;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        }

        span.currency {
            display: inline-block;
            font-size: 2.8rem;
            transform: translateY(-0.5rem);
            font-weight: 600;

        }

        &>.btc.percentage {
            font-size: 2rem;
            font-weight: 400;
            margin-bottom: 0rem;
        }

        &>.eth.percentage {
            font-size: 16px;
            font-weight: 400;
        }
    }

    /* Chart screenshot buttons */
    .ss-eth-btn,
    .ss-btc-btn {
        display: inline-flex;
        justify-content: center;
        background-color: #efefef;
        align-items: center;
        margin-top: 12px;
        outline: none;
        border: none;
        margin-left: 6px;
        border-radius: 4px;
        padding: 2px 8px;
        cursor: pointer;
    }

    .ss-eth-btn,
    .ss-btc-btn span {
        font-size: 21px;
    }

    /* Utils */
    .hide {
        display: none;
    }

    .green {
        color: #12A62B;
    }

    .red {
        color: red;
    }

}

#btc-chart-container,
#eth-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


@media screen and (max-width: 576px) {
    .bmpro-live-price-chart .controls>button {
        height: 25px;
        padding: 0px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }
}





@keyframes lds {
    0% {
        top: 6px;
        height: 51px;
    }

    50%,
    100% {
        top: 19px;
        height: 16px;
    }
}



@media screen and (max-width: 576px) {

    #btc-chart,
    #eth-chart {
        aspect-ratio: 16/12;
    }

    .bmpro-live-price-chart .live-price>p {
        font-size: 2rem;
        margin-bottom: 0.25rem;
    }

    .bmpro-live-price-chart .live-price span.currency {
        font-size: 1.3rem;
        transform: translateY(-0.3rem);
    }

    .bmpro-live-price-chart .live-price>.btc.percentage {
        font-size: 1.5rem;
        font-weight: 400;
    }
}
