/* National Rates Styling */
#nationalRatesGraph {
    background: #f4f4f6;
    border-radius: 16px;
    padding: 20px;
}
#nationalRatesGraph {
    background: #fff;
    border-radius: 0;
    padding: 0;
}
#nationalRatesGraph #loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    position: absolute;
    top: 30%;
    left: 45%;
}
#nationalRatesGraph .spinner {
  width: 150px;
  height: 150px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-top-color: #20c97a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
#lastUpdatedDate{
    font-size: 12px;
    font-weight: 500;
    color: #797777;
    position: absolute;
    right: 40px;
}
#nationalRatesGraph .ratesChartCont{
    height: 550px;
    background: #f4f4f6;
    border-radius: 16px;
    padding: 20px;
    padding-bottom: 90px;
    position: relative;
}
#nationalRatesGraph select.cdRatesSelect {
    width: 200px;
    display: block;
    padding: 8px 4px;
    border: 1px solid #20c97a;
    border-radius: 5px;
}
#nationalRatesGraph .customYr,
#nationalRatesGraph .customMonth {
    width: auto;
}
#nationalRatesGraph .custom-select-btn-yr,
#nationalRatesGraph .custom-select-btn-month {
    padding: 8px 10px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #21A771;
    font: 700 14px Roboto;
    color: #333;
    line-height: normal;
    border-radius: 4px;
    width: 100%;
    outline: none;
    background-color: rgb(229, 251, 243);
    display: flex;
    align-items: center;
    gap: 5px;
}
#nationalRatesGraph .custom-select-month {
    width: 160px !important;
    left: 20px !important;
}
#nationalRatesGraph .custom-select-yr,
#nationalRatesGraph .custom-select-month {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    cursor: pointer;
    border: 1px solid #cbcbd4;
    font: 500 16px Roboto;
    color: #333333;
    line-height: 19px;
    border-radius: 6px;
    height: auto;
    width: 140px;
    background-color: rgb(229, 251, 243);
}
#nationalRatesGraph .arrow-img {
    background-image: url(/images/national_rates/down-arrow.svg);
    height: 18px;
    width: 18px;
    display: block;
    background-repeat: no-repeat;
    background-size: cover;
    margin-left: 16px;
}
#nationalRatesGraph .clickedArrow {
    transform: rotate(180deg);
}
#nationalRatesGraph .custom-select-yr label,
#nationalRatesGraph .custom-select-month label {
    display: block;
    padding: 8px;
    cursor: pointer;
    margin: 0 8px;
    display: flex;
    align-items: center;
    gap: 3px;
}
#nationalRatesGraph .custom-select-yr input,
#nationalRatesGraph .custom-select-month input {
    margin-right: 8px;
    accent-color: #237353;
    height: 15px;
    width: 15px;
}
#nationalRatesGraph .selectAll{
    border-bottom: 1px solid #cbcbd4;
}
#nationalRatesGraph .selectText{
    background: #21A771;
    color: #fff;
    text-align: center;
    display: block;
    padding: 8px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}
#nationalRatesGraph .custom-select-month .month1,
#nationalRatesGraph .custom-select-month .month3,
#nationalRatesGraph .custom-select-month .month6,
#nationalRatesGraph .custom-select-month .month12,
#nationalRatesGraph .custom-select-month .month24,
#nationalRatesGraph .custom-select-month .month36,
#nationalRatesGraph .custom-select-month .month48,
#nationalRatesGraph .custom-select-month .month60{
    display: inline-block;
    height: 10px;
    width: 9px;
    border-radius: 100%;
    margin: 0 2px;
}
#nationalRatesGraph .custom-select-month .month1{
    background-color: #3e95cd;
}
#nationalRatesGraph .custom-select-month .month3{
    background-color: #8e5ea2;
}
#nationalRatesGraph .custom-select-month .month6{
    background-color: #3cba9f;
}
#nationalRatesGraph .custom-select-month .month12{
    background-color: #e8c3b9;
}
#nationalRatesGraph .custom-select-month .month24{
    background-color: #c45850;
}
#nationalRatesGraph .custom-select-month .month36{
    background-color: #ffc000;
}
#nationalRatesGraph .custom-select-month .month48{
    background-color: #ff6600;
}
#nationalRatesGraph .custom-select-month .month60{
    background-color: #000000;
}
#nationalRatesGraph .insights{
    border: 1px solid #ddd;
    padding: 10px 12px;
    border-radius: 4px;
    background: rgb(229, 251, 243);
    font: 400 14px 'Roboto';
    width: fit-content;
    color: #21A771;
    margin: 16px auto !important;
    transform: translateY(-8px);
}
#nationalRatesGraph .insights #subPart{
    background: rgb(229, 251, 243);
    font: 400 14px 'Roboto';
    color: #21A771;
}
#nationalRatesGraph .insights .highest_val, 
#nationalRatesGraph .insights .lowest_val {
    font-weight: 700;
}


@media screen and (max-width: 767.98px) {
    #nationalRatesGraph .custom-select-btn-yr,
    #nationalRatesGraph .custom-select-btn-month{
        height: auto;
    }
    #nationalRatesGraph .ratesChartCont{
        height: 600px;
        padding: 16px;
        overflow-x: scroll;
        overflow-y: hidden;
    }
    #nationalRatesGraph .ratesChartCont{
        padding-bottom: 110px;
    }
    #nationalRatesGraph #loader{
        left: 30%;
    }
    #nationalRatesGraph .arrow-img{
        position: absolute;
        right: 10px;
    }
    #nationalRatesGraph .extendChart{
        width: 500px !important;
    }
    #nationalRatesGraph .extendedInsight{
        width: 145%;
    }
}
@media (min-width: 768px) and (max-width: 992px) {
    #nationalRatesGraph #loader{
        left: 40%;
    }
}
@media (min-width: 768px) and (max-width: 820px) {
    #nationalRatesGraph .insights{
        transform: translateY(-20px);
    }
}
