/*
 * Inteliseller - Vitrine na Bio / layout compacto responsivo
 * v20261116-1
 * Apenas apresentação: não altera links, produtos, Stories ou personalização.
 */
body.bio-public-compact {
    background: #f8f9fc;
}
body.bio-public-compact main {
    max-width: 1040px;
    padding-inline: 16px;
    padding-bottom: 38px;
}
body.bio-public-compact .profile {
    margin: 0 auto;
    padding: 14px 18px 12px;
    background: #fff;
    border: 1px solid #ebedf4;
    border-top: 0;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 4px 16px rgba(22, 34, 64, .025);
}
body.bio-public-compact .profile .avatar {
    width: 70px;
    height: 70px;
    border: 3px solid #fff;
    box-shadow: 0 2px 12px rgba(22, 34, 64, .09);
    font-size: 25px;
}
body.bio-public-compact .profile h1 {
    margin: 5px 0 3px;
    font-size: clamp(22px, 2.7vw, 29px);
    line-height: 1.18;
    letter-spacing: -.035em;
    font-weight: 800;
}
body.bio-public-compact .profile > .muted {
    max-width: 520px;
    margin: 3px auto 9px;
    font-size: 13px;
    line-height: 1.4;
}
body.bio-public-compact .profile.pos-left > .muted {
    margin-left: 0;
}
body.bio-public-compact .profile.pos-right > .muted {
    margin-right: 0;
}

/* Redes sociais apenas no tamanho necessário, sem card largo e vazio. */
body.bio-public-compact .bio-profile-social-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    margin: 4px auto 5px;
    padding: 5px;
    border-radius: 15px;
    border: 1px solid #edf0f7;
    background: #f7f8fc;
    box-shadow: none;
    vertical-align: middle;
}
body.bio-public-compact .bio-profile-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}
body.bio-public-compact .bio-profile-socials a {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    transition: transform .18s ease, box-shadow .18s ease;
}
body.bio-public-compact .bio-profile-socials a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(31, 41, 70, .15);
}
body.bio-public-compact .bio-profile-socials a:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}
body.bio-public-compact .bio-profile-socials svg {
    width: 23px;
    height: 23px;
}

/* Busca com altura uniforme e menos área vertical. */
body.bio-public-compact #bio-search-form {
    display: flex;
    width: min(100%, 510px);
    max-width: 510px;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    margin: 10px auto 3px;
}
body.bio-public-compact #bio-search-form #q {
    min-width: 0;
    flex: 1;
    width: auto;
    max-width: none;
    height: 42px;
    padding: 9px 13px;
    font-size: 13px;
    border: 1px solid #dce2ed;
    border-radius: 11px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(26, 36, 58, .02);
}
body.bio-public-compact #bio-search-form #q:focus {
    outline: 2px solid color-mix(in srgb, var(--brand) 42%, transparent);
    outline-offset: 1px;
}
body.bio-public-compact #bio-search-form button {
    min-width: 80px;
    height: 42px;
    padding: 9px 14px;
    font-size: 12px;
    border-radius: 11px;
    white-space: nowrap;
    transition: filter .18s ease, transform .18s ease;
}
body.bio-public-compact #bio-search-form button:hover {
    filter: brightness(.96);
    transform: translateY(-1px);
}
body.bio-public-compact #bio-search-count {
    margin: 2px 0 0;
    min-height: 0;
    font-size: 12px;
}
body.bio-public-compact #bio-search-count:empty {
    display: none;
}

/* Grupos: faixa horizontal enxuta no desktop e centralizada no celular. */
body.bio-public-compact .social-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: fit-content;
    max-width: calc(100% - 16px);
    min-height: 62px;
    margin: 12px auto 10px;
    padding: 10px 17px;
    border-radius: 14px;
    border-color: #e7ebf4;
    box-shadow: 0 3px 12px rgba(18, 35, 70, .035);
}
body.bio-public-compact .social-card h2 {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 750;
}
body.bio-public-compact .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
}
body.bio-public-compact .social-icon-link {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}
body.bio-public-compact .social-icon-link svg {
    width: 26px;
    height: 26px;
}

