html.upsttr-switch-site-active,
body.upsttr-switch-site-active {
    overflow: hidden;
}

body.upsttr-switch-site-active > *:not(#upsttr-switch-site-overlay) {
    filter: blur(var(--upsttr-switch-site-blur, 8px));
    transition: filter 0.4s ease;
}

#upsttr-switch-site-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#upsttr-switch-site-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.upsttr-switch-site-box {
    width: min(680px, 100%);
    text-align: center;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.upsttr-switch-site-message {
    margin: 0 0 16px;
    line-height: 1.5;
}

.upsttr-switch-site-countdown {
    margin: 0 0 12px;
    font-size: 14px;
    opacity: 0.85;
}

.upsttr-switch-site-link-wrap {
    margin: 0;
}

.upsttr-switch-site-link {
    color: inherit;
    text-decoration: underline;
    font-size: 16px;
    word-break: break-word;
}

.upsttr-switch-site-link--button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    background: #2271b1;
    color: #fff !important;
    text-decoration: none;
}

.upsttr-fade-in {
    animation: upsttrFadeIn 0.35s ease;
}

@keyframes upsttrFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin preview */
#upsttr-preview-wrapper {
    position: relative;
    border: 1px solid #ccd0d4;
    margin-top: 20px;
    height: 220px;
    overflow: hidden;
    background: #f6f7f7;
}

#upsttr-preview-page {
    padding: 20px;
}

#upsttr-preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#upsttr-preview-box {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    max-width: 520px;
    width: calc(100% - 32px);
}

#upsttr-preview-text {
    margin: 0 0 10px;
}

#upsttr-preview-link {
    display: inline-block;
}

#upsttr-preview-countdown {
    margin-top: 10px;
    font-size: 13px;
    opacity: 0.8;
}