/* Decoration sits above page content and below the existing header/navigation. */
.rg-seasonal {
    position: fixed;
    inset: 0;
    z-index: 60;
    overflow: hidden;
    pointer-events: none;
    contain: layout paint;
}

.rg-seasonal[hidden],
.rg-seasonal [hidden] {
    display: none !important;
}

.rg-seasonal [data-rg-seasonal-canvas] {
    position: absolute;
    inset: 0;
    z-index: 60;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    pointer-events: none;
}

.rg-seasonal__toggle {
    position: absolute;
    z-index: 61;
    left: 16px;
    bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    max-width: calc(100% - 32px);
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #d4b79c;
    border-radius: 999px;
    background: #fffaf4;
    color: #64350f;
    box-shadow: 0 3px 14px rgba(59, 35, 17, .09);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
}

.rg-seasonal__toggle:hover {
    border-color: #a9682f;
    background: #fff1df;
}

.rg-seasonal__toggle:focus-visible {
    outline: 3px solid #175c91;
    outline-offset: 3px;
}

.rg-seasonal:not([data-rg-seasonal-ready]) .rg-seasonal__toggle {
    display: none;
}

/* A private, bounded editor surface; it never overlays the administration page. */
.rg-seasonal--preview {
    position: relative;
    inset: auto;
    z-index: 0;
    isolation: isolate;
    width: 100%;
    height: 300px;
    min-width: 0;
    margin-top: 14px;
    border: 1px solid #e5d8ca;
    border-radius: 14px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #fffaf4, #f6eee4);
}

.rg-seasonal--preview .rg-seasonal__toggle {
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
}

@media (max-width: 767px) {
    .rg-seasonal:not(.rg-seasonal--preview)[data-mobile="0"] {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rg-seasonal:not(.rg-seasonal--preview),
    .rg-seasonal--preview [data-rg-seasonal-canvas],
    .rg-seasonal--preview .rg-seasonal__toggle {
        display: none !important;
    }
}
