.wml-lp-text,
.wml-lp-text p {
    max-width: 100%;
}

/* Container for the link and the hidden preview */
.wml-lp-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.wml-lp-link {
    text-decoration: none;
    transition: 0.2s;
}

/* The Live Preview Window */
.wml-lp-preview {
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 320px;
    height: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    z-index: 100;
    display: block;
    /* Ensure it behaves like a block even if it is a span */

    /* Hidden State */
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(10px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.wml-lp-wrapper:hover .wml-lp-preview {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Styling the Iframe to look like a zoomed-out site */
.wml-lp-preview iframe {
    border: none;
    transform-origin: 0 0;
    pointer-events: none;
    max-width: none !important;
    /* CRITICAL: prevent theme from shrinking the iframe */
}

/* Skeleton loader while iframe loads */
.wml-lp-loader {
    position: absolute;
    inset: 0;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #9ca3af;
    z-index: -1;
}