/* Generic region-blocking overlay — see blockingOverlay.js */

.blocking-overlay {
    position: fixed;
    z-index: 900; /* below true modals (.modal is 1000) */
    background-color: var(--background-color, #f0f0f0); /* opaque client background — hides content behind */
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    box-sizing: border-box;
    overflow: auto;
}

.blocking-overlay__panel {
    margin: 50px; /* card sits at the top-left with a 50px margin */
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 20px 22px;
    max-width: 420px;
    width: 100%;
    box-sizing: border-box;
}

.blocking-overlay__title {
    margin: 0 0 10px;
    font-size: 1.15em;
}

.blocking-overlay__body {
    margin-bottom: 18px;
    line-height: 1.5;
    color: #333;
}

.blocking-overlay__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* On small screens the anchored region may be collapsed (e.g. a hidden pane),
   so dock the overlay as a bottom sheet regardless of the computed geometry.
   !important overrides the inline top/left/width/height set by reposition(). */
@media (max-width: 768px) {
    .blocking-overlay {
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: 85vh;
        padding: 12px;
        align-items: stretch;
        font-size: 75%; /* compact instruction sheet on mobile */
    }

    .blocking-overlay__panel {
        margin: 12px;
        max-width: 100%;
    }
}
