/* Essential styles for BlockScreen QR feature - Standalone version */

.block-screen-qr-container {
    text-align: center;
    margin: 20px auto;
    max-width: 100%;
}

.qr-canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.scaem-modal--blocking-screen-canvas {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    border-radius: 1.5rem;
    background-color: black;
    border: 1px solid #333;
}

/* Canvas container and input overlays */
.canvas-container {
    position: relative;
    display: inline-block;
}

.input-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.input-overlay .scaem-modal--blocking-screen-selects,
.input-overlay .scaem-modal--blocking-screen-inputs {
    pointer-events: auto;
}

/* Animation for active button */
.animacion-comprar {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* ModalOverlayView styles for standalone use */
.modal-overlay-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1052;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.modal-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

.modal-overlay-content {
    position: relative;
    z-index: 1;
    margin-inline: clamp(0.5rem, 5vw, 0.8rem);
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-overlay-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.7rem;
}

.modal-overlay-message {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.modal-overlay-input {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 1.1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    margin-bottom: 0.8rem;
    outline: none;
    transition: border-color 0.2s;
}

.modal-overlay-input:focus {
    border-color: #4cb5f6;
}

.modal-overlay-input.is-invalid {
    border-color: #ee0000;
    background: #fff0f0;
}

.modal-overlay-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    width: 100%;
}

.modal-overlay-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.2rem;
}

.modal-overlay-accept,
.modal-overlay-cancel {
    min-width: 110px;
}