/* Main page container */
.prices_container{
    padding: 80px 100px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* Prices table */
.prices_table{
    margin-top: 15px;
}

/* All table cells */
.prices_table .body3{
    font-weight: 500;
}

/* PVM section title */
.pvm_section .h2{
    text-align: center;
    margin-bottom: 50px;
}

/* Container holding smaller info containers */
.services_info{
    display: flex;
    flex-wrap: wrap;
    --cols: 3;
    --gap: 30px;
    gap: var(--gap);
}

/* Info container */
.info_container{
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--grey4);
    width: calc(100% / var(--cols) - var(--gap) / var(--cols) * (var(--cols) - 1));
    min-height: 176px;
    height: 100%;
}

/* 3-rd and 6-th info containers */
.auto_height_container{
    height: auto;
}

/* Info container (white) title */
.info_container > .h3 {
    color: var(--black);
}

/* Info container (white) text */
.info_container > .body1 {
    color: var(--grey1);
}

/* Purple info container title + text */
.info_container.purple_info_container > .h3, .info_container.purple_info_container > .body1 {
    color: var(--white1);
}

/* Purple info container */
.info_container.purple_info_container{
    background-color: var(--purple1);
}

/* Prices section (mobile) */
.prices_section_mobile{
    display: none;
}

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

    /* Main page container */
    .prices_container{
        padding: 80px 50px;
    }

    /* Container holding smaller info containers */
    .services_info{
        --cols: 2;
    }

    /* Info container 1-st child */
    .info_container:nth-child(n + 1){
        order: 2;
    }

    /* Info container 2-nd child */
    .info_container:nth-child(n + 2){
        order: 1;
    }

    /* Info container 3-rd child*/
    .info_container:nth-child(n + 3){
        order: 3;
    }

    /* Info container 4-th child*/
    .info_container:nth-child(n + 4){
        order: 4;
    }

    /* Info container 5-th child */
    .info_container:nth-child(n + 5){
        order: 6;
    }

    /* Info container 6-th child*/
    .info_container:nth-child(n + 6){
        order: 5;
    }
}

@media screen and (max-width:960px){
    .prices_table th{
        padding: 10px 20px;
    }
}

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

    /* Prices section (mobile) */
    .prices_section_mobile{
        display: flex;
        flex-direction: column;
    }

    /* Prices section (mobile) */
    .prices_section{
        display: none;
    }

    /* Main page container */
    .prices_container{
        padding: 30px 15px;
        gap: 30px;
    }

    /* Container holding smaller info containers */
    .services_info{
        flex-direction: column;
        gap: 20px;
    }

    /* PVM section title */
    .pvm_section .h2{
        margin-bottom: 30px;
        font-size: 16px;
        line-height: 24px;
    }

    /* Info container titlte */
    .info_container .h3{
        font-size: 16px;
        line-height: 24px;
    }

    /* Info container smaller text */
    .info_container .body1{
        font-size: 14px;
        line-height: 21px;
    }

    /* Info container */
    .info_container{
        width: 100%;
        height: fit-content;
        min-height: unset;
        padding: 20px 25px;
    }

    /* Info container 1-st child */
    .info_container:nth-child(n + 1){
        order: 1;
    }

    /* Info container 2-nd child */
    .info_container:nth-child(n + 2){
        order: 2;
    }

    /* Info container 3-rd child*/
    .info_container:nth-child(n + 3){
        order: 3;
    }

    /* Info container 4-th child*/
    .info_container:nth-child(n + 4){
        order: 4;
    }

    /* Info container 5-th child */
    .info_container:nth-child(n + 5){
        order: 5;
    }

    /* Info container 6-th child*/
    .info_container:nth-child(n + 6){
        order: 6;
    }
    
    /* Show more button div */
    .show-more-btn-prices{
        display: flex;
        justify-content: center;
    }

    /* Prices section title */
    .prices_section_mobile .caption2{
        margin-bottom: 10px;
    }

    /* Accordion prices collapsed */
    .accordion_wrapper{
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Inside of accordion prices collapsed */
    .accordion_wrapper div{
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    /* Accordion item */
    .prices_accordion_item{
        width: 100%;
    }

    /* Accordion title */
    .prices_accordion_title{
        padding: 10px 20px;
        background-color: var(--purple1);
        height: 45px;
        display: flex;
        align-items: center;
        position: relative;
        cursor: pointer;
    }

    /* Prices accordion title text */
    .prices_accordion_title .body4{
        color: var(--white1);
        font-weight: 400;
    }

    /* Accordion collapsed info */
    .accordion_prices .caption4{
        color: var(--grey1);
        font-weight: 500;
    }

    /* Accordion collapsed prices */
    .accordion_prices .body3{
        color: var(--black);
        font-weight: 500;
    }

    /* Prices accordion title text */
    .prices_accordion_title:after{
        content: url("/wp-content/themes/lenkijoje-pigiau/assets/icons/arrow_icon_down_white.png");
        position: absolute;
        right: 20px;
        top: 45%;
    }

    /* All accordion items*/
    .prices_accordion{
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

    /* Accordion collapsed state */
    .accordion_prices.active_price_show{
        opacity: 1;
        max-height: 239px;
        transition: max-height 0.8s, opacity 1.2s ease;
    }

    /* Accordion collapsed state */
    .accordion_prices{
        opacity: 0;
        max-height: 0px;
        transition: max-height 0.8s, opacity 0.2s ease;
    }

    /* Accordion wrapper */
    .accordion_wrapper{
        padding: 15px 20px;
        border-right: 1px solid var(--grey2);
        border-left: 1px solid var(--grey2);
        border-bottom: 1px solid var(--grey2);
    }

    /* Show more button */
    #prices-show-more{
        z-index: 1;
    }

    /* Default accordion item state */
    .prices_accordion_item{
        opacity: 1;
        transition: opacity 0.5s ease;
        height: auto;
    }

    /* Hidden accordion item */
    .hidden_element{
        opacity: 0;
        height: 0px;
        pointer-events: none;
    }

    /* Show more button */
    #prices-show-more{
        height: 45px;
    }

}