.plans-wrapper {
    background-color: var(--main-color);
}

.plans-wrapper .plans-wrapper-content {
    margin-top: 5rem;
    padding: 5rem 0 3.75rem;
}

.plans-wrapper .plans-wrapper-content .plans-title {
    font-family: var(--font-family);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 3.625rem;
    color: #fff;
}

.plans-wrapper .plans-wrapper-content .plans-subtitle {
    font-family: var(--font-family);
    font-size: 1.75rem;
    font-style: normal;
    font-weight: 700;
    line-height: 2.375rem;

    color: var(--castanho);
}

.plans-wrapper .plans-wrapper-content .plans-top {
    margin-bottom: 4.375rem;
    display: flex;
    gap: 0.9375rem;
    flex-direction: column;
}

.tab-content-plans,
.plans-bottom {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2rem;
}

.tab-content-plans>.plans-item:nth-child(-n+3),
.plans-bottom>.plans-item:nth-child(-n+3) {
    grid-column: span 2;
}
.tab-content-plans>.plans-item:nth-child(n+4),
.plans-bottom>.plans-item:nth-child(n+4) {
    grid-column: span 3;
}

.plans-wrapper .plans-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5rem;
}

.plans-wrapper .plans-button a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.625rem 1.375rem;

    border-radius: 6.25rem;
    background-color: var(--castanho);

    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5rem;

    text-decoration: none;
    text-transform: uppercase;
    color: var(--main-color);
    transition: all 0.3s ease;
}

.plans-wrapper .plans-button a:hover {
    background-color: #fff;
}

/* ITEM */

.plans-item {
    border-radius: 1rem;
    border: 0.5px solid rgba(0, 0, 0, 0.10);
    background-color: #FCFCFC;
    box-shadow: 0 0 4.4px 0 rgba(0, 0, 0, 0.06), 0 5px 19px 0 rgba(0, 0, 0, 0.08);
    padding: 2rem 1.5rem 1.5rem;

    display: flex;
    flex-direction: column;
    gap: 0.9375rem;

    height: 33.125rem;
    box-sizing: border-box;
}

.plans-item .item-mid,
.plans-item .item-top {
    display: flex;
    flex-direction: column;
    gap: 0.3125rem;
}

.plans-item .item-mid {
    gap: 0.9375rem;
}

.plans-item .item-top .item-name {
    color: var(--preto);
    font-family: var(--font-family);
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: 140%;
}

.plans-item .item-mid .item-value span,
.plans-item .item-top .item-billing {
    color: #828282;
    font-family: var(--font-family);
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
}

.plans-item .item-mid .item-value {
    color: var(--preto);
    font-family: var(--font-family);
    font-size: 3rem;
    font-weight: 700;
    line-height: 110%
}

.plans-item .item-mid .item-value.recommended {
    color: #50A7FE
}

.plans-item .item-mid .item-value span {
    margin-left: 0.375rem;
}

.plans-item .item-top .recommended {

    font-size: 1.125rem;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    color: var(--preto);
    font-family: var(--font-family);
}


.plans-item .item-mid .item-desc {
    color: var(--preto);
    font-family: var(--font-family);
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 500;
    line-height: 140%
}


.plans-item .item-bottom{
    margin-top: auto;
}

.plans-item .item-bottom a {
    display: flex;
    padding: 0.6875rem 1rem;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    align-self: stretch;
    border-radius: 6.25rem;
    border: 1px solid var(--preto);
    text-decoration: none;


    color: var(--preto);
    font-family: var(--font-family);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 145%;

    cursor: pointer;
    transition: all 0.3s ease;
}

.plans-item .item-bottom a.open,
.plans-item .item-bottom a:hover {
    background-color: var(--main-color);
    color: #FFF;
}

.plans-item-popup,
.plans-item .item-desc .item-dropdown .mobile {
    display: none;
}

.plans-item {
    position: relative;
}

