/* 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: #0a0a0a;
    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;
    background: #0a0a0a;
}

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

.processin-live-preview__brand--home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    max-width: min(420px, 100%);
}

.processin-live-preview__brand-favicon {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

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

.processin-live-preview__brand:hover .processin-live-preview__brand-favicon {
    opacity: 0.95;
}

.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: #ffffff;
    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-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.processin-live-preview__viewport-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.2;
    user-select: none;
}

.processin-live-preview__viewport {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.processin-live-preview__vp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    color: #b1bac4;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

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

.processin-live-preview__vp-btn.is-active {
    color: #e6f0ff;
    background: linear-gradient(165deg, rgba(88, 166, 255, 0.45) 0%, rgba(56, 122, 214, 0.35) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.35);
}

.processin-live-preview__vp-btn:focus-visible {
    outline: 2px solid #58a6ff;
    outline-offset: 2px;
}

.processin-live-preview__buy {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(180deg, #3fb950 0%, #2ea043 42%, #238636 100%);
    border: 1px solid rgba(63, 185, 80, 0.55);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.processin-live-preview__buy:hover {
    filter: brightness(1.06);
    color: #fff;
    box-shadow: 0 2px 8px rgba(46, 160, 67, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.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;
    line-height: 1.55;
    color: #6e7681;
    text-align: center;
    max-width: 920px;
    margin-inline: auto;
}

.processin-live-preview__notice a {
    color: #58a6ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

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

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