/**
 * QR Scanner Styles
 */

.card-qr {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.card-qr img {
    max-width: 100%;
    height: auto;
}

#qr-video {
    border-radius: 12px;
    border: 2px solid #722F37;
}

#qr-reader {
    border-radius: 12px;
    overflow: hidden;
}

#qr-reader video {
    border-radius: 12px;
}

#qr-result {
    min-height: 24px;
    font-size: 14px;
}

.winer-wm-code-ui {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
}

.winer-wm-code-ui .slot {
    width: 40px;
    height: 52px;
    border: 2px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    background: #f9f9f9;
    transition: all 0.2s ease;
}

.winer-wm-code-ui .slot.filled {
    border-color: #722F37;
    background: #fff;
    color: #722F37;
}

.winer-wm-code-ui:focus-within .slot {
    border-color: #722F37;
}

/* Button styles */
#start-qr-scan:hover {
    background: #5a262e !important;
    transform: translateY(-1px);
}

#start-qr-scan:active {
    transform: translateY(0);
}

#winer-wm-code-submit:not(:disabled):hover {
    background: #5a262e !important;
}

#winer-wm-code-submit:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 480px) {
    .card-qr {
        padding: 20px;
        margin: 0 10px;
    }

    .winer-wm-code-ui .slot {
        width: 32px;
        height: 44px;
        font-size: 20px;
    }
}
