/* =========================================================
   MC2 DELIVERY
   PÁGINAS DE ENDEREÇOS
========================================================= */


/* =========================================================
   PÁGINA
========================================================= */

.address-page {

    width: 100%;

    min-height: calc(100vh - 72px);

    background: #f8f8f8;

    color: #222222;

    box-sizing: border-box;

}


.address-container {

    width: 100%;

    max-width: 1100px;

    margin: 0 auto;

    padding: 45px 24px 70px;

    box-sizing: border-box;

}


/* =========================================================
   CABEÇALHO
========================================================= */

.address-header {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 25px;

    margin-bottom: 32px;

}


.address-header-label {

    display: block;

    margin-bottom: 7px;

    color: #ea1d2c;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.1em;

    text-transform: uppercase;

}


.address-header h1 {

    margin: 0;

    color: #222222;

    font-size: 32px;

    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -0.6px;

}


.address-header p {

    margin: 10px 0 0;

    color: #777777;

    font-size: 14px;

    line-height: 1.5;

}


/* =========================================================
   BOTÃO NOVO ENDEREÇO
========================================================= */

.address-new-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    min-height: 44px;

    padding: 0 20px;

    background: #ea1d2c;

    color: #ffffff;

    border-radius: 23px;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.address-new-button:hover {

    background: #d91827;

    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 5px 14px rgba(234, 29, 44, 0.18);

}


/* =========================================================
   BOTÃO VOLTAR
========================================================= */

.address-back-button {

    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;

}


.address-back-button:hover {

    background: #f7f7f7;

    border-color: #dddddd;

    color: #ea1d2c;

}


/* =========================================================
   LISTA
========================================================= */

.address-list {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

}


/* =========================================================
   CARD
========================================================= */

.address-card {

    display: flex;

    align-items: flex-start;

    gap: 15px;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 16px;

    box-sizing: border-box;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.035);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;

}


.address-card:hover {

    border-color: #f0c5c8;

    box-shadow:
        0 9px 25px rgba(0, 0, 0, 0.07);

    transform: translateY(-2px);

}


/* =========================================================
   ÍCONE DO CARD
========================================================= */

.address-card-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 46px;

    height: 46px;

    flex: 0 0 46px;

    background: #fff3f4;

    border-radius: 50%;

    font-size: 20px;

}


/* =========================================================
   CONTEÚDO
========================================================= */

.address-card-content {

    min-width: 0;

    flex: 1;

}


.address-card-title-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 8px;

}


.address-card-title-row h2 {

    margin: 0;

    overflow: hidden;

    color: #222222;

    font-size: 16px;

    font-weight: 800;

    line-height: 1.3;

    text-overflow: ellipsis;

    white-space: nowrap;

}


.address-card-street {

    margin: 0 0 5px;

    color: #444444;

    font-size: 13px;

    font-weight: 600;

    line-height: 1.5;

}


.address-card-location {

    margin: 0 0 5px;

    color: #777777;

    font-size: 12px;

    line-height: 1.5;

}


.address-card-zip {

    margin: 0 0 4px;

    color: #888888;

    font-size: 11px;

    line-height: 1.5;

}


.address-card-complement {

    margin: 3px 0 0;

    color: #777777;

    font-size: 11px;

    line-height: 1.5;

}


/* =========================================================
   AÇÕES DO CARD
========================================================= */

.address-card-actions {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-top: 15px;

}


.address-card-actions a {

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;

}


.address-action-edit {

    color: #555555;

}


.address-action-edit:hover {

    color: #ea1d2c;

}


.address-action-delete {

    color: #ea1d2c;

}


.address-action-delete:hover {

    color: #b90f1d;

}


/* =========================================================
   ESTADO VAZIO
========================================================= */

.address-empty {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-height: 320px;

    padding: 40px 25px;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 18px;

    text-align: center;

    box-sizing: border-box;

}


.address-empty-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 68px;

    height: 68px;

    margin-bottom: 17px;

    background: #fff3f4;

    border-radius: 50%;

    font-size: 30px;

}


.address-empty h2 {

    margin: 0 0 8px;

    color: #333333;

    font-size: 19px;

    font-weight: 800;

}


.address-empty p {

    max-width: 420px;

    margin: 0 0 22px;

    color: #777777;

    font-size: 13px;

    line-height: 1.5;

}


.address-empty-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 42px;

    padding: 0 20px;

    background: #ea1d2c;

    color: #ffffff;

    border-radius: 21px;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;

}


.address-empty-button:hover {

    background: #d91827;

    color: #ffffff;

}


/* =========================================================
   FORMULÁRIO
========================================================= */

.address-form-container {

    max-width: 900px;

}


.address-form {

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 18px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.04);

}


/* =========================================================
   SEÇÃO DO FORMULÁRIO
========================================================= */

.address-form-section {

    padding: 28px;

    border-bottom: 1px solid #eeeeee;

}


.address-form-section-header {

    margin-bottom: 22px;

}


.address-form-section-header h2 {

    margin: 0 0 5px;

    color: #222222;

    font-size: 18px;

    font-weight: 800;

}


.address-form-section-header p {

    margin: 0;

    color: #888888;

    font-size: 12px;

    line-height: 1.5;

}


/* =========================================================
   GRID
========================================================= */

.address-form-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

}


.address-form-group {

    display: flex;

    flex-direction: column;

    min-width: 0;

}


.address-form-group-wide {

    grid-column: span 2;

}


/* =========================================================
   LABEL
========================================================= */

.address-form-group label {

    display: flex;

    align-items: baseline;

    gap: 5px;

    margin-bottom: 7px;

    color: #333333;

    font-size: 12px;

    font-weight: 700;

}


.address-form-group label span {

    color: #999999;

    font-size: 10px;

    font-weight: 500;

}


/* =========================================================
   INPUT
========================================================= */

.address-form-group 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;

}


.address-form-group input::placeholder {

    color: #aaaaaa;

}


.address-form-group input:hover {

    border-color: #cccccc;

}


.address-form-group input:focus {

    background: #ffffff;

    border-color: #ea1d2c;

    box-shadow:
        0 0 0 3px rgba(234, 29, 44, 0.08);

}


/* =========================================================
   ESTADO
========================================================= */

.address-form-state {

    max-width: 150px;

}


/* =========================================================
   AÇÕES
========================================================= */

.address-form-actions {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 12px;

    padding: 20px 28px;

    background: #fafafa;

}


/* =========================================================
   CANCELAR
========================================================= */

.address-form-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;

}


.address-form-cancel:hover {

    background: #eeeeee;

    color: #333333;

}


/* =========================================================
   SALVAR
========================================================= */

.address-form-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;

}


.address-form-submit:hover {

    background: #d91827;

    transform: translateY(-1px);

    box-shadow:
        0 5px 14px rgba(234, 29, 44, 0.18);

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 850px) {

    .address-list {

        grid-template-columns:
            1fr;

    }


    .address-container {

        max-width: 750px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .address-page {

        min-height: calc(100vh - 62px);

    }


    .address-container {

        padding:
            30px
            16px
            45px;

    }


    .address-header {

        align-items: flex-start;

        flex-direction: column;

        gap: 18px;

        margin-bottom: 24px;

    }


    .address-header h1 {

        font-size: 27px;

    }


    .address-header p {

        margin-top: 8px;

        font-size: 13px;

    }


    .address-new-button {

        width: 100%;

        box-sizing: border-box;

    }


    .address-back-button {

        width: 100%;

        box-sizing: border-box;

    }


    .address-card {

        padding: 18px;

    }


    .address-card-icon {

        width: 42px;

        height: 42px;

        flex-basis: 42px;

        font-size: 18px;

    }


    .address-form {

        border-radius: 14px;

    }


    .address-form-section {

        padding: 22px 18px;

    }


    .address-form-grid {

        grid-template-columns:
            1fr;

        gap: 16px;

    }


    .address-form-group-wide {

        grid-column: span 1;

    }


    .address-form-state {

        max-width: none;

    }


    .address-form-actions {

        flex-direction: column-reverse;

        padding:
            18px;

    }


    .address-form-cancel,
    .address-form-submit {

        width: 100%;

        box-sizing: border-box;

    }


    .address-empty {

        min-height: 280px;

        padding: 30px 20px;

    }

}


/* =========================================================
   CELULAR PEQUENO
========================================================= */

@media (max-width: 430px) {

    .address-container {

        padding:
            26px
            14px
            40px;

    }


    .address-header h1 {

        font-size: 24px;

    }


    .address-card {

        gap: 11px;

        padding: 16px;

    }


    .address-card-title-row h2 {

        font-size: 15px;

    }


    .address-card-street {

        font-size: 12px;

    }


    .address-form-section {

        padding: 20px 15px;

    }


    .address-form-actions {

        padding:
            16px
            15px;

    }

}


 /* =========================================================
    ENDEREÇO DA LOJA — RESTAURANTE
 ========================================================= */

.address-card-selected {

    border-color: #ea1d2c;

    box-shadow:
        0 6px 20px rgba(234, 29, 44, 0.08);

}


.address-card-selected:hover {

    border-color: #ea1d2c;

    box-shadow:
        0 10px 28px rgba(234, 29, 44, 0.12);

}


.address-selected-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    min-height: 24px;

    padding: 0 9px;

    background: #fff3f4;

    border-radius: 12px;

    color: #ea1d2c;

    font-size: 10px;

    font-weight: 700;

    white-space: nowrap;

}


.address-action-selected {

    color: #ea1d2c;

    font-size: 12px;

    font-weight: 700;

}


.address-action-select {

    color: #ea1d2c;

}


.address-action-select:hover {

    color: #b90f1d;

}


/* =========================================================
   ENDEREÇO DA LOJA
 ========================================================= */

.address-type-store {

    background: #fff;

}


.address-store-icon {

    background: #fff3f4;

}


.address-store-name {

    color: #222;

    font-size: 16px;

    font-weight: 800;

}


.address-store-description {

    margin-top: 5px;

    color: #777;

    font-size: 12px;

    line-height: 1.5;

}


/* =========================================================
   RESPONSIVO — BADGE
 ========================================================= */

@media (max-width: 700px) {

    .address-card-title-row {

        align-items: flex-start;

        flex-direction: column;

        gap: 7px;

    }


    .address-selected-badge {

        align-self: flex-start;

    }

}