@charset "UTF-8";

.screenshot-tool {
    overflow: visible;
}

.screenshot-origin embed,
.screenshot-origin iframe,
.screenshot-origin object {
    max-width: none !important;
}

.screenshot-origin {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(150, 115, 90, 0.14);
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(255, 237, 224, 0.66), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 241, 235, 0.92) 100%);
    box-shadow: 0 10px 30px rgba(82, 54, 38, 0.06);
}

.screenshot-origin .screenshot-wrapper {
    --stage-base-width: 1040;
    --stage-base-height: 640;
    --stage-scale: 1;
    --stage-offset-left: 0px;
    --stage-render-height: calc(var(--stage-base-height) * 1px);
    --frames-shift-x: -58px;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0 auto;
    position: relative;
    height: var(--stage-render-height);
    overflow: hidden;
}

.screenshot-origin .screenshot-display {
    position: absolute;
    top: 0;
    left: var(--stage-offset-left);
    width: calc(var(--stage-base-width) * 1px);
    height: calc(var(--stage-base-height) * 1px);
    border: 1px solid rgba(150, 115, 90, 0.12);
    border-radius: 22px;
    background: linear-gradient(180deg, #fffdfa 0%, #f9f3ec 100%);
    overflow: hidden;
    transform: scale(var(--stage-scale));
    transform-origin: top left;
}

.screenshot-origin .device-frame {
    position: absolute;
    background-repeat: no-repeat;
    background-size: 100%;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
}

.screenshot-origin .device-frame.is-dragging {
    cursor: grabbing;
}

.screenshot-origin .device-frame iframe {
    transform: scale(0.219);
    transform-origin: top left;
    margin: 0;
    padding: 0;
    position: relative;
    border: 0;
    background-color: #fff;
    pointer-events: none;
}

.screenshot-origin .device-frame.is-mobile {
    background-image: url('../screenshot/images/iphone-optimised.png');
    width: 95px;
    height: 196px;
    top: 375px;
    left: calc(300px + var(--frames-shift-x));
    z-index: 5;
}

.screenshot-origin .device-frame.is-mobile iframe {
    width: 320px;
    height: 480px;
    top: 33px;
    left: 11px;
}

.screenshot-origin .device-frame.is-tablet {
    background-image: url('../screenshot/images/ipad-optimised.png');
    width: 246px;
    height: 400px;
    z-index: 3;
    left: calc(120px + var(--frames-shift-x));
    top: 230px;
}

.screenshot-origin .device-frame.is-tablet iframe {
    width: 768px;
    height: 1024px;
    top: 36px;
    left: 39px;
}

.screenshot-origin .device-frame.is-laptop {
    background-image: url('../screenshot/images/laptop-screen-optimised.png');
    width: 477px;
    height: 307px;
    top: 264px;
    left: calc(560px + var(--frames-shift-x));
    z-index: 2;
}

.screenshot-origin .device-frame.is-laptop iframe {
    width: 1280px;
    height: 802px;
    top: 26px;
    left: 60px;
    transform: scale(0.277);
}

.screenshot-origin .device-frame.is-desktop {
    width: 566px;
    height: 538px;
    background-image: url('../screenshot/images/large-screen-optimised.png');
    top: 0;
    left: calc(220px + var(--frames-shift-x));
    z-index: 1;
}

.screenshot-origin .device-frame.is-desktop iframe {
    left: 28px;
    top: 38px;
    width: 1600px;
    height: 992px;
    transform: scale(0.3181);
}

.screenshot-origin .screenshot-url-section {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.screenshot-origin .screenshot-url-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 18px;
    border: 1px solid rgba(150, 115, 90, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
}

.screenshot-origin .screenshot-url-inner h2 {
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Manrope', 'Inter', sans-serif;
    letter-spacing: -0.03em;
}

.screenshot-origin .screenshot-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    margin: 1em 0 0;
    gap: 12px;
}

.screenshot-origin #screenshot-url {
    width: 100%;
    height: 52px;
    padding: 0 20px;
    border: 1px solid rgba(150, 115, 90, 0.16);
    border-radius: 14px;
    background: #fff;
    font-size: 1rem;
    line-height: 1;
}

.screenshot-origin #screenshot-url:focus {
    border-color: rgba(216, 93, 57, 0.26);
    outline: 3px solid rgba(216, 93, 57, 0.08);
}

.screenshot-origin .screenshot-form button {
    width: auto;
    min-width: 132px;
    height: 52px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #d85d39 0%, #ec8444 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 28px rgba(216, 93, 57, 0.16);
}

.screenshot-origin .screenshot-form button:hover,
.screenshot-origin .screenshot-form button:focus-visible {
    background: linear-gradient(135deg, #b94829 0%, #db7137 100%);
    transform: translateY(-1px);
}

.screenshot-origin .screenshot-status {
    width: 100%;
    margin: 12px 0 0;
    color: #5f6675;
    text-align: left;
}

.screenshot-origin .screenshot-status.is-error {
    color: #b94729;
}

@media (max-width: 768px) {
    .screenshot-origin .screenshot-display {
        border-radius: 16px;
    }

    .screenshot-origin .screenshot-form {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .screenshot-origin #screenshot-url,
    .screenshot-origin .screenshot-form button,
    .screenshot-origin .screenshot-status {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .screenshot-origin {
        padding: 14px;
        border-radius: 20px;
    }

    .screenshot-origin .screenshot-url-inner {
        padding: 14px;
        border-radius: 18px;
    }

    .screenshot-origin .screenshot-form {
        width: 100%;
        margin: 15px 0;
    }

    .screenshot-origin #screenshot-url {
        height: 50px;
    }
}

@media (max-width: 440px) {
    .screenshot-origin .screenshot-url-inner {
        padding: 12px;
    }
}

@media (max-width: 380px) {
    .screenshot-origin .screenshot-url-inner h2 {
        font-size: 1.2em;
    }
}
