/* ------------------------OVERRIDES-------------------------------------------- */
/* :root{
    --secondary : #294456; 
} */

html{
    scroll-snap-type: none;
}

html:not(:has(.form_overlay.hidden)){
    overflow: hidden;
}

/* ---------------------------------------------------------------- */
/* #pricing_banner{
    position: relative;
    overflow: hidden;
} */

#discount{
    scroll-margin-top: 77px;
}

#highlight{
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 26%;
    border: 4px solid var(--brand);
    border-radius: 20px;
    /* z-index: -1; */
    pointer-events: none;
}

#head_table_bg{
    position: absolute;
    top: 25px;
    right: 20px;
    width: Calc(75% - 70px);
    height: 180px;
    z-index: -2;
    border-radius: 20px;
    background-color: var(--secondary);
}

#plan_cards{
    display: flex;
    margin: 3%;
    flex-direction: row;
}

#plan_cards .card{
    text-align: center;
    min-height: unset;
    background-color: var(--secondary);
    padding: 20px;
}

#plan_cards button{
    margin: 20px 0 10px 0;
}

#price_starting{
    scroll-margin-top: 77px;
}

#pricing_table{
    padding: 20px;
    overflow: hidden;
}

#pricing_table table{
    width: calc(100% - 20px);
    margin: 10px;
    border-collapse: collapse;
    font-size: 1.2rem;
}

#pricing_table table:nth-of-type(2){
    line-height: 1.4rem;
}

#pricing_table table h4, #pricing_table table h3{
    margin: 0px;
}
#pricing_table td:first-child {
    text-align: left;
}

#pricing_table td{
    padding: 10px 15px;
    /* overflow: hidden; */
    /* width: 25%; */
}
#pricing_table th{
    /* background-color: var(--secondary); */
    padding: 10px 0px;
    height: 50px;
}

#pricing_table table td:not(:nth-last-child(-n+2)){
    border-right: 2px solid #fff1;
}

#header_table td:not(:first-child){
    background-color: var(--secondary);
}
#header_table td:nth-of-type(2){
    border-radius: 20px 0 0 20px;
}
#header_table td:nth-of-type(4){
    border-radius: 0 20px 20px 0;
}

.category_row{
    height: 90px;
}

.checkbox input{
    display: none; 
}
.checkbox .checkmark{
    display: none;
}
.checkbox{
    display: block;
    position: relative;
    background-color: var(--primary);
    height: 25px; width: 25px;
    margin: auto;
    border-radius: 3px;
    cursor: pointer;
    /* border: 1px solid var(--brand); */
}

.checkbox:has(input:checked)>.checkmark{
    display: block;
}

td:has(.rate_label){
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rate_label{
    font-size: 0.8rem;
}

.caution{
    width: 20px;
    position: absolute;
}
.caution:hover ~ .caution_msg{
    display: block;
}

td:has(.caution_msg){
    position: relative;
}
.caution_msg{
    display: none;
    position: absolute;
    background-color: var(--secondary);
    font-size: 1rem;
    padding: 10px;
    border-radius: 10px;
    right: 0;
    width: 300%;
}

#total{
    width: Calc( 25% - 20px);
    margin-left: auto;
    background-color: var(--secondary);
    padding: 10px 20px;
    border-radius: 10px;
    z-index: 1;
    position: relative;
    scroll-margin-top: Calc(100vh - 177px);
}
#total p{
    margin: 0;
    text-align: left;
}
#total h3{
    margin: 0;
    /* color: var(--brand); */
    text-align: right;
}
#total_price{
    display: inline;
    font-weight: bold;
}

.branch_count{
    width: 40px;
    height: 30px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 4px;
    -moz-appearance: textfield;
}

.branch_count::-webkit-outer-spin-button,
.branch_count::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.no_spinner{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.spin_up,.spin_down{
    cursor: pointer;
    scale: 1.5;
}

.spin_up{
    rotate: 180deg;
}

.spin_up:hover,.spin_down:hover{
    scale: 2;
}
.spin_up:active,.spin_down:active{
    color: var(--brand);
}

#custom_info{
    display: flex;
    text-align: left;
}

#custom_info img{
    width: 2.5rem;
}

#faq_prompt{
    display: flex; 
    align-items: center; 
    justify-content: space-around;
}

/* -----------------------------MEDIA QUERIES----------------------------- */
@media screen and (max-width: 600px) {
    #plan_cards{
        flex-direction: column;
        font-size: 1.4rem;
    }
    #plan_cards button{
        width: 70%;
        margin-left: auto;
        margin-right: auto;
    }

    #plan_cards .card{
        margin: 2% 0;
    }

}

@media screen and (max-width: 1000px) {
    #head_table_bg{
        height: 50px;
        top: 0;
        width: 100%;
        right: 0;
        border-radius: 0;
    }
    #highlight{
        width: 22%;
    }

    #pricing_table{
        padding: 0;
    }

    #pricing_table table{
        font-size: 1rem;
        width: 100%;
        margin: 0;
        table-layout: fixed;
    }

    #pricing_table td{
        padding:5px 10px ;
    }

    #header_table{
        display: none;
    }

    .no_spinner{
        flex-direction: column;
    }

    #total{
        width: 100%;
    }

    #faq_prompt{
        flex-direction: column;
        gap: 10px;
    }
}

@media screen and (min-width: 1000px){
    h1{ font-size: 3rem;}
    h2{ font-size: 2.5rem;}
    h3{ font-size: 2rem;}

    .caution_msg{
        width: 100%;
    }
}