/* QR Login button + camera-scanner modal, shown on the Summit K12 login page. */

.sk12-qr-login-btn:focus,
.sk12-qr-login-btn:active,
.sk12-qr-login-btn:active:focus {
    outline: none;
    box-shadow: none;
    -webkit-box-shadow: none;
}

.sk12-qr-login-btn svg {
    width: 45px;
    height: 45px;
    flex: 0 0 auto;
}

/* Overlay */
.sk12-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.85);
}

.sk12-qr-modal[hidden] {
    display: none;
}

.sk12-qr-dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.sk12-qr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.sk12-qr-header h2 {
    margin: 0;
    font-size: 17px;
}

.sk12-qr-close {
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    padding: 0 4px;
}

.sk12-qr-close:hover,
.sk12-qr-close:focus {
    color: #000;
    outline: none;
}

.sk12-qr-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #000;
}

.sk12-qr-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sk12-qr-body {
    padding: 12px 16px 16px;
    text-align: center;
}

.sk12-qr-instructions {
    margin: 0 0 6px;
    color: #444;
    font-size: 14px;
}

.sk12-qr-status {
    margin: 0;
    min-height: 1.2em;
    font-size: 14px;
    color: #1e8e5a;
}

.sk12-qr-status--error {
    color: #c0392b;
}

/* Full-screen on small viewports. */
@media (max-width: 480px) {
    .sk12-qr-dialog {
        display: flex;
        flex-direction: column;
        max-width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .sk12-qr-video-wrap {
        flex: 1 1 auto;
        aspect-ratio: auto;
    }
}
