﻿.record-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    /* overlay is the scroll container */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 12px 0;
}

.record-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 0;
}

.record-modal-box {
    position: relative;
    width: 645px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
    touch-action: pan-y;
}

/* Touch shield (JS turns it ON on mobile to capture the FIRST swipe) */
.record-modal-shield {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: transparent;
    display: none;
    z-index: 2;
    /* important for Android */
    touch-action: pan-y;
}

    .record-modal-shield.is-on {
        display: block;
    }

.record-modal-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    padding: 6px;
    cursor: pointer;
    z-index: 3;
}

.record-modal-iframe {
    width: 100%;
    border: 0;
    display: block;
    height: auto;
    min-height: 200px;
}

body.no-scroll {
    overflow: hidden;
}

@media (max-width: 600px) {
    .record-modal-box {
        width: 92vw;
    }

    .record-modal-overlay {
        align-items: flex-start;
    }
}

@media (max-width: 450px) {
    .record-modal-box {
        margin-right: 12px;
    }
}
