/* =========================================================
   MC2 DELIVERY — address/restaurant-edit.css
   FASE 4 — PADRONIZAÇÃO VISUAL
   Cores, raios e sombras usam o Design System global.
========================================================= */

/* =========================================================
   MC2 DELIVERY
   ENDEREÇO DA LOJA — RESTAURANTE
========================================================= */


/* =========================================================
   PÁGINA
========================================================= */

.restaurant-address-page {

    width: 100%;

    min-height: calc(100vh - 72px);

    background: var(--mc2-bg, #F9FAFB);

    color: var(--mc2-text, #111827);

    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: var(--mc2-text, #111827);

    font-size: 32px;

    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -0.6px;

}


.restaurant-address-header p {

    margin: 0;

    color: var(--mc2-text-secondary, #6B7280);

    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: var(--mc2-info);

    border: 1px solid var(--mc2-border, #E5E7EB);

    border-radius: 21px;

    color: var(--mc2-surface);

    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: var(--mc2-info-hover);

    border-color: var(--mc2-border-strong);

    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: var(--mc2-surface, #FFFFFF);

    border: 1px solid var(--mc2-border, #E5E7EB);

    border-radius: var(--mc2-radius-xl, 18px);

    box-shadow:
        var(--mc2-shadow-sm);

    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: var(--mc2-text, #111827);

    font-size: 12px;

    font-weight: 700;

    line-height: 1.4;

}


.restaurant-address-field label span {

    color: var(--mc2-text-muted, #9CA3AF);

    font-size: 10px;

    font-weight: 500;

}


/* =========================================================
   INPUT
========================================================= */

.restaurant-address-field input {

    width: 100%;

    height: 46px;

    padding: 0 14px;

    background: var(--mc2-surface, #FFFFFF);

    border: 1px solid var(--mc2-border-strong, #D1D5DB);

    border-radius: var(--mc2-radius-md, 12px);

    outline: none;

    color: var(--mc2-text, #111827);

    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: var(--mc2-text-muted, #9CA3AF);

}


.restaurant-address-field input:hover {

    border-color: var(--mc2-border-strong, #D1D5DB);

}


.restaurant-address-field input:focus {

    background: var(--mc2-surface, #FFFFFF);

    border-color: var(--mc2-primary, #EA1D2C);

    box-shadow:
        0 0 0 3px rgba(var(--mc2-primary-rgb), 0.08);

}


/* =========================================================
   MENSAGEM DE SUCESSO
========================================================= */

.restaurant-address-success {

    margin-bottom: 18px;

    padding: 14px 16px;

    background: var(--mc2-success-soft, #ECFDF5);

    border: 1px solid var(--mc2-success-border, #A7F3D0);

    border-radius: var(--mc2-radius-md, 12px);

    color: var(--mc2-success, #047857);

    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: var(--mc2-primary-soft, #FFF3F4);

    border: 1px solid var(--mc2-danger-border, #FECACA);

    border-radius: var(--mc2-radius-md, 12px);

    color: var(--mc2-primary-dark, #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: var(--mc2-bg-alt, #FAFAFA);

    border: 1px solid var(--mc2-border, #E5E7EB);

    border-radius: var(--mc2-radius-md, 12px);

    box-sizing: border-box;

}


.restaurant-address-preview strong {

    display: block;

    margin-bottom: 7px;

    color: var(--mc2-text, #111827);

    font-size: 12px;

    font-weight: 800;

}


.restaurant-address-preview p {

    margin: 0;

    color: var(--mc2-text-secondary, #6B7280);

    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 var(--mc2-border, #E5E7EB);

}


/* =========================================================
   CANCELAR
========================================================= */

.restaurant-address-cancel {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 42px;

    padding: 0 18px;

    color: var(--mc2-text-secondary, #6B7280);

    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: var(--mc2-border, #E5E7EB);

    color: var(--mc2-text, #111827);

}


/* =========================================================
   SALVAR
========================================================= */

.restaurant-address-submit {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 42px;

    padding: 0 22px;

    border: 0;

    background: var(--mc2-primary, #EA1D2C);

    color: var(--mc2-surface, #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: var(--mc2-primary-hover, #D91827);

    transform: translateY(-1px);

    box-shadow:
        0 5px 14px rgba(var(--mc2-primary-rgb), 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: var(--mc2-radius-lg, 16px);

    }


    .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;

    }

}