/* ============================================================
   GS CARDAPIO
   FASE 6B
   ============================================================ */

.client-repeat-button
{
    width:100%;
    min-height:42px;

    margin-top:7px;

    border:0;
    border-radius:12px;

    background:#18181b;
    color:#fff;

    font-size:10px;
    font-weight:950;

    cursor:pointer;
}

.client-repeat-button:disabled
{
    opacity:.55;
    cursor:wait;
}


/* ============================================================
   AVISO CARRINHO RECONSTRUIDO
   ============================================================ */

.gs-repeat-notice
{
    width:min(calc(100% - 4px),720px);

    margin:0 auto 12px;
    padding:13px;

    border-radius:16px;

    font-size:10px;
    line-height:1.45;
}

.gs-repeat-notice.success
{
    background:#dcfce7;
    border:1px solid #bbf7d0;
    color:#166534;
}

.gs-repeat-notice.warning
{
    background:#fff7ed;
    border:1px solid #fed7aa;
    color:#9a3412;
}

.gs-repeat-notice strong
{
    display:block;
    margin-bottom:4px;

    font-size:13px;
}

.gs-repeat-notice-message
{
    font-weight:750;
}

.gs-repeat-notice ul
{
    margin:8px 0 0;
    padding-left:18px;
}

.gs-repeat-notice li + li
{
    margin-top:3px;
}


/* ============================================================
   ENDERECOS SALVOS NO CHECKOUT
   ============================================================ */

.gs-saved-addresses
{
    margin:0 0 14px;
    padding:12px;

    border:1px solid #e4e4e7;
    border-radius:16px;

    background:#f8fafc;
}

.gs-saved-address-title
{
    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:10px;

    margin-bottom:9px;
}

.gs-saved-address-title strong
{
    display:block;

    font-size:12px;
    font-weight:950;
}

.gs-saved-address-title span
{
    display:block;

    margin-top:2px;

    color:#71717a;

    font-size:9px;
}

.gs-saved-address-count
{
    min-width:25px;
    height:25px;

    display:grid !important;
    place-items:center;

    margin:0 !important;

    border-radius:999px;

    background:#e4e4e7;
    color:#52525b !important;

    font-weight:900;
}

.gs-saved-address-list
{
    display:grid;
    gap:7px;
}

.gs-saved-address-button
{
    width:100%;

    padding:10px 11px;

    border:1px solid #e4e4e7;
    border-radius:12px;

    background:#fff;

    text-align:left;

    cursor:pointer;
}

.gs-saved-address-button.active
{
    border-color:#18181b;

    box-shadow:
        inset 0 0 0 1px
        #18181b;
}

.gs-saved-address-main
{
    display:block;

    color:#18181b;

    font-size:11px;
    font-weight:900;
}

.gs-saved-address-sub
{
    display:block;

    margin-top:3px;

    color:#71717a;

    font-size:9px;
    font-weight:700;
}


/* ============================================================
   GS_CARDAPIO_6B1_CHECKOUT_POLISH
   ============================================================ */

body.gs-checkout-has-fixed-footer
{
    padding-bottom:
        calc(
            var(
                --gs-checkout-fixed-height,
                64px
            )
            +
            34px
            +
            env(safe-area-inset-bottom)
        ) !important;
}


.gs-checkout-fixed-footer
{
    transition:
        transform .18s ease,
        opacity .18s ease !important;
}


body.gs-checkout-editing
.gs-checkout-fixed-footer
{
    transform:
        translateY(
            calc(
                100%
                +
                24px
            )
        ) !important;

    opacity:0 !important;

    pointer-events:none !important;
}


/*
 * Evita que o ultimo card termine escondido
 * atras do CTA no telefone.
 */
body.gs-checkout-has-fixed-footer main
{
    padding-bottom:
        calc(
            var(
                --gs-checkout-fixed-height,
                64px
            )
            +
            28px
        ) !important;
}


@media(max-width:600px)
{
    body.gs-checkout-has-fixed-footer
    {
        padding-bottom:
            calc(
                var(
                    --gs-checkout-fixed-height,
                    64px
                )
                +
                42px
                +
                env(safe-area-inset-bottom)
            ) !important;
    }
}
