@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('https://cafef1.mediacdn.vn/Font/Montserrat-VariableFont_wght.ttf') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 400;
    src: url('https://cafef1.mediacdn.vn/Font/Montserrat-VariableFont_wght.ttf') format('woff2');
}

#chart_Gold {
    width: 100%;
    height: 100%;
}

.gold-price-manh-hai {
    display: flex;
    padding: 12px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    align-self: stretch;
    border-radius: 12px;
    border: 1px solid #DCF1FE;
    background: #F0F7FB;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.gold-price-manh-hai-header {
    display: flex;
    padding: 2px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.gold-price-manh-hai-title {
    color: #555;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
}

.gold-price-content {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
    height: calc(100% - 38px);
}

.gold-price-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
    width: 220px;
    justify-content: space-between;
}

.gold-price-gold {
    display: flex;
    padding: 8px 0;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    border-radius: 8px;
    background: #FFF;
    width: 100%;
}

.gold-price-gold-title {
    display: flex;
    padding: 6px 16px;
    justify-content: center;
    align-items: center;
    /* gap: 10px; */
    color: #AA1F23;
    font-family: Montserrat;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.gold-price-gold-buy,
.gold-price-gold-sell {
    display: flex;
    padding: 4px 16px;
    justify-content: space-between;
    align-items: flex-end;
    align-self: stretch;
    color: #212529;
    font-family: Montserrat;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    width: 100%;
    box-sizing: border-box;
}

.gold-price-gold-name {
    width: 57px;
}

.gold-price-gold-value {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex: 1 0 0;
}

.gold-price-unit {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    align-self: stretch;
}

.gold-price-unit-unit {
    color: #AA1F23;
    font-family: Montserrat;
    font-size: 10px;
    font-style: normal;
    font-weight: normal;
    line-height: normal;
}

.gold-price-unit-source {
    color: #AA1F23;
    font-family: Montserrat;
    font-size: 9px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.gold-price-chart {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    align-self: stretch;
    border-radius: 8px;
    background: #FFF;
    width: calc(100% - 227px);
}

.gold-price-chart-header {
    display: flex;
    padding: 8px 16px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.gold-price-chart-title {
    color: #212529;
    font-family: Montserrat;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.gold-price-chart-unit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gold-price-chart-unit div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    color: #212529;
    font-family: Montserrat;
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.unit-buy {
    width: 10px;
    height: 1px;
    background: #35800C;
}

.unit-sell {
    width: 10px;
    height: 1px;
    background: #AB2227;
}

.button-select-gold {
    display: flex;
    padding: 0 16px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    position: relative;
}

.select-selected {
    display: flex;
    padding: 6px 12px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    color: var(--BTMH-Dark, #212529);
    font-family: Montserrat;
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    cursor: pointer;
}

.select-items {
    display: none;
    position: absolute;
    top: 25px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    color: #212529;
    font-family: Montserrat;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    z-index: 5;
    background: white;
    overflow: hidden;
}

.select-items div {
    display: flex;
    padding: 6px 12px;
}

.active-gold {
    background: #DCF1FE;
}

.chart-gold {
    display: flex;
    padding: 4px 16px;
}

.chart-gold,
#chart_gold_content {
    width: 100%;
    box-sizing: border-box;
}

.gold-price-unit-mb {
    display: none;
}

.box-price-gold {
    width: 100%;
}

@media (max-width: 500px) {

    .gold-price-content {
        display: flex;
        flex-direction: column;
        /* Mobile: xếp dọc */
    }

    .gold-price-price {
        width: 100%;
    }

    .gold-price-chart {
        width: 100%;
        flex: 1;
        /* Tự động chiếm phần còn lại */
        min-height: 0;
    }

    .gold-price-unit-mb {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        align-self: stretch;
    }

    .gold-price-unit {
        display: none;
        /* Xuống dưới chart */
    }

    .gold-price-gold {
        display: flex;
        padding: 8px 0;
        flex-direction: row;
        align-items: flex-start;
        align-self: stretch;
        border-radius: 8px;
        background: #FFF;
        width: 100%;
        justify-content: space-between;
    }

    .gold-price-gold-title {
        width: 106px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .box-price-gold {
        flex: 1 0 0;
    }

    .gold-price-chart-title {
        color: #212529;
        font-family: Montserrat;
        font-size: 13px;
        font-style: normal;
        font-weight: 600;
        line-height: normal;
    }
}

@media (min-width: 367px) {
    .gold-price-gold-title {
        flex-direction: row;
        align-items: center;
    }
}