/* Lojas: carrossel slim, com o mínimo de altura e mais logos na mesma linha. */
body.bio-public-compact .bio-partners {
    width: min(100%, max(285px, min(920px, calc(var(--partner-count, 8) * 96px + 30px))));
    max-width: 100%;
    margin: 10px auto 14px;
    padding: 10px 12px 9px;
    border-radius: 15px;
    border-color: #e8ebf3;
    box-shadow: 0 3px 12px rgba(19, 35, 64, .035);
}
body.bio-public-compact .bio-partners-head {
    margin-bottom: 7px;
}
body.bio-public-compact .bio-partners-head h2 {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -.015em;
}
body.bio-public-compact .bio-partners-controls {
    gap: 5px;
}
body.bio-public-compact .bio-partners-controls button {
    width: 29px;
    height: 29px;
    border-radius: 9px;
    font-size: 17px;
}
body.bio-public-compact .bio-partners-window {
    gap: 7px;
    padding: 2px 1px 4px;
}
body.bio-public-compact .bio-partner-card {
    flex: 0 0 86px;
    padding: 7px 5px 6px;
    border-radius: 11px;
    background: #fcfdff;
    border-color: #ecedf5;
}
body.bio-public-compact .bio-partner-avatar {
    width: 46px;
    height: 46px;
    margin: 0 auto 5px;
    border-radius: 50%;
    font-size: 15px;
}
body.bio-public-compact .bio-partner-name {
    min-height: 27px;
    max-height: 27px;
    font-size: 10.5px;
    line-height: 1.25;
    font-weight: 750;
    overflow-wrap: anywhere;
}
body.bio-public-compact .bio-partners-tip {
    margin-top: 2px;
    font-size: 10px;
}
body.bio-public-compact .bio-partner-card:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* Ajustes pequenos para qualquer tela e sem barra horizontal lateral. */
@media (max-width: 700px) {
    body.bio-public-compact main {
        padding-inline: 10px;
        padding-bottom: 30px;
    }
    body.bio-public-compact .profile {
        padding: 12px 12px 12px;
        border-radius: 0 0 15px 15px;
    }
    body.bio-public-compact .profile .avatar {
        width: 58px;
        height: 58px;
        border-width: 2px;
    }
    body.bio-public-compact .profile h1 {
        font-size: 23px;
        margin: 4px 0 2px;
    }
    body.bio-public-compact .profile > .muted {
        font-size: 12px;
        margin-bottom: 7px;
    }
    body.bio-public-compact .bio-profile-social-card {
        margin: 3px auto 4px;
        padding: 4px;
        border-radius: 12px;
    }
    body.bio-public-compact .bio-profile-socials {
        gap: 7px;
    }
    body.bio-public-compact .bio-profile-socials a {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
    body.bio-public-compact .bio-profile-socials svg {
        width: 22px;
        height: 22px;
    }
    body.bio-public-compact #bio-search-form {
        max-width: 100%;
        margin: 9px auto 2px;
        gap: 7px;
    }
    body.bio-public-compact #bio-search-form #q,
    body.bio-public-compact #bio-search-form button {
        height: 40px;
    }
    body.bio-public-compact #bio-search-form button {
        min-width: 69px;
        padding: 8px 10px;
        font-size: 11px;
    }
    body.bio-public-compact .social-card {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        max-width: 100%;
        min-height: auto;
        margin: 9px auto 9px;
        padding: 10px 15px;
        border-radius: 12px;
    }
    body.bio-public-compact .social-card h2 {
        font-size: 13px;
        text-align: center;
    }
    body.bio-public-compact .social-icon-link {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }
    body.bio-public-compact .social-icon-link svg {
        width: 24px;
        height: 24px;
    }
    body.bio-public-compact .bio-partners {
        width: 100%;
        padding: 9px 9px 8px;
        margin: 9px auto 12px;
        border-radius: 13px;
    }
    body.bio-public-compact .bio-partners-head {
        margin-bottom: 6px;
    }
    body.bio-public-compact .bio-partners-head h2 {
        font-size: 14px;
    }
    body.bio-public-compact .bio-partners-controls button {
        width: 28px;
        height: 28px;
    }
    body.bio-public-compact .bio-partners-window {
        gap: 6px;
        padding-bottom: 4px;
    }
    body.bio-public-compact .bio-partner-card {
        flex-basis: 76px;
        padding: 6px 4px;
        border-radius: 10px;
    }
    body.bio-public-compact .bio-partner-avatar {
        width: 42px;
        height: 42px;
        margin-bottom: 4px;
    }
    body.bio-public-compact .bio-partner-name {
        font-size: 10px;
        min-height: 25px;
        max-height: 25px;
    }
}
@media (max-width: 360px) {
    body.bio-public-compact .profile h1 {
        font-size: 21px;
    }
    body.bio-public-compact #bio-search-form button {
        min-width: 65px;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.bio-public-compact .bio-partner-card,
    body.bio-public-compact .social-icon-link,
    body.bio-public-compact .bio-profile-socials a {
        transition: none;
    }
}
