﻿.address-box-studio {
    background-color: #f9f9f9;
    border: 2px solid #E0E0E0;
    display: flex;
    border-radius: 12px;
    margin-top: 0px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.address-title-studio {
    display: flex;
    align-items: center;
    align-content: center;
    text-align: center;    
    font-size: 15px;
    font-weight: 600;
    gap: 5px;
    color: #000;
    margin-bottom: 15px;
    text-align: left;
}

.row-address {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    column-gap: 16px;
    row-gap: 10px;
    margin-bottom: 15px;
}

.input-wrapper-studio {
    display: flex;
    flex-direction: column;
    flex: 1 1 49%;
    min-width: 240px;
    box-sizing: border-box;
}

    .input-wrapper-studio label {
        font-weight: 500;
        font-size: 16px;
        color: #000;
        margin-bottom: 6px;
        font-family: 'BarlowCondensed', sans-serif;
    }

.input-field-studio {
    width: 100%;
    max-width: 600px;
}

.MePage-studio {
    min-height: calc(100vh - 376px);
    padding: 50px;
    box-sizing: border-box;
    margin-top: 130px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.MePage-myaccount-studio { 
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 2;
    max-width: 100%;
}
    .MePage-myaccount-studio h1 {
        text-align: center;
    }

    .MePage-myaccount-studio form {
        display: flex;
        flex-direction: column;
        gap: 0px;
    }

.flex-direction-studio {
    display: flex;
    flex-direction: row;
    gap: 15px;
    width: 100%;
}

.flex-direction-studio p {
    font-weight: 600;

    font-size: 16px;
    color: #000;
    margin-bottom: 6px;
    font-family: 'BarlowCondensed', sans-serif;
}

.MePage-plans-studio {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex:2;
}

.flexDisplay-plans-studio {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

    .flexDisplay-plans-studio h1 {
        margin: 0;
        margin-left: 15px;
        padding: 0;
        align-self: flex-start;
    }
    .flexDisplay-plans-studio button {
        margin-right: 40px !important;
    }

.historical-payment h2 {
    text-align: center
}

.flexDisplay-account-studio {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}



.plan-card-mePage {
    background: #fff;
    border: 15px solid #F4F4F4;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.3s, box-shadow 0.3s;
}

    .plan-card-mePage.maxWidth {
        width: 900px;
    }

    .plan-card-mePage.Width {
        width: 100%;
    }


    
    .plan-card-mePage.recommended {
        position: relative;
        overflow: hidden;
    }

        .plan-card-mePage.recommended::before {
            content: "";
            position: absolute;
            inset: 0;
            padding: 3px;
            background: linear-gradient(45deg, #E40E18, #000);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask-composite: exclude;
            pointer-events: none;
            border-radius: 11px;
        }

        .plan-card-mePage.recommended > * {
            position: relative;
            background: #fff;
            z-index: 1;
        }


.plan-price-history-sh {
    padding: 30px;
    background-color: #F4F4F4;
    text-align: center;
    margin-top: 15px;
    width: 300px;
    border-radius: 5px;
}

.dual-button-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

    .dual-button-wrapper > button {
        flex: 1;
        height: 54px;
        padding: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }


.button-address,
.button-save-studio {
    flex: 1;
    height: 54px;
    font-size: 16px;
    padding: 12px 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin-top: 0;
    max-width: none;
}

/* Específico para .button-address */
.button-address {
    background-color: transparent;
    color: #E40E18;
    border: 2px solid #E40E18;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
    font-family: 'BarlowCondensed', sans-serif;
}

/* Específico para .button-save-studio */
.button-save-studio {
    border: 2px solid #E40E18;
    border-radius: 6px;
    background-color: #E40E18;
    color: #fff;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
}


.cancel-button-studio {
    background: none;
    border: none;
    width: 100px;
    cursor: pointer;
    font-weight: 600;
    color: red;
}

.modal-overlay-plans-studio {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow-x: hidden;
}

.modal-content-plans-studio {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: auto;
    width: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}



@media (max-width: 1280px) {
    .flexDisplay-plans-studio {
        margin-top: 10px
    }

    .row-address {
        flex-direction: column;
        align-items: center; /* Centraliza os filhos */
    }

    .input-wrapper-studio {
        width: 100%;
        max-width: 500px; /* ou 100%, se quiser que ocupe tudo */
        margin: 0 auto; /* garante centralização */
    }

    .flex-direction-studio {
        flex-direction: column;
        gap: 0px;
    }

        .flex-direction-studio p {
            margin-top: 0px;
            margin-bottom: 10px;
        }

    .dual-button-wrapper {
        flex-direction: column;
        align-items: center;
    }

        .dual-button-wrapper > .button-address,
        .dual-button-wrapper > .button-save-studio {
            width: 100%;
            max-width: 320px;
            margin: 10px 0;
        }
}

@media (max-width: 768px) {
    .dual-button-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 8px; /* menor espaçamento */
    }

        .dual-button-wrapper > .button-address,
        .dual-button-wrapper > .button-save-studio {
            margin: 0; /* remove margin vertical */
        }

    .MePage-studio {
        padding: 20px;
    }

    .modal-overlay-plans-studio {
        overflow-y: auto;
    }

    .modal-content-plans-studio {
        margin-top: 650px;
    }

    .plan-card-mePage.maxWidth {
        width: 100%;
    }


    .button-address,
    .button-save-studio {
        width: 100%;
        max-width: 320px;
        font-size: 16px;
        padding: 12px;
        text-align: center;
        margin: 10px auto;
    }
}

@media (max-width: 700px) {
    .flexDisplay-plans-studio {
        display: flex;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center;
        gap: 10px;
        text-align: center;
        width: 100%;
        margin-top: 20px;
    }

        .flexDisplay-plans-studio h1 {
            margin: 0 !important;
            font-size: 20px;
            text-align: center !important;
            width: 100%;
            display: block;
        }

    .plan-button-sh.recommended {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .plan-card-mePage {
        order: 1;
    }

    .historical-payment {
        order: 2;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .plan-price-history-sh {
        width: 100%;
        max-width: 320px;
    }
}




