/* The static demo's bar and notices (demo-runtime.js). The application moves
   below the bar: #root starts under it, and its transform makes the
   application's own fixed layers, such as the settings page, start there too. */

:root {
    --pm-demo-bar-height: 40px;
}

#pm-demo-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2147483000;
    height: var(--pm-demo-bar-height);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 16px;
    background: #ffffff;
    border-bottom: 1px solid #e3e6ea;
    font: 500 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#pm-demo-bar a {
    text-decoration: none;
}

#pm-demo-bar .pm-demo-home {
    display: flex;
    align-items: center;
    height: 100%;
}

#pm-demo-bar .pm-demo-home img {
    display: block;
    height: 20px;
    width: auto;
}

#pm-demo-bar .pm-demo-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

#pm-demo-bar .pm-demo-language {
    color: #1f2933;
}

#pm-demo-bar .pm-demo-language:hover {
    text-decoration: underline;
}

#pm-demo-bar .pm-demo-download {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 14px;
    border-radius: 6px;
    background: #008ee5;
    color: #ffffff;
}

#pm-demo-bar .pm-demo-download:hover {
    background: #0077c2;
}

html.pm-demo #root {
    top: var(--pm-demo-bar-height);
    height: auto;
    min-height: 0;
    transform: translateZ(0);
}

#pm-demo-notices {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2147483001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
}

.pm-demo-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 360px;
    padding: 10px 10px 10px 14px;
    border-radius: 8px;
    background: #1f2933;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
    font: 400 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    pointer-events: auto;
}

.pm-demo-notice button {
    border: 0;
    padding: 0 4px;
    background: transparent;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
}

.pm-demo-notice button:hover {
    opacity: 1;
}

@media (max-width: 600px) {
    #pm-demo-bar {
        padding: 0 12px;
    }

    #pm-demo-notices {
        left: 12px;
        right: 12px;
        bottom: 12px;
        align-items: stretch;
    }
}
