/* =========================================================
   MC2 DELIVERY
   ENDEREÇO DA LOJA — RESTAURANTE
========================================================= */


/* =========================================================
   PÁGINA
========================================================= */

.restaurant-address-page {

    width: 100%;

    min-height: calc(100vh - 72px);

    background: #f8f8f8;

    color: #222222;

    box-sizing: border-box;

}


.restaurant-address-container {

    width: 100%;

    max-width: 900px;

    margin: 0 auto;

    padding: 45px 24px 70px;

    box-sizing: border-box;

}


/* =========================================================
   CABEÇALHO
========================================================= */

.restaurant-address-header {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 10px;

    margin-bottom: 25px;

}


.restaurant-address-header h1 {

    margin: 0;

    color: #222222;

    font-size: 32px;

    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -0.6px;

}


.restaurant-address-header p {

    margin: 0;

    color: #777777;

    font-size: 14px;

    line-height: 1.5;

}


/* =========================================================
   BOTÃO VOLTAR
========================================================= */

.restaurant-address-back {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 42px;

    padding: 0 17px;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 21px;

    color: #555555;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;

}


.restaurant-address-back:hover {

    background: #f7f7f7;

    border-color: #dddddd;

    color: #ea1d2c;

    transform: translateY(-1px);

}


/* =========================================================
   FORMULÁRIO
========================================================= */

.restaurant-address-form {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    overflow: hidden;

    padding: 28px;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 18px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.04);

    box-sizing: border-box;

}


/* =========================================================
   CAMPO
========================================================= */

.restaurant-address-field {

    display: flex;

    flex-direction: column;

    min-width: 0;

}


.restaurant-address-field label {

    display: flex;

    align-items: baseline;

    gap: 5px;

    margin-bottom: 7px;

    color: #333333;

    font-size: 12px;

    font-weight: 700;

    line-height: 1.4;

}


.restaurant-address-field label span {

    color: #999999;

    font-size: 10px;

    font-weight: 500;

}


/* =========================================================
   INPUT
========================================================= */

.restaurant-address-field input {

    width: 100%;

    height: 46px;

    padding: 0 14px;

    background: #ffffff;

    border: 1px solid #dddddd;

    border-radius: 9px;

    outline: none;

    color: #222222;

    font-family: inherit;

    font-size: 13px;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;

}


.restaurant-address-field input::placeholder {

    color: #aaaaaa;

}


.restaurant-address-field input:hover {

    border-color: #cccccc;

}


.restaurant-address-field input:focus {

    background: #ffffff;

    border-color: #ea1d2c;

    box-shadow:
        0 0 0 3px rgba(234, 29, 44, 0.08);

}


/* =========================================================
   MENSAGEM DE SUCESSO
========================================================= */

.restaurant-address-success {

    margin-bottom: 18px;

    padding: 14px 16px;

    background: #f0faf3;

    border: 1px solid #ccebd4;

    border-radius: 10px;

    color: #287a3d;

    font-size: 13px;

    font-weight: 600;

    line-height: 1.5;

    box-sizing: border-box;

}


/* =========================================================
   MENSAGEM DE ERRO
========================================================= */

.restaurant-address-error {

    margin-bottom: 18px;

    padding: 14px 16px;

    background: #fff3f4;

    border: 1px solid #f2c7cb;

    border-radius: 10px;

    color: #b90f1d;

    font-size: 13px;

    line-height: 1.5;

    box-sizing: border-box;

}


.restaurant-address-error strong {

    font-weight: 800;

}


/* =========================================================
   PRÉ-VISUALIZAÇÃO DO ENDEREÇO
========================================================= */

.restaurant-address-preview {

    grid-column: span 2;

    padding: 16px 18px;

    background: #fafafa;

    border: 1px solid #eeeeee;

    border-radius: 12px;

    box-sizing: border-box;

}


.restaurant-address-preview strong {

    display: block;

    margin-bottom: 7px;

    color: #333333;

    font-size: 12px;

    font-weight: 800;

}


.restaurant-address-preview p {

    margin: 0;

    color: #666666;

    font-size: 12px;

    line-height: 1.6;

}


/* =========================================================
   AÇÕES
========================================================= */

.restaurant-address-actions {

    grid-column: span 2;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 12px;

    margin-top: 4px;

    padding-top: 20px;

    border-top: 1px solid #eeeeee;

}


/* =========================================================
   CANCELAR
========================================================= */

.restaurant-address-cancel {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 42px;

    padding: 0 18px;

    color: #666666;

    border-radius: 21px;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease;

}


.restaurant-address-cancel:hover {

    background: #eeeeee;

    color: #333333;

}


/* =========================================================
   SALVAR
========================================================= */

.restaurant-address-submit {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 42px;

    padding: 0 22px;

    border: 0;

    background: #ea1d2c;

    color: #ffffff;

    border-radius: 21px;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.restaurant-address-submit:hover {

    background: #d91827;

    transform: translateY(-1px);

    box-shadow:
        0 5px 14px rgba(234, 29, 44, 0.18);

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 700px) {

    .restaurant-address-page {

        min-height: calc(100vh - 62px);

    }


    .restaurant-address-container {

        padding:
            30px
            16px
            45px;

    }


    .restaurant-address-header {

        margin-bottom: 22px;

    }


    .restaurant-address-header h1 {

        font-size: 27px;

    }


    .restaurant-address-header p {

        font-size: 13px;

    }


    .restaurant-address-back {

        width: 100%;

        box-sizing: border-box;

    }


    .restaurant-address-form {

        grid-template-columns: 1fr;

        gap: 16px;

        padding: 22px 18px;

        border-radius: 14px;

    }


    .restaurant-address-preview {

        grid-column: span 1;

    }


    .restaurant-address-actions {

        grid-column: span 1;

        flex-direction: column-reverse;

        align-items: stretch;

        padding-top: 18px;

    }


    .restaurant-address-cancel,
    .restaurant-address-submit {

        width: 100%;

        box-sizing: border-box;

    }

}


/* =========================================================
   CELULAR PEQUENO
========================================================= */

@media (max-width: 430px) {

    .restaurant-address-container {

        padding:
            26px
            14px
            40px;

    }


    .restaurant-address-header h1 {

        font-size: 24px;

    }


    .restaurant-address-form {

        gap: 15px;

        padding:
            20px
            15px;

    }


    .restaurant-address-preview {

        padding:
            14px
            15px;

    }


    .restaurant-address-actions {

        padding-top: 16px;

    }

}