/* ----------------------------------------------------------- Preview banner */
/* Sticky strip at the top of the seller-onboarding shell when a preview tab
   is active. Modeled on the SystemMaintenanceAlert width / padding scale.
   Color: brand teal (#76B8B7) - chosen to read as "informational test mode"
   without competing with the warning-yellow used by SystemMaintenanceAlert. */
.prv-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    /* Slim profile: zero vertical padding so the strip is just tall enough
       to host its 13px text + ~22px button (line-height does the framing).
       Horizontal padding stays at 16px to match the AppHeader gutter. */
    padding: 0 16px;
    background-color: #76B8B7;
    color: #ffffff;
    border-bottom: 1px solid #5a9b9a;
    font-size: 0.8125rem;
    line-height: 1.2;
}

.prv-banner-icon {
    font-size: 16px;
    flex: 0 0 auto;
}

.prv-banner-title {
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
    flex: 0 0 auto;
}

.prv-banner-divider {
    opacity: 0.65;
    flex: 0 0 auto;
}

.prv-banner-scenario,
.prv-banner-event {
    flex: 0 0 auto;
}

.prv-banner-spacer {
    flex: 1 1 auto;
}

.prv-banner-btn {
    flex: 0 0 auto;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background-color: transparent;
    color: inherit;
    /* Tighter button so it doesn't force the bar taller - vertical padding
       matches the slim banner (no extra height beyond the text line-box). */
    padding: 2px 10px;
    margin: 4px 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.prv-banner-btn:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

.prv-banner-btn--exit {
    background-color: #4d8786;
    border-color: #4d8786;
    color: #fff;
}

.prv-banner-btn--exit:hover {
    background-color: #3d6e6d;
    border-color: #3d6e6d;
}

/* ----------------------------------------------------------- Scenarios page */
/* Compact "scenario picker" - designed to fit a single viewport without scroll
   on a typical 1280x720+ window. 2-col card grid (3 rows for the v1 catalog of
   six). When viewport height shrinks (or a 7th scenario appears) the page
   gracefully scrolls inside the body, leaving the sticky footer pinned.

   Layout shell:
   - .prv-scenarios-page is a flex column so the inner .prv-scenarios-scroll
     region grows to fill the available vertical space.
   - The footer (.prv-scenarios-footer) uses position:sticky bottom:0 so the
     Continue / Cancel buttons remain visible while the scenario grid scrolls
     behind them on short viewports or when the catalog grows. */
.prv-scenarios-page {
    max-width: 920px;
    margin: 12px auto 0;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.prv-scenarios-header {
    margin-bottom: 12px;
}

.prv-scenarios-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 2px;
}

.prv-scenarios-subtitle {
    margin: 0;
    color: var(--rz-text-secondary-color, #4f5b66);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Event-context card on /preview/scenarios. Centered above the scenario grid;
   two rows (location name on top, event name underneath) so the admin can
   confirm at a glance which event the preview will boot against. The error
   variant renders when no LocationEventId was supplied on the URL. */
.prv-event-context-card {
    margin: 0 auto 12px auto;
    padding: 12px 18px;
    text-align: center;
    border: 1px solid var(--rz-border-color, #e6e6e6);
    border-radius: 6px;
    background-color: var(--rz-card-background-color, #fff);
    max-width: 28rem;
}

.prv-event-context-card__location {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
}

.prv-event-context-card__event {
    margin-top: 2px;
    color: var(--rz-text-secondary-color, #4f5b66);
    font-size: 0.875rem;
    line-height: 1.3;
}

.prv-event-context-card--error {
    color: var(--rz-danger, #b91c1c);
    font-size: 0.875rem;
}

/* Scrollable middle region. flex:1 + min-height:0 lets it absorb whatever
   vertical space is left between the header / event-context card and the
   pinned footer. padding-bottom keeps the last scenario card from sitting
   flush against the sticky footer's top border when scrolled to the bottom. */
.prv-scenarios-scroll {
    flex: 1 1 auto;
    min-height: 0;
    padding-bottom: 12px;
}

.prv-scenarios-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 720px) {
    .prv-scenarios-grid {
        grid-template-columns: 1fr;
    }
}

.prv-scenario-card {
    appearance: none;
    text-align: left;
    background-color: var(--rz-card-background-color, #fff);
    border: 1px solid var(--rz-border-color, #e6e6e6);
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: border-color 120ms, box-shadow 120ms;
    line-height: 1.35;
}

.prv-scenario-card:hover {
    border-color: var(--rz-primary, #6366f1);
}

.prv-scenario-card--selected {
    border-color: var(--rz-primary, #6366f1);
    box-shadow: 0 0 0 1px var(--rz-primary, #6366f1);
}

.prv-scenario-title {
    font-size: 0.9375rem;
    font-weight: 600;
}

.prv-scenario-description {
    color: var(--rz-text-secondary-color, #4f5b66);
    font-size: 0.8125rem;
}

.prv-scenario-meta {
    color: var(--rz-text-tertiary-color, #6b7280);
    font-size: 0.75rem;
    margin-top: 2px;
}

.prv-scenarios-footer {
    /* Pinned action bar. position:sticky bottom:0 keeps Continue / Cancel
       visible above the fold while the scenario grid scrolls behind. The
       opaque background + top border + soft shadow give the bar enough
       contrast that cards scrolling underneath read as "passing behind" the
       action row rather than blending with it. flex-shrink:0 + z-index keep
       the bar above any sticky table headers / Radzen popovers nearby. */
    position: sticky;
    bottom: 0;
    z-index: 5;
    flex-shrink: 0;
    background-color: var(--rz-card-background-color, #fff);
    border-top: 1px solid var(--rz-border-color, #e6e6e6);
    box-shadow: 0 -4px 8px -6px rgba(0, 0, 0, 0.18);
    padding: 12px 0;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    margin-top: 0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.prv-scenarios-cancel {
    appearance: none;
    border: 1px solid var(--rz-border-color, #e6e6e6);
    background-color: transparent;
    padding: 6px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
}

.prv-scenarios-continue {
    appearance: none;
    border: 1px solid var(--rz-primary, #6366f1);
    background-color: var(--rz-primary, #6366f1);
    color: #fff;
    padding: 6px 22px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    min-width: 110px;
}

.prv-scenarios-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.prv-scenarios-error {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #fee2e2;
    color: #991b1b;
    border-radius: 6px;
    font-size: 0.8125rem;
}

/* ---------------------------------------------- Entry icon on EventPreviewPanel */
.prv-eye-btn {
    appearance: none;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 4px;
    cursor: pointer;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.prv-eye-btn:hover {
    background-color: var(--rz-base-200, rgba(0, 0, 0, 0.06));
    border-color: var(--rz-border-color, #e6e6e6);
}

.prv-eye-btn .rzi {
    font-size: 22px;
}

.cum-preview-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}
