.lpp-block {
    direction: rtl;
    margin: 0 0 40px;
    font-family: inherit;
}

.lpp-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}

.lpp-error {
    background: #fdecea;
    color: #b3261e;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.lpp-toggle-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.lpp-toggle-btn {
    border: 1px solid #ddd;
    background: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: all .2s ease;
}

.lpp-toggle-btn.lpp-active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.lpp-devices {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px;
    justify-content: center;
}

.lpp-mode-desktop .lpp-devices,
.lpp-mode-mobile .lpp-devices {
    justify-content: flex-start;
}

.lpp-device {
    max-width: 100%;
}

.lpp-mode-toggle .lpp-device {
    display: none;
    width: 100%;
}

.lpp-mode-toggle .lpp-device.lpp-active {
    display: block;
}

/* Desktop device */
.lpp-desktop {
    width: 100%;
}

.lpp-desktop .lpp-viewport {
    width: 100%;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    background: #f2f2f2;
}

.lpp-chrome-desktop {
    background: #e7e7e7;
    border: 1px solid #d8d8d8;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lpp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.lpp-red { background: #ff5f57; }
.lpp-yellow { background: #febc2e; }
.lpp-green { background: #28c840; }

.lpp-url-bar {
    margin-right: 12px;
    background: #fff;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    color: #555;
    flex: 1;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
    text-align: left;
}

/* Mobile device */
.lpp-mobile {
    width: 100%;
    max-width: 320px;
}

.lpp-mobile .lpp-viewport {
    border: 8px solid #1a1a1a;
    border-radius: 32px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.lpp-chrome-mobile {
    background: #1a1a1a;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lpp-notch {
    width: 90px;
    height: 14px;
    background: #000;
    border-radius: 10px;
}

/* Scaling engine: fixed real-size box scaled down via JS-set transform */
.lpp-scaler {
    transform-origin: top right;
    position: relative;
}

.lpp-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #fff;
}

.lpp-viewport {
    position: relative;
    overflow: hidden;
}

@media (max-width: 782px) {
    .lpp-devices {
        gap: 24px;
    }
}
