/**
 * Estilos da prévia da bio no admin.
 * Escopados em .editor-preview-bio — não sobrescrevem o painel.
 */

.editor-preview {
    background: var(--adm-surface, #fff);
    border: 1px solid var(--adm-border, #e5e7eb);
    border-radius: 22px;
    box-shadow: var(--adm-shadow, 0 8px 24px rgba(15, 23, 42, 0.06));
    padding: 1rem 0.85rem 1.1rem;
}

.editor-preview__title {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--adm-text-muted, #6b7280);
    text-align: center;
}

/*
 * iPhone 17 Pro Max — proporção física ~78 × 163.4 mm
 * Viewport lógico 440 × 956 (escala ≈ 0.74).
 */
.editor-preview__device {
    --ipm-frame: 11px;
    --ipm-radius: 54px;
    --ipm-screen-radius: 44px;
    position: relative;
    width: 348px;
    max-width: calc(100% - 8px);
    height: 729px; /* 348 × 163.4 / 78 */
    margin: 0 auto 1.15rem;
    padding: var(--ipm-frame);
    border-radius: var(--ipm-radius);
    box-sizing: border-box;
    background:
        linear-gradient(155deg, #5c5c60 0%, #2a2a2e 28%, #1a1a1c 62%, #3a3a3e 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.14) inset,
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 0 0 1px rgba(0, 0, 0, 0.35),
        0 22px 48px rgba(15, 23, 42, 0.32),
        0 6px 14px rgba(15, 23, 42, 0.18);
    overflow: visible;
}

.editor-preview__screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--ipm-screen-radius);
    overflow: hidden;
    background: transparent;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.55) inset,
        0 0 0 0.5px rgba(255, 255, 255, 0.06);
    container-type: inline-size;
    container-name: iphone-screen;
}

/* Bio em viewport lógico de celular (iPhone 17 Pro Max 440px), depois escala para a moldura */
.editor-preview__viewport {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.editor-preview__viewport::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Dynamic Island */
.editor-preview__island,
.editor-preview__notch {
    position: absolute;
    top: 11px;
    left: 50%;
    z-index: 6;
    width: 96px;
    height: 28px;
    border-radius: 999px;
    background: #000;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.editor-preview__island::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle at 35% 35%, #1a3a4a 0%, #0a1520 55%, #000 100%);
    box-shadow: 0 0 0 1px rgba(40, 80, 100, 0.35) inset;
}

/* Home indicator */
.editor-preview__home {
    position: absolute;
    bottom: 8px;
    left: 50%;
    z-index: 6;
    width: 108px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    transform: translateX(-50%);
    pointer-events: none;
}

/* Botões laterais (Action / volume / power) */
.editor-preview__btn {
    position: absolute;
    z-index: 2;
    background: linear-gradient(90deg, #4a4a4e, #2e2e32 40%, #3c3c40);
    border-radius: 2px;
    box-shadow:
        0 0 0 0.5px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.editor-preview__btn--action {
    left: -3px;
    top: 118px;
    width: 3px;
    height: 32px;
    border-radius: 2px 0 0 2px;
}

.editor-preview__btn--vol-up {
    left: -3px;
    top: 168px;
    width: 3px;
    height: 52px;
    border-radius: 2px 0 0 2px;
}

.editor-preview__btn--vol-down {
    left: -3px;
    top: 230px;
    width: 3px;
    height: 52px;
    border-radius: 2px 0 0 2px;
}

.editor-preview__btn--power {
    right: -3px;
    top: 196px;
    width: 3px;
    height: 78px;
    border-radius: 0 2px 2px 0;
    background: linear-gradient(270deg, #4a4a4e, #2e2e32 40%, #3c3c40);
}

/* ===== Conteúdo da bio (isolado) — tamanhos da bio pública no celular ===== */
.editor-preview-bio.bio-page {
    --ipm-logical-w: 440px;
    --ipm-logical-h: 956px;
    position: relative;
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    width: var(--ipm-logical-w);
    min-height: var(--ipm-logical-h);
    min-height: max(var(--ipm-logical-h), calc(440px * 100cqh / 100cqw));
    height: auto;
    margin: 0 !important;
    --preview-island-extra: 8px;
    /* Folga da Dynamic Island (moldura) — só na prévia */
    padding: 4.5rem 1rem 2.25rem;
    box-sizing: border-box;
    overflow: visible;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    zoom: 0.741;
    zoom: calc(100cqw / 440px);
}

@supports not (zoom: 1) {
    .editor-preview-bio.bio-page {
        width: 100%;
        min-height: 100%;
        zoom: unset;
    }
}

.editor-preview-bio .bio-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.editor-preview-bio > .bio-container {
    position: relative;
    z-index: 1;
}

.editor-preview-bio.bio-page::-webkit-scrollbar,
.editor-preview__screen::-webkit-scrollbar,
.editor-preview-bio .bio-container::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.editor-preview-bio.bio-page,
.editor-preview__screen,
.editor-preview-bio .bio-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.editor-preview-bio.bio-page--align-center { align-items: center; }
.editor-preview-bio.bio-page--align-top { align-items: flex-start; }

.editor-preview-bio .bio-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100% !important;
    text-align: center;
    box-sizing: border-box;
    color: inherit;
}

.editor-preview-bio .bio-identity {
    display: contents;
}

.editor-preview-bio .bio-identity__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    order: 1;
    text-align: center;
}

.editor-preview-bio .bio-content {
    order: 2;
    width: 100%;
    min-width: 0;
}

.editor-preview-bio .bio-social {
    order: 3;
}

.editor-preview-bio #editorPreviewSocial {
    order: 3;
    width: 100%;
}

.editor-preview-bio .bio-lead-row .bio-social {
    order: 0;
}

.editor-preview-bio .bio-footer {
    order: 4;
}

.editor-preview-bio.bio-page--overlap-logo {
    /* Compensa overlap da logo (-63.25px) + island (~39px na moldura) */
    padding-top: 8.25rem;
}

.editor-preview-bio.bio-page--overlap-logo .bio-container {
    overflow: visible;
    margin-top: 0;
    padding: 0 1.25rem 1.5rem;
    border-radius: 30px;
}

/* Logo — 15% maior que a bio pública em ≤480px (só na prévia) */
.editor-preview-bio .bio-logo {
    display: block;
    width: 126.5px !important;
    height: 126.5px !important;
    margin: 0 auto calc(1rem - 5px);
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.12);
    background: #fff;
    box-sizing: border-box;
}

.editor-preview-bio.bio-page--overlap-logo .bio-logo {
    margin-top: -63.25px !important;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.editor-preview-bio .bio-logo--placeholder {
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.75rem;
    color: #888;
    background: #f0f0f0;
    object-fit: unset;
}

.editor-preview-bio .bio-logo[hidden] { display: none !important; }

/* Nome / descrição / Instagram — iguais à bio pública no celular */
.editor-preview-bio .bio-name {
    display: none !important;
    width: 100%;
    margin: 0 0 0.5rem;
    padding: 0;
    border: 0;
    background: none;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: normal;
    word-break: break-word;
    color: inherit;
    text-align: center;
}

/* Paridade com index.php (slug ceigraodegente) */
.editor-preview-bio[data-slug="ceigraodegente"] .bio-name {
    font-size: 1.25rem !important;
    font-weight: 400 !important;
    margin-bottom: 1.25rem !important;
}

.editor-preview-bio[data-slug="ceigraodegente"] .bio-logo,
.editor-preview-bio[data-slug="ceigraodegente"] .bio-logo--placeholder {
    width: 31.05% !important;
    max-width: 212px !important;
    height: auto !important;
    aspect-ratio: 1;
    object-fit: cover;
}

.editor-preview-bio .bio-description {
    display: block;
    width: 100%;
    margin: 0 0 1.05rem;
    padding: 0;
    font-size: 0.95em;
    line-height: 1.45;
    opacity: 0.9;
    word-break: break-word;
    color: inherit;
    text-align: center;
}

.editor-preview-bio .bio-instagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto calc(0.2rem + 10px);
    padding: 0;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    line-height: 1.2;
    opacity: 0.9;
    text-align: center;
    overflow: visible;
}

.editor-preview-bio .bio-instagram__handle {
    color: inherit;
    word-break: break-word;
}

.editor-preview-bio .bio-instagram__verified {
    width: 1.08em;
    height: 1.08em;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.editor-preview-bio .bio-instagram[hidden],
.editor-preview-bio .bio-description[hidden],
.editor-preview-bio .bio-name[hidden] {
    display: none !important;
}

/* Horário */
.editor-preview-bio .bio-hours {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin: -0.35rem auto 1.15rem;
    max-width: 100%;
    font-size: var(--bh-size, 0.78rem);
    color: inherit;
}

.editor-preview-bio .bio-instagram + .bio-hours,
.editor-preview-bio .bio-name + .bio-hours,
.editor-preview-bio .bio-identity__main .bio-instagram + #editorPreviewHours .bio-hours {
    margin-top: 0.45rem;
}

.editor-preview-bio .bio-hours__badge {
    display: inline-block;
    padding: 0.28rem 0.75rem;
    border-radius: var(--bh-radius, 999px);
    font-weight: 700;
    background: rgba(148, 163, 184, 0.28);
}

.editor-preview-bio .bio-hours.is-open .bio-hours__badge {
    background: rgba(34, 197, 94, 0.22);
}

.editor-preview-bio .bio-hours.is-closed .bio-hours__badge {
    background: rgba(248, 113, 113, 0.2);
}

.editor-preview-bio .bio-hours__hint {
    font-size: 0.92em;
    opacity: 0.78;
    max-width: 16rem;
}

.editor-preview-bio .bio-hours__cta {
    display: inline-flex;
    margin-top: 0.15rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    background: color-mix(in srgb, currentColor 10%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

/* Redes — embaixo dos botões (estilo Linktree / bio pública) */
.editor-preview-bio .bio-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 1.15rem;
    margin: 1.35rem 0 0.85rem;
    padding: 0 0.35rem;
}

.editor-preview-bio .bio-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 0;
    color: inherit;
    background: transparent;
    border: none;
    text-decoration: none;
    opacity: 0.92;
}

.editor-preview-bio .bio-social__link svg {
    width: 1.85rem;
    height: 1.85rem;
    display: block;
}

/* Hub — cards "Escolha a loja" (igual à bio pública) */
.editor-preview-bio .bio-rede {
    width: 100%;
    margin: 0 auto 1rem;
    text-align: left;
}

.editor-preview-bio .bio-rede__heading {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.72;
    text-align: center;
}

.editor-preview-bio .bio-rede__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.editor-preview-bio .bio-rede__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16px;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.8rem;
    border-radius: var(--button-radius, 12px);
    background: var(--button-bg, #fff);
    color: var(--button-text, #222);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.editor-preview-bio .bio-rede__meta {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
}

.editor-preview-bio .bio-rede__title {
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-preview-bio .bio-rede__cta {
    font-size: 0.72rem;
    opacity: 0.72;
}

.editor-preview-bio .bio-rede__chev {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    opacity: 0.55;
    justify-self: end;
}

.editor-preview-bio .bio-buttons[hidden] {
    display: none !important;
}

/* Botões */
.editor-preview-bio .bio-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.editor-preview-bio .bio-button-wrap,
.editor-preview-bio .bio-group,
.editor-preview-bio .bio-video-wrap,
.editor-preview-bio .bio-map-wrap,
.editor-preview-bio .bio-card-wrap,
.editor-preview-bio .bio-qr-wrap,
.editor-preview-bio .bio-pix-wrap,
.editor-preview-bio .bio-form-wrap,
.editor-preview-bio .bio-loyalty-wrap,
.editor-preview-bio .bio-booking-wrap,
.editor-preview-bio .bio-offer-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.editor-preview-bio .bio-button,
.editor-preview-bio .bio-group-toggle,
.editor-preview-bio .bio-subbutton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: var(--button-radius, 12px);
    background-color: var(--button-bg, #ffffff);
    color: var(--button-text, #333333);
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    position: relative;
    cursor: default;
}

.editor-preview-bio .bio-group-toggle {
    cursor: pointer;
    padding-left: 2rem;
    padding-right: 2rem;
}

.editor-preview-bio .bio-subbutton {
    background-color: color-mix(in srgb, var(--button-bg, #ffffff) 80%, transparent);
    font-size: 0.8rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.editor-preview-bio .bio-button-wrap[data-custom-colors] .bio-button,
.editor-preview-bio .bio-button-wrap[data-custom-colors] .bio-group-toggle {
    background-color: var(--button-bg) !important;
    color: var(--button-text) !important;
}

.editor-preview-bio .bio-button-wrap[data-custom-colors] .bio-subbutton {
    background-color: color-mix(in srgb, var(--button-bg) 80%, transparent) !important;
    color: var(--button-text) !important;
}

.editor-preview-bio .bio-button-wrap.has-photo {
    margin-top: 1.5rem;
}

.editor-preview-bio .bio-button-wrap.has-photo .bio-button,
.editor-preview-bio .bio-button-wrap.has-photo .bio-group-toggle,
.editor-preview-bio .bio-button-wrap.has-photo .bio-subbutton {
    flex-direction: column;
    padding-top: 2.5rem;
    padding-bottom: 0.875rem;
}

.editor-preview-bio .btn-photo {
    position: absolute;
    top: 0;
    left: 50%;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: #fff;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.editor-preview-bio .btn-title {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-preview-bio .btn-icon {
    font-size: 1.05em;
    line-height: 1;
}

.editor-preview-bio .group-arrow {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    width: 0.4rem;
    height: 0.4rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    opacity: 0.45;
    transform: translateY(-55%) rotate(45deg);
}

.editor-preview-bio .bio-group.is-open .group-arrow {
    transform: translateY(-45%) rotate(225deg);
}

.editor-preview-bio .bio-subbuttons {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.45rem;
}

.editor-preview-bio .bio-subbuttons[hidden] {
    display: none !important;
}

.editor-preview-bio .bio-wa-dept .bio-wa-dept__panel {
    gap: 0.4rem;
    margin-top: 0.4rem;
    padding: 0.55rem 0.5rem 0.55rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.editor-preview-bio .bio-wa-dept__hint {
    margin: 0 0 0.15rem;
    font-size: 0.68rem;
    font-weight: 600;
    opacity: 0.8;
    text-align: center;
}

.editor-preview-bio .bio-wa-dept__option {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    background-color: #25d366 !important;
    color: #fff !important;
    border: none;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.editor-preview-bio .bio-catalog-panel.bio-subbuttons {
    gap: 0;
    margin-top: 0.45rem;
    padding: 0.5rem 0.4rem 0.55rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.editor-preview-bio .bio-catalog {
    padding: 0;
}

.editor-preview-bio .bio-catalog__title {
    margin: 0 0 0.25rem;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
    color: var(--button-text, #fff);
}

.editor-preview-bio .bio-catalog__desc {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    line-height: 1.3;
    text-align: center;
    opacity: 0.85;
    color: var(--button-text, #fff);
}

.editor-preview-bio .bio-catalog__section {
    margin: 0 0 0.6rem;
}

.editor-preview-bio .bio-catalog__section:last-child {
    margin-bottom: 0;
}

.editor-preview-bio .bio-catalog__section-title {
    margin: 0 0 0.32rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--button-text, #fff);
    opacity: 0.9;
}

.editor-preview-bio .bio-catalog__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
    justify-content: center;
    margin: 0 0 0.55rem;
}

.editor-preview-bio .bio-catalog__chip {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: var(--button-text, #fff);
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.62rem;
    font-weight: 600;
    cursor: pointer;
}

.editor-preview-bio .bio-catalog__chip.is-active {
    background: color-mix(in srgb, var(--button-bg, #25d366) 88%, #fff);
    border-color: transparent;
}

.editor-preview-bio .bio-catalog__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
}

.editor-preview-bio .bio-catalog[data-catalog-layout="grid"] .bio-catalog__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
}

.editor-preview-bio .bio-catalog[data-catalog-layout="grid"] .bio-product__media {
    aspect-ratio: 1 / 1;
}

.editor-preview-bio .bio-catalog[data-catalog-layout="rows"] .bio-product {
    flex-direction: row;
}

.editor-preview-bio .bio-catalog[data-catalog-layout="rows"] .bio-product__media {
    width: 34%;
    min-width: 64px;
    max-width: 88px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

.editor-preview-bio .bio-catalog[data-catalog-layout="compact"] .bio-catalog__grid {
    grid-template-columns: 1fr;
    gap: 0.28rem;
}

.editor-preview-bio .bio-catalog[data-catalog-layout="compact"] .bio-product {
    display: grid;
    grid-template-columns: 1.9rem minmax(0, 1fr) auto 1.7rem;
    grid-template-rows: 0.95rem 0.95rem;
    column-gap: 0.32rem;
    row-gap: 0;
    align-items: center;
    padding: 0.28rem 0.3rem;
    border-radius: 8px;
}

.editor-preview-bio .bio-catalog[data-catalog-layout="compact"] .bio-product__media {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 1.9rem;
    height: 1.9rem;
    min-width: 0;
    max-width: none;
    aspect-ratio: auto;
    border-radius: 5px;
    align-self: center;
}

.editor-preview-bio .bio-catalog[data-catalog-layout="compact"] .bio-product__body {
    display: contents;
}

.editor-preview-bio .bio-catalog[data-catalog-layout="compact"] .bio-product__name {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    font-size: 0.62rem;
    line-height: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.editor-preview-bio .bio-catalog[data-catalog-layout="compact"] .bio-product__desc {
    grid-column: 2 / 4;
    grid-row: 2;
    min-width: 0;
    font-size: 0.54rem;
    line-height: 0.95rem;
    -webkit-line-clamp: unset;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.editor-preview-bio .bio-catalog[data-catalog-layout="compact"] .bio-product__price {
    grid-column: 3;
    grid-row: 1;
    margin: 0;
    font-size: 0.62rem;
    line-height: 0.95rem;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
    max-width: none;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.editor-preview-bio .bio-catalog[data-catalog-layout="compact"] .bio-product__cta {
    grid-column: 4;
    grid-row: 1 / 3;
    margin: 0;
    width: 1.7rem;
    min-width: 1.7rem;
    height: 1.7rem;
    padding: 0;
    border-radius: 999px;
    align-self: center;
}

.editor-preview-bio .bio-catalog[data-catalog-layout="compact"] .bio-product__cta-label {
    display: none;
}

.editor-preview-bio .bio-catalog[data-catalog-layout="compact"] .bio-product__cta-icon {
    display: flex;
    width: 0.9rem;
    height: 0.9rem;
}

.editor-preview-bio .bio-catalog[data-catalog-layout="compact"] .bio-product__cta-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.editor-preview-bio .bio-product {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    color: #111827;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.editor-preview-bio .bio-product__media {
    aspect-ratio: 4 / 3;
    background: #e5e7eb;
    overflow: hidden;
}

.editor-preview-bio .bio-product__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.editor-preview-bio .bio-product__media--empty {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 55%, #d1d5db 100%);
}

.editor-preview-bio .bio-product__body {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    padding: 0.45rem 0.5rem 0.55rem;
}

.editor-preview-bio .bio-product__cat {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
}

.editor-preview-bio .bio-product__name {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.editor-preview-bio .bio-product__price {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #059669;
}

.editor-preview-bio .bio-product__desc {
    margin: 0;
    font-size: 0.65rem;
    line-height: 1.3;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.editor-preview-bio .bio-product__cta-icon {
    display: none;
}

.editor-preview-bio .bio-product__cta {
    margin-top: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0.4rem 0.45rem;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    background: #25d366;
    color: #fff !important;
}

.editor-preview-bio .bio-catalog-wrap[data-custom-colors] .bio-product__cta,
.editor-preview-bio .bio-catalog-page[data-custom-colors] .bio-product__cta {
    background: var(--button-bg, #25d366);
    color: var(--button-text, #fff) !important;
}

.editor-preview-bio .bio-product__cta--disabled {
    margin-top: 0.25rem;
    font-size: 0.62rem;
    text-align: center;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 0.35rem;
}

.editor-preview-bio .sub-button-marker {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    opacity: 0.45;
    transform: translateY(-50%);
}

.editor-preview-bio .sub-button-marker__arrow {
    width: 0.35rem;
    height: 0.35rem;
    border-left: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
}

.editor-preview-bio .sub-button-marker__circle {
    width: 0.32rem;
    height: 0.32rem;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
}

/* YouTube / Mapa */
.editor-preview-bio .bio-video,
.editor-preview-bio .bio-map {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    background: #e8eaed;
}

.editor-preview-bio .bio-video iframe,
.editor-preview-bio .bio-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.editor-preview-bio .bio-map-block {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
    margin-top: 20px;
}

.editor-preview-bio .bio-map-head,
.editor-preview-bio .bio-section-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 0;
    text-align: left;
    color: inherit;
}

.editor-preview-bio .bio-map-head {
    justify-content: flex-start;
    width: 100%;
}

.editor-preview-bio .bio-map-head__icon,
.editor-preview-bio .bio-section-head__icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, currentColor 12%, transparent);
    flex-shrink: 0;
}

.editor-preview-bio .bio-map-head__icon svg,
.editor-preview-bio .bio-section-head__icon svg {
    width: 1.2rem;
    height: 1.2rem;
    display: block;
}

.editor-preview-bio .bio-map-head__text,
.editor-preview-bio .bio-section-head__text {
    min-width: 0;
    text-align: left;
}

.editor-preview-bio .bio-map-head__title,
.editor-preview-bio .bio-section-head__title {
    display: block;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.editor-preview-bio .bio-lead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 0.9rem;
    width: 100%;
    margin: 0 0 0.75rem;
}

.editor-preview-bio .bio-lead-row .bio-section-head {
    justify-content: flex-start;
    flex: 1;
    min-width: 0;
    margin: 0;
}

.editor-preview-bio .bio-lead-row .bio-social {
    margin: 0 0 0 auto;
    padding: 0;
    border: none;
    justify-content: flex-end;
    gap: 0.45rem calc(0.55rem - 23px);
}

.editor-preview-bio .bio-lead-row .bio-social__link {
    width: 2.15rem;
    height: 2.15rem;
}

.editor-preview-bio .bio-lead-row .bio-social__link svg {
    width: 1.2rem;
    height: 1.2rem;
}

.editor-preview-bio .bio-map-head__hint,
.editor-preview-bio .bio-section-head__hint {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.78rem;
    line-height: 1.3;
    opacity: 0.68;
}

/* Card de texto */
.editor-preview-bio .bio-card {
    width: 100%;
    padding: 1rem 1.05rem;
    border-radius: 12px;
    background-color: var(--button-bg, #fff);
    color: var(--button-text, #222);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    text-align: left;
    line-height: 1.5;
    box-sizing: border-box;
    font-size: 0.86rem;
}

.editor-preview-bio .bio-card-wrap[data-card-transparent] .bio-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 0;
    padding-right: 0;
}

.editor-preview-bio .bio-card__content p,
.editor-preview-bio .bio-card__content ul,
.editor-preview-bio .bio-card__content ol {
    margin: 0 0 0.6rem;
}

.editor-preview-bio .bio-card__content p:last-child {
    margin-bottom: 0;
}

/* QR / PIX */
.editor-preview-bio .bio-qr,
.editor-preview-bio .bio-pix {
    width: 100%;
    margin: 0;
    padding: 1rem 0.95rem;
    border-radius: 14px;
    background-color: var(--button-bg, #fff);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.editor-preview-bio .bio-pix {
    color: var(--pix-text, #111827);
    gap: 0.3rem;
}

.editor-preview-bio .bio-qr-wrap[data-card-transparent] .bio-qr,
.editor-preview-bio .bio-pix-wrap[data-card-transparent] .bio-pix {
    background: transparent !important;
    box-shadow: none !important;
    padding-left: 0;
    padding-right: 0;
}

.editor-preview-bio .bio-qr__code,
.editor-preview-bio .bio-pix__code {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.editor-preview-bio .bio-qr__code canvas,
.editor-preview-bio .bio-qr__code img,
.editor-preview-bio .bio-pix__code canvas,
.editor-preview-bio .bio-pix__code img {
    display: block;
    margin: 0 auto;
    max-width: 160px !important;
    width: 160px !important;
    height: auto !important;
}

.editor-preview-bio .bio-qr__label {
    margin: 0.7rem 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    opacity: 0.9;
}

.editor-preview-bio .bio-pix__title {
    margin: 0 0 0.2rem;
    font-size: 0.98rem;
    font-weight: 700;
}

.editor-preview-bio .bio-pix__amount {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.editor-preview-bio .bio-pix__key-label {
    margin: 0.35rem 0 0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.65;
}

.editor-preview-bio .bio-pix__key {
    margin: 0.1rem 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    word-break: break-all;
    max-width: 100%;
}

.editor-preview-bio .bio-pix__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    width: 100%;
    margin-top: 0.55rem;
}

.editor-preview-bio .bio-pix__btn {
    appearance: none;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    background: #32bcad;
}

.editor-preview-bio .bio-pix__btn--ghost {
    color: var(--pix-text, #111827);
    background: transparent;
    border: 1.5px solid color-mix(in srgb, var(--pix-text, #111827) 28%, transparent);
}

.editor-preview-bio .bio-pix__hint {
    margin: 0.5rem 0 0;
    font-size: 0.72rem;
    line-height: 1.35;
    opacity: 0.72;
}

.editor-preview-bio .bio-pix__status {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    font-weight: 600;
    min-height: 1em;
}

.editor-preview-bio .bio-pix__status.is-ok { color: #0f766e; }
.editor-preview-bio .bio-pix__status.is-err { color: #b91c1c; }

/* Formulário / fidelidade — mesmo visual da bio pública (badge, bordas arredondadas, telefone) */
.editor-preview-bio .bio-form-wrap,
.editor-preview-bio .bio-loyalty-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: left;
}

.editor-preview-bio .bio-form-wrap.bio-button-wrap.has-photo,
.editor-preview-bio .bio-loyalty-wrap.bio-button-wrap.has-photo {
    margin-top: 0;
}

.editor-preview-bio .bio-form-card,
.editor-preview-bio .bio-loyalty-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 1rem 1rem 1.05rem;
    border-radius: var(--form-radius, 16px);
    background-color: var(--button-bg, #fff);
    color: var(--button-text, #222);
    border: var(--form-border-width, 1px) solid var(--form-border-color, rgba(0, 0, 0, 0.08));
    box-shadow: var(--form-shadow, 0 2px 8px rgba(0, 0, 0, 0.12));
    box-sizing: border-box;
    text-align: left;
    font-size: 0.86rem;
    font-family: var(--button-font, inherit);
    overflow: hidden;
}

.editor-preview-bio .bio-form-wrap[data-custom-typography] .bio-form__title,
.editor-preview-bio .bio-form-wrap[data-custom-typography] .bio-form__label,
.editor-preview-bio .bio-form-wrap[data-custom-typography] .bio-form__submit,
.editor-preview-bio .bio-form-wrap[data-custom-typography] .bio-form input,
.editor-preview-bio .bio-form-wrap[data-custom-typography] .bio-form select,
.editor-preview-bio .bio-form-wrap[data-custom-typography] .bio-form textarea,
.editor-preview-bio .bio-loyalty-wrap[data-custom-typography] .bio-loyalty__title,
.editor-preview-bio .bio-loyalty-wrap[data-custom-typography] .bio-form__label,
.editor-preview-bio .bio-loyalty-wrap[data-custom-typography] .bio-form__submit,
.editor-preview-bio .bio-loyalty-wrap[data-custom-typography] .bio-form input,
.editor-preview-bio .bio-loyalty-wrap[data-custom-typography] .bio-form select,
.editor-preview-bio .bio-loyalty-wrap[data-custom-typography] .bio-form textarea {
    font-family: var(--button-font, inherit);
}

.editor-preview-bio .bio-form__title,
.editor-preview-bio .bio-loyalty__title {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}

.editor-preview-bio .bio-loyalty__dates {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    line-height: 1.35;
    opacity: 0.85;
    text-align: left;
}

.editor-preview-bio .bio-form__desc {
    margin: 0 0 0.7rem;
    font-size: 0.84rem;
    line-height: 1.4;
    opacity: 0.85;
    text-align: left;
}

/* Badge de status (igual style.css público) */
.editor-preview-bio .bio-loyalty__status {
    display: inline-block;
    margin: 0 0 0.65rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    line-height: 1.2;
}

.editor-preview-bio .bio-loyalty__status--active {
    background: rgba(34, 197, 94, 0.18) !important;
    color: #14532d;
}

.editor-preview-bio .bio-loyalty__status--upcoming {
    background: rgba(59, 130, 246, 0.18) !important;
    color: #1e3a8a;
}

.editor-preview-bio .bio-loyalty__status--ended,
.editor-preview-bio .bio-loyalty__status--inactive {
    background: rgba(148, 163, 184, 0.28) !important;
    color: #334155;
}

.editor-preview-bio .bio-loyalty__details {
    margin: 0 0 0.9rem;
    font-size: 0.9rem;
    text-align: left;
}

.editor-preview-bio .bio-loyalty__details summary {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-weight: 600;
    margin: 0 0 0.45rem;
    padding: 0;
    list-style: none;
    text-align: left;
}

.editor-preview-bio .bio-loyalty__details summary::-webkit-details-marker {
    display: none;
}

/* Setinha ao lado de "Ver regulamento" (marker nativo some no admin) */
.editor-preview-bio .bio-loyalty__details summary::before {
    content: "";
    flex-shrink: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.3em 0 0.3em 0.45em;
    border-color: transparent transparent transparent currentColor;
    transform: translateY(0.02em);
}

.editor-preview-bio .bio-loyalty__details[open] summary::before {
    border-width: 0.45em 0.3em 0 0.3em;
    border-color: currentColor transparent transparent transparent;
    transform: translateY(0.12em);
}

.editor-preview-bio .bio-loyalty__regulation {
    font-size: 0.86rem;
    line-height: 1.5;
    opacity: 0.92;
    max-height: 160px;
    overflow: auto;
    text-align: left;
    padding-right: 0.2rem;
}

.editor-preview-bio .bio-loyalty__note {
    margin: 0;
    font-size: 0.86rem;
    opacity: 0.85;
    text-align: left;
}

.editor-preview-bio .bio-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    text-align: left;
}

.editor-preview-bio .bio-loyalty-card .bio-form {
    margin-top: 0.35rem;
}

.editor-preview-bio .bio-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.editor-preview-bio .bio-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    text-align: left;
}

.editor-preview-bio .bio-form__label {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}

.editor-preview-bio .bio-form__check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.88rem;
    line-height: 1.4;
    cursor: default;
    text-align: left;
}

.editor-preview-bio .bio-form__check input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.editor-preview-bio .bio-form__auto-datetime {
    font-size: 0.84rem;
    color: rgba(0, 0, 0, 0.55);
    background: rgba(0, 0, 0, 0.04);
    border: 1px dashed rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
    text-align: left;
}

/* Campos com bordas arredondadas claras (como na bio real) */
.editor-preview-bio .bio-form-card input[type="text"],
.editor-preview-bio .bio-form-card input[type="email"],
.editor-preview-bio .bio-form-card input[type="tel"],
.editor-preview-bio .bio-form-card input[type="number"],
.editor-preview-bio .bio-form-card input[type="date"],
.editor-preview-bio .bio-form-card input[type="password"],
.editor-preview-bio .bio-form-card select,
.editor-preview-bio .bio-form-card textarea,
.editor-preview-bio .bio-loyalty-card input[type="text"],
.editor-preview-bio .bio-loyalty-card input[type="email"],
.editor-preview-bio .bio-loyalty-card input[type="tel"],
.editor-preview-bio .bio-loyalty-card input[type="number"],
.editor-preview-bio .bio-loyalty-card input[type="date"],
.editor-preview-bio .bio-loyalty-card input[type="password"],
.editor-preview-bio .bio-loyalty-card select,
.editor-preview-bio .bio-loyalty-card textarea,
.editor-preview-bio .bio-form input[type="text"],
.editor-preview-bio .bio-form input[type="email"],
.editor-preview-bio .bio-form input[type="tel"],
.editor-preview-bio .bio-form input[type="number"],
.editor-preview-bio .bio-form input[type="date"],
.editor-preview-bio .bio-form input[type="password"],
.editor-preview-bio .bio-form select,
.editor-preview-bio .bio-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    font: inherit;
    font-size: 0.9rem;
    line-height: 1.3;
    color: inherit;
    background: rgba(255, 255, 255, 0.92);
    box-sizing: border-box;
    box-shadow: none;
}

/* FormSmart esconde o input original com display:none; nosso CSS não pode reexibi-lo */
.editor-preview-bio .bio-form input[aria-hidden="true"],
.editor-preview-bio .bio-form-card input[aria-hidden="true"],
.editor-preview-bio .bio-loyalty-card input[aria-hidden="true"],
.editor-preview-bio .bio-booking input[aria-hidden="true"],
.editor-preview-bio .bio-form input[data-smart-bound="1"]:not(.phone-intl__number),
.editor-preview-bio .bio-form-card input[data-smart-bound="1"]:not(.phone-intl__number),
.editor-preview-bio .bio-loyalty-card input[data-smart-bound="1"]:not(.phone-intl__number),
.editor-preview-bio .bio-booking input[data-smart-bound="1"]:not(.phone-intl__number),
.editor-preview-bio .phone-intl ~ input[type="tel"],
.editor-preview-bio .phone-intl ~ input[type="text"][disabled],
.editor-preview-bio .bio-form input[type="hidden"],
.editor-preview-bio .bio-form-card input[type="hidden"],
.editor-preview-bio .bio-loyalty-card input[type="hidden"],
.editor-preview-bio .bio-booking input[type="hidden"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.editor-preview-bio .bio-form textarea,
.editor-preview-bio .bio-form-card textarea,
.editor-preview-bio .bio-loyalty-card textarea {
    resize: vertical;
    min-height: 80px;
}

/* Telefone FormSmart: país + número na mesma linha */
.editor-preview-bio .phone-intl,
.editor-preview-bio .phone-intl.form-smart-phone,
.editor-preview-bio .bio-form .phone-intl,
.editor-preview-bio .bio-form .phone-intl.form-smart-phone {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    gap: 0.45rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.editor-preview-bio .phone-intl__country {
    flex: 0 0 7.5rem !important;
    width: 7.5rem !important;
    max-width: 42% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.16) !important;
    border-radius: 10px !important;
    padding: 0.55rem 0.35rem !important;
    font: inherit !important;
    font-size: 0.78rem !important;
    line-height: 1.3 !important;
    color: inherit !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

.editor-preview-bio .phone-intl__number {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.16) !important;
    border-radius: 10px !important;
    padding: 0.7rem 0.85rem !important;
    font: inherit !important;
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
    color: inherit !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

.editor-preview-bio .bio-form__submit {
    display: block;
    width: 100%;
    margin-top: 0.2rem;
    border: none;
    border-radius: var(--form-radius, 12px);
    padding: 0.8rem 1rem;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: default;
    color: var(--button-bg, #fff);
    background: var(--button-text, #222);
    box-sizing: border-box;
    text-align: center;
}

.editor-preview-bio .bio-form__status {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.35;
    text-align: left;
}

/* Footer */
.editor-preview-bio .bio-footer {
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.8;
    word-break: break-word;
}

.editor-preview-bio .bio-footer a {
    color: inherit;
    text-decoration: none;
}

/* Não navegar a partir da prévia (PIX copiar permanece clicável) */
.editor-preview-bio a.bio-button,
.editor-preview-bio a.bio-subbutton,
.editor-preview-bio a.bio-instagram,
.editor-preview-bio a.bio-social__link,
.editor-preview-bio a.bio-rede__card,
.editor-preview-bio .bio-footer a,
.editor-preview-bio .bio-form__submit {
    pointer-events: none;
}

.editor-preview-bio .bio-pix__btn {
    pointer-events: auto;
}

@media (max-width: 1100px) {
    .editor-preview__device {
        --ipm-frame: 10px;
        --ipm-radius: 48px;
        --ipm-screen-radius: 38px;
        width: 300px;
        height: 628px; /* mantém proporção 163.4/78 */
    }

    .editor-preview__island,
    .editor-preview__notch {
        width: 86px;
        height: 25px;
        top: 10px;
    }

    .editor-preview__home {
        width: 96px;
        bottom: 7px;
    }

    .editor-preview__btn--action { top: 102px; height: 28px; }
    .editor-preview__btn--vol-up { top: 146px; height: 46px; }
    .editor-preview__btn--vol-down { top: 200px; height: 46px; }
    .editor-preview__btn--power { top: 170px; height: 68px; }
}

@media (max-width: 360px) {
    .editor-preview__device {
        width: 270px;
        height: 566px;
        --ipm-radius: 44px;
        --ipm-screen-radius: 34px;
    }
}

/* Agenda / reservas — espelho compacto da bio pública (style.css) */
.editor-preview-bio .bio-booking-wrap {
    margin: 0.2rem 0 0.55rem;
}

.editor-preview-bio .bio-booking {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.85rem 0.9rem 0.95rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    color: #0f172a;
    text-align: left;
    overflow: hidden;
}

.editor-preview-bio .bio-booking__title {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    word-break: break-word;
}

.editor-preview-bio .bio-booking__sub,
.editor-preview-bio .bio-booking__empty,
.editor-preview-bio .bio-booking__slots-loading,
.editor-preview-bio .bio-booking__slots-empty {
    margin: 0.3rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.35;
}

.editor-preview-bio .bio-booking__form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.7rem;
    width: 100%;
    min-width: 0;
}

.editor-preview-bio .bio-booking__label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: #334155;
    min-width: 0;
}

.editor-preview-bio .bio-booking__opt {
    font-weight: 500;
    color: #94a3b8;
}

.editor-preview-bio .bio-booking__input,
.editor-preview-bio .bio-booking select.bio-booking__input,
.editor-preview-bio .bio-booking textarea.bio-booking__input,
.editor-preview-bio .bio-booking input[type="date"].bio-booking__input,
.editor-preview-bio .bio-booking input[type="text"].bio-booking__input,
.editor-preview-bio .bio-booking input[type="tel"].bio-booking__input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 0.62rem 0.72rem;
    margin: 0;
    font: inherit;
    font-size: 0.86rem;
    line-height: 1.3;
    background: #fff;
    color: #0f172a;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    color-scheme: light;
}

.editor-preview-bio .bio-booking select.bio-booking__input {
    background-image: linear-gradient(45deg, transparent 50%, #64748b 50%),
        linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 10px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 1.75rem;
}

.editor-preview-bio .bio-booking .phone-intl,
.editor-preview-bio .bio-booking .phone-intl.form-smart-phone {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    gap: 0.4rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.editor-preview-bio .bio-booking .phone-intl__country {
    flex: 0 0 6.75rem !important;
    width: 6.75rem !important;
    max-width: 40% !important;
    font-size: 0.72rem !important;
    padding: 0.5rem 0.3rem !important;
}

.editor-preview-bio .bio-booking__slots {
    min-width: 0;
}

.editor-preview-bio .bio-booking__slots-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.editor-preview-bio .bio-booking__slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.editor-preview-bio .bio-booking__slot {
    border: 1px solid #dbe3ef;
    background: #f8fafc;
    color: #0f172a;
    border-radius: 999px;
    padding: 0.38rem 0.65rem;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: default;
    pointer-events: none;
}

.editor-preview-bio .bio-booking__slot.is-selected {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.editor-preview-bio .bio-booking__submit {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    margin-top: 0.1rem;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    background: #0f172a;
    color: #fff;
    cursor: default;
    pointer-events: none;
    box-sizing: border-box;
}

.editor-preview-bio .bio-booking__msg {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.35;
}

.editor-preview-bio .bio-booking textarea.bio-booking__input {
    resize: vertical;
    min-height: 56px;
}

/* Oferta com validade */
.editor-preview-bio .bio-offer-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0.2rem 0;
}
.editor-preview-bio .bio-offer__badge {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    align-self: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    font-size: 0.7rem;
    line-height: 1.2;
}
.editor-preview-bio .bio-offer__badge-time {
    font-weight: 700;
}
.editor-preview-bio .bio-offer__note {
    margin: 0;
    text-align: center;
    font-size: 0.72rem;
    opacity: 0.85;
}
.editor-preview-bio .bio-offer-wrap.is-expired {
    opacity: 0.7;
}
.editor-preview-bio .bio-offer__btn {
    pointer-events: none;
}
