.scribigo-demo-mode-banner {
    background: #fff8e6;
    border: 1px solid #f0c36d;
    padding: 10px 14px;
    margin: 0;
    border-radius: 0;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.scribigo-demo-mode-banner--global {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999991;
    border-left: none;
    border-right: none;
    border-top: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.admin-bar .scribigo-demo-mode-banner--global {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .scribigo-demo-mode-banner--global {
        top: 46px;
    }
}

/* Only offset document flow by banner height — headers stay in normal flow.
   Chrome pages keep the banner inside #scribigoAppChrome, so they skip this. */
body.scribigo-demo-mode-active:not(.scribigo-app-chrome) {
    padding-top: var(--scribigo-demo-banner-offset, 48px) !important;
}

/* Fixed/sticky headers (Astra on scroll) are adjusted via JS — never relative headers. */
body.scribigo-demo-mode-active:not(.scribigo-app-chrome) #masthead.ast-header-sticked,
body.scribigo-demo-mode-active:not(.scribigo-app-chrome) .ast-primary-header-bar.ast-header-sticked,
body.scribigo-demo-mode-active:not(.scribigo-app-chrome) .ast-sticky-active.main-header-bar-wrap {
    top: var(--scribigo-demo-banner-offset, 48px) !important;
}

.scribigo-demo-mode-banner--chrome {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: 1;
    flex-shrink: 0;
    box-shadow: none;
    border-left: none;
    border-right: none;
    border-top: 1px solid #f0c36d;
    width: 100%;
    box-sizing: border-box;
}

.scribigo-demo-mode-banner__label {
    display: inline;
}

.scribigo-demo-mode-banner__register-btn {
    display: inline-block;
    margin-left: 0.4em;
    vertical-align: middle;
    text-decoration: none;
}

.scribigo-demo-mode-banner__logout-link {
    display: inline-block;
    margin-left: 0.65em;
    font-size: 12px;
    line-height: 1.4;
    color: inherit;
    opacity: 0.8;
    text-decoration: underline;
    vertical-align: middle;
}

.scribigo-demo-mode-banner__logout-link:hover {
    opacity: 1;
}

#scribigo-demo-preview-banner,
.scribigo-demo-preview-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
    background: #fff8e6;
    border: 1px solid #f0c36d;
    cursor: default;
    text-align: center;
}

#scribigo-demo-preview-banner:hover,
.scribigo-demo-preview-banner:hover {
    text-decoration: none;
}

.scribigo-demo-preview-banner__exit {
    flex: 0 0 auto;
}
