/* Demo bar + iframe (Envato-style) */

.processin-live-preview {
    margin: 0;
    min-height: 100vh;
    background: #0f1419;
    color: #e6edf3;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.processin-live-preview__bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #1a2332 0%, #0f1419 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.processin-live-preview__bar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 100%;
    padding: 0.65rem 1rem;
    flex-wrap: wrap;
}

.processin-live-preview__brand {
    font-weight: 700;
    font-size: 0.95rem;
    color: #58a6ff;
    text-decoration: none;
    flex-shrink: 0;
}

.processin-live-preview__brand:hover {
    color: #79b8ff;
}

.processin-live-preview__title-wrap {
    flex: 1 1 200px;
    min-width: 0;
}

.processin-live-preview__title {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #8b949e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.processin-live-preview__bar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.processin-live-preview__viewport {
    display: inline-flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.processin-live-preview__vp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: #8b949e;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.processin-live-preview__vp-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e6edf3;
}

.processin-live-preview__vp-btn.is-active {
    background: rgba(88, 166, 255, 0.2);
    color: #58a6ff;
}

.processin-live-preview__buy {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.15rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(180deg, #2ea043 0%, #238636 100%);
    border: 1px solid rgba(46, 160, 67, 0.5);
}

.processin-live-preview__buy:hover {
    filter: brightness(1.08);
    color: #fff;
}

.processin-live-preview__stage-wrap {
    padding: 0.75rem;
    min-height: calc(100vh - 120px);
}

.processin-live-preview__stage {
    margin: 0 auto;
    height: calc(100vh - 140px);
    min-height: 400px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
    transition: max-width 0.25s ease;
}

.processin-live-preview__stage--desktop {
    max-width: 100%;
    width: 100%;
}

.processin-live-preview__stage--mobile {
    max-width: 420px;
    width: 100%;
}

.processin-live-preview__iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.processin-live-preview__notice {
    margin: 0;
    padding: 0.5rem 1rem 1rem;
    font-size: 0.75rem;
    color: #6e7681;
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
}

@media (max-width: 576px) {
    .processin-live-preview__title {
        display: none;
    }

    .processin-live-preview__stage {
        height: calc(100vh - 160px);
    }
}
