/**
 * Fullscreen Signature — Tap/Click Overlay (rendered inside the iframe)
 *
 * The modal CSS is injected into the parent document via JavaScript
 * to break out of the iframe boundary.
 *
 * Copyright 2025 Lieblinger
 * License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
 */

/* =========================================================================
   Stacking-context fix: keep the refresh button below open dropdowns
   ========================================================================= */

.formio-component-signature {
    isolation: isolate;
}

/* =========================================================================
   Click/tap overlay on inline signature pad (inside iframe)
   ========================================================================= */

.sig-fs-tap-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.70);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
}

.sig-fs-tap-overlay:active {
    background: rgba(255, 255, 255, 0.85);
}

.sig-fs-tap-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.06);
    color: #333;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    user-select: none;
}

.sig-fs-tap-label svg {
    flex-shrink: 0;
}
