/* Focused documentation shell: the embedded site owns its own scrolling. */
body.plax-documentation {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    overflow: hidden;
    color: #082c27;
    background: #fff;
    font-family: "Be Vietnam Pro", Arial, sans-serif;
}

body.plax-documentation.admin-bar {
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
}

body.plax-documentation .pay2s-documentation-header,
body.plax-documentation .pay2s-documentation-main,
body.plax-documentation .pay2s-documentation-header * {
    box-sizing: border-box;
}

body.plax-documentation .pay2s-documentation-header {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    min-height: 64px;
    padding: 12px max(24px, env(safe-area-inset-right)) 12px max(24px, env(safe-area-inset-left));
    border-bottom: 1px solid #dce8e1;
    color: #082c27;
    background: #fff;
}

body.plax-documentation .pay2s-documentation-brand {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    line-height: 1;
}

body.plax-documentation .pay2s-documentation-brand img {
    display: block;
    width: 83px;
    height: 32px;
    object-fit: contain;
}

body.plax-documentation .pay2s-documentation-header h1 {
    min-width: 0;
    margin: 0;
    color: #082c27;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
}

body.plax-documentation .pay2s-documentation-support {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #dce8e1;
    border-radius: 9px;
    color: #106a38;
    background: #f7fbf8;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}

body.plax-documentation .pay2s-documentation-support:hover {
    border-color: #106a38;
    color: #082c27;
    background: #ecfdf3;
}

body.plax-documentation .pay2s-documentation-support-short {
    display: none;
}

body.plax-documentation .pay2s-documentation-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    padding-bottom: env(safe-area-inset-bottom);
    overflow: hidden;
    background: #fff;
}

body.plax-documentation .pay2s-documentation-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

body.plax-documentation .pay2s-documentation-skip {
    position: fixed;
    z-index: 100001;
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    padding: 12px 16px;
    border-radius: 8px;
    color: #fff;
    background: #082c27;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    transform: translateY(calc(-100% - 16px));
}

body.plax-documentation .pay2s-documentation-skip:focus {
    transform: translateY(0);
}

body.plax-documentation .pay2s-documentation-header a:focus-visible,
body.plax-documentation .pay2s-documentation-skip:focus-visible,
body.plax-documentation .pay2s-documentation-frame:focus-visible {
    outline: 3px solid #106a38;
    outline-offset: 3px;
}

body.plax-documentation .pay2s-documentation-frame:focus-visible {
    outline-offset: -3px;
}

@media screen and (max-width: 782px) {
    body.plax-documentation.admin-bar {
        height: calc(100vh - 46px);
        height: calc(100dvh - 46px);
    }
}

@media screen and (max-width: 480px) {
    body.plax-documentation .pay2s-documentation-header {
        gap: 12px;
        min-height: 60px;
        padding-right: max(12px, env(safe-area-inset-right));
        padding-left: max(12px, env(safe-area-inset-left));
    }

    body.plax-documentation .pay2s-documentation-brand img {
        width: 72px;
        height: 28px;
    }

    body.plax-documentation .pay2s-documentation-header h1 {
        font-size: 13px;
    }

    body.plax-documentation .pay2s-documentation-support {
        padding: 8px 10px;
        font-size: 11px;
    }

    body.plax-documentation .pay2s-documentation-support-long {
        display: none;
    }

    body.plax-documentation .pay2s-documentation-support-short {
        display: inline;
    }
}
