/* CLIC EMPRESA — Bottom Sticky Preview Bar (compact / dark) */
:root {
    --ce-preview-bar-height: 44px;
    --ce-primary: #bc2f39;
    --ce-wa: #25d366;
    --ce-wa-dark: #1ebe57;
}

.ce-preview-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    top: auto;
    width: 100%;
    z-index: 99999;
    min-height: var(--ce-preview-bar-height);
    background: linear-gradient(180deg, #141c2b 0%, #0f172a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.32);
    font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.ce-preview-bar--dismissed {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.ce-preview-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: var(--ce-preview-bar-height);
    margin-left: 4%;
    margin-right: 4%;
    padding: 0.35rem 0;
}

.ce-preview-bar__left,
.ce-preview-bar__right {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.ce-preview-bar__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
}

.ce-preview-bar__logo {
    display: block;
    height: 22px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
}

.ce-preview-bar__divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.ce-preview-bar__label {
    color: rgba(241, 245, 249, 0.72);
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ce-preview-bar__cta-text {
    margin: 0;
    color: rgba(248, 250, 252, 0.92);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    max-width: 28rem;
}

.ce-preview-bar__whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--ce-wa);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ce-preview-bar__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.15rem;
    margin: 0;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    flex-shrink: 0;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.ce-preview-bar__close-text {
    line-height: 1;
}

.ce-preview-bar__close-icon {
    display: block;
    flex-shrink: 0;
}

.ce-preview-bar__close:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.ce-preview-bar__close:focus-visible {
    outline: 2px solid #07cae8;
    outline-offset: 2px;
}

.ce-preview-bar__whatsapp:hover {
    background: var(--ce-wa-dark);
}

.ce-preview-bar__wa-icon {
    display: block;
    flex-shrink: 0;
}

body {
    padding-bottom: var(--ce-preview-bar-height) !important;
}

@media (max-width: 720px) {
    :root {
        --ce-preview-bar-height: 78px;
    }

    .ce-preview-bar__inner {
        flex-wrap: wrap;
        gap: 0.35rem 0.6rem;
        padding: 0.4rem 0;
    }

    .ce-preview-bar__left {
        flex: 1 1 auto;
    }

    .ce-preview-bar__right {
        flex: 1 1 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 0.45rem 0.5rem;
    }

    .ce-preview-bar__cta-text {
        flex: 1 1 100%;
        max-width: none;
    }

    .ce-preview-bar__label {
        font-size: 0.68rem;
    }

    .ce-preview-bar__cta-text {
        font-size: 0.7rem;
        white-space: normal;
    }

    .ce-preview-bar__whatsapp {
        font-size: 0.66rem;
        padding: 0.35rem 0.65rem;
    }

    .ce-preview-bar__logo {
        height: 18px;
    }
}

@media (max-width: 420px) {
    :root {
        --ce-preview-bar-height: 90px;
    }

    .ce-preview-bar__divider {
        display: none;
    }
}
