/*
    Mini strip — faixa de "como funciona" abaixo do hero, e seus dois modais.
    Substitui o strip antigo. Cada item só aparece se a loja oferece aquilo,
    então a faixa vai de 2 a 5 itens; o grid se ajusta à quantidade.
*/

/* Fundo branco na largura toda, como o banner acima.
   O conteúdo fica nos 1320px do site: o padding lateral come o que sobrar. */
.ms-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    background: var(--white,#fff);
    border-bottom: 1px solid var(--border,#e2e8e5);
    padding-inline: max(16px, calc((100% - 1320px) / 2));
}

.ms-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 24px;
    border-right: 1px solid var(--border,#e2e8e5);
}

    .ms-item:first-child {
        padding-left: 0;
    }

    .ms-item:last-child {
        border-right: 0;
        padding-right: 0;
    }

.ms-icone {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.ms-texto {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

    .ms-texto strong {
        font-size: 14px;
        color: var(--text,#1d2321);
    }

    .ms-texto span {
        font-size: 12.5px;
        color: var(--muted,#5d6b65);
        line-height: 1.4;
    }

.ms-link {
    align-self: flex-start;
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand,#1f7a4a);
    text-decoration: underline;
    text-underline-offset: 3px;
}

    .ms-link:hover {
        color: var(--brand-dark,#145232);
    }

    .ms-link:focus-visible {
        outline: 2px solid var(--brand,#1f7a4a);
        outline-offset: 2px;
        border-radius: 3px;
    }

/* ── modais (dialog nativo) ── */
.ms-modal {
    padding: 0;
    border: 0;
    border-radius: 14px;
    width: min(460px, calc(100% - 32px));
    box-shadow: 0 18px 50px rgba(0,0,0,.28);
    color: var(--text,#1d2321);
    margin: auto;
    max-height: calc(100vh - 32px);
    overflow: auto;
}

    .ms-modal::backdrop {
        background: rgba(14,22,18,.55);
    }

.ms-modal-caixa {
    padding: 20px 24px 22px;
}

.ms-modal-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

    .ms-modal-topo h3 {
        margin: 0;
        font-family: 'Sora',sans-serif;
        font-size: 18px;
    }

.ms-fechar {
    background: none;
    border: 0;
    font-size: 24px;
    line-height: 1;
    padding: 4px 8px;
    color: var(--muted,#5d6b65);
    cursor: pointer;
}

    .ms-fechar:hover {
        color: var(--text,#1d2321);
    }

/* formas de pagamento */
.ms-grupo {
    margin: 14px 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted,#5d6b65);
}

    .ms-grupo:first-of-type {
        margin-top: 0;
    }

.ms-formas {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .ms-formas li {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid var(--border,#e2e8e5);
        font-size: 14px;
    }

        .ms-formas li:last-child {
            border-bottom: 0;
        }

    .ms-formas img {
        width: 36px;
        height: 24px;
        object-fit: contain;
        padding: 0;
    }

    .ms-formas li span {
        grid-column: 2;
    }

    .ms-formas li:not(:has(img)) span {
        grid-column: 1 / -1;
    }

    .ms-formas small {
        grid-column: 2;
        font-size: 12px;
        color: var(--muted,#5d6b65);
    }

    .ms-formas li:not(:has(img)) small {
        grid-column: 1 / -1;
    }

/* consulta de taxa */
.ms-campo {
    margin-bottom: 12px;
    flex: 1;
}

    .ms-campo label {
        display: block;
        font-size: 12.5px;
        color: var(--muted,#5d6b65);
        margin-bottom: 5px;
    }

    .ms-campo input {
        width: 100%;
        padding: 10px 12px;
        font: inherit;
        border: 1.5px solid var(--border,#e2e8e5);
        border-radius: 8px;
    }

        .ms-campo input:focus {
            outline: 2px solid var(--brand,#1f7a4a);
            outline-offset: -1px;
            border-color: var(--brand,#1f7a4a);
        }

    .ms-campo[hidden] {
        display: none;
    }

.ms-linha {
    display: flex;
    gap: 12px;
}

.ms-endereco {
    margin: -4px 0 12px;
    font-size: 13px;
    color: var(--text-2,#3a4541);
    background: var(--bg,#f6f8f7);
    padding: 8px 12px;
    border-radius: 8px;
}

.ms-consultar {
    width: 100%;
}

.ms-resultado {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 8px;
}

    .ms-resultado h4 {
        margin: 0 0 4px;
        font-family: 'Sora',sans-serif;
        font-size: 15px;
    }

    .ms-resultado p {
        margin: 0;
        font-size: 13.5px;
    }

.ms-ok {
    background: var(--brand-light,#e8f7ef);
    border-left: 3px solid var(--brand,#1f7a4a);
}

    .ms-ok h4 {
        color: var(--brand-dark,#145232);
    }

.ms-amb {
    background: #fff6e6;
    border-left: 3px solid #b26a00;
}

    .ms-amb h4 {
        color: #b26a00;
    }

.ms-nao {
    background: #fdeded;
    border-left: 3px solid #c02b2b;
}

    .ms-nao h4 {
        color: #c02b2b;
    }

.ms-outro {
    margin-top: 12px;
}

/* Texto curto só no celular (o longo some lá) */
.ms-curto { display: none; }

/* Seta "tem mais" + esmaecido da borda: só no celular (ver @media abaixo) */
.ms-wrap { position: relative; }
.ms-seta { display: none; }

/* ── mobile: cartões compactos lado a lado, rolando para o lado ──
   Antes os itens empilhavam e a faixa ocupava ~420 px: nenhum produto na 1ª tela.
   Agora ~110 px; o pedaço do cartão seguinte aparecendo na borda mostra que rola. */
@media (max-width:640px) {
    .ms-strip {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 16px;
        padding: 12px 16px;
        scrollbar-width: none;            /* Firefox */
        -webkit-overflow-scrolling: touch;
    }

        .ms-strip::-webkit-scrollbar { display: none; }

    .ms-item, .ms-item:first-child, .ms-item:last-child {
        flex: 0 0 auto;
        width: min(220px, 70vw);
        scroll-snap-align: start;
        gap: 10px;
        padding: 10px 12px;
        border: 1px solid var(--border,#e2e8e5);
        border-radius: 12px;
        background: var(--white,#fff);
    }

    .ms-icone { font-size: 22px; }

    .ms-texto strong { font-size: 13.5px; }

    .ms-texto span { font-size: 12px; }

    .ms-link { margin-top: 2px; font-size: 12px; text-align: left; }   /* <button> centraliza o texto quebrado */

    /* esmaecido na borda direita + seta: indicam que a faixa rola */
    .ms-wrap::after {
        content: '';
        position: absolute;
        top: 1px; right: 0; bottom: 1px;
        width: 44px;
        background: linear-gradient(to right, rgba(255,255,255,0), var(--white,#fff) 75%);
        pointer-events: none;
        transition: opacity .2s;
    }

    .ms-seta {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1;
        width: 28px;
        height: 28px;
        padding: 0 0 2px 2px;
        border: 1px solid var(--border,#e2e8e5);
        border-radius: 99px;
        background: var(--white,#fff);
        box-shadow: 0 2px 8px rgba(0,0,0,.12);
        color: var(--brand,#1f7a4a);
        font-size: 20px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
        transition: opacity .2s;
        animation: ms-cutucar 1.6s ease-in-out .8s 2;   /* duas cutucadas ao abrir, depois fica parada */
    }

    .ms-wrap.ms-no-fim::after,
    .ms-wrap.ms-no-fim .ms-seta {
        opacity: 0;
        pointer-events: none;
    }

    @keyframes ms-cutucar {
        0%, 100% { transform: translateY(-50%) translateX(0); }
        50%      { transform: translateY(-50%) translateX(4px); }
    }

    @media (prefers-reduced-motion: reduce) {
        .ms-seta { animation: none; }
    }

    .ms-longo, .ms-opcional { display: none; }

    .ms-curto { display: block; }

    /* modal de taxa: campos um embaixo do outro */
    .ms-linha {
        flex-direction: column;
        gap: 0;
    }
}