.plans-item-popup {
    position: absolute;
    top: 1.25rem;
    left: 20%;
    border-radius: 1rem;
    background: linear-gradient(169deg, #0C09E6 6.23%, #2A2970 38.64%);
    padding: 2.8125rem;
    box-sizing: border-box;

    max-width: 45rem;
    width: 100%;
    z-index: 10;
    box-shadow: 0 4px 4px 0 rgba(174, 174, 174, 0.25);
}

.plans-item-popup.open {
    display: flex;
}

.plans-item-popup .popup-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 2.375rem;
}

.plans-item-popup .popup-wrapper .popup-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plans-item-popup .popup-wrapper .popup-top span {
    font-family: var(--font-family);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.75rem;
    color: #FFF;
}

.plans-item-popup .popup-wrapper .popup-top span.close {
    content: url('../images/close.svg');
    cursor: pointer;
}

.plans-item-popup .popup-wrapper .popup-middle {
    display: flex;
    flex-direction: column;
    gap: 2.8125rem;
}

.plans-item-popup .popup-wrapper .popup-middle span{
    font-family: var(--font-family);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 2.375rem;
    margin-bottom: 0.9375rem;
    color: #FFF;

}

.plans-item-popup .popup-wrapper .popup-middle > div {
    display: flex;
    flex-direction: column;
}


.plans-item-popup .popup-wrapper .popup-middle a {
    border-radius: 6.25rem;
    background-color: var(--castanho);
    padding: 0.625rem 1.375rem;

    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;


    color: var(--main-color);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5rem;
    width: max-content;
    text-decoration: none;
    text-transform: uppercase;
}

.plans-item-popup .popup-wrapper .popup-middle a:hover {
    background-color: #FFF;
}

@media (max-width: 1160px) {
    .plans-bottom {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .plans-bottom .plans-item {
        max-width: 21rem;
        margin: 0 auto;
        width: 100%;
    }

    .plans-wrapper .plans-wrapper-content .plans-top {
        gap: 1.25rem;
        margin-bottom: 2.8125rem;
    }

    .plans-wrapper .plans-wrapper-content {
        padding-top: 3.75rem;
        margin-top: 2.1875rem;
    }

    .plans-wrapper .plans-wrapper-content .plans-title {
        font-size: 1.75rem;
        line-height: 2.375rem;
    }
    .plans-wrapper .plans-wrapper-content .plans-subtitle {
        font-size: 1.125rem;
        line-height: 1.625rem;
    }

    .plans-item .item-desc .item-dropdown .mobile {
        display: flex;
        padding: 0.3125rem 0.625rem;
        align-items: flex-start;
        gap: 0.5rem;
        align-self: stretch;
        border-radius: 0.5rem;
        background-color:  #F5F5F5;
        justify-content: space-between;


        color: #0B65BF;
        font-family: var(--font-family);
        font-size: 1.125rem;
        font-weight: 600;
        line-height: 140%;
        
    }

    .plans-item .item-desc .item-dropdown .mobile::after {
        content: url('../images/chevron_horizontal.svg');
        transition: all .3s ease;

    }

    .plans-item .item-desc .item-dropdown .mobile.active::after {
        transform: rotate(180deg);
    }

    .plans-item .item-desc .item-dropdown .item-desc-value {
        display: none;
    }

    .plans-item .item-desc .item-dropdown .mobile.active ~ .item-desc-value {
        display: block;
        padding: 0.625rem;
    }

    .plans-item,
    .plans-item .item-mid {
        gap: 2rem;
    }

    .plans-item {
        height: max-content;
    }

    .plans-item .item-mid .item-value {
        font-size: 2.8125rem;
    }

    .plans-wrapper {
        padding-top: 0;
    }

    .plans-wrapper .plans-button {
        margin-top: 3.75rem;
    }

    .plans-prices-faq .faq-section-header {
        gap: 1.875rem;
    }
}