/* ─── OVERLAY ───────────────────────────────────────────────── */
.hpos-ardxoz-pagoqr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── MODAL ─────────────────────────────────────────────────── */
.hpos-ardxoz-pagoqr-modal {
    background: #fff;
    padding: 30px 25px;
    max-width: 420px;
    width: 92%;
    border-radius: 10px;
    position: relative;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.hpos-ardxoz-pagoqr-close {
    position: absolute;
    top: 8px;
    right: 14px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.2s;
}
.hpos-ardxoz-pagoqr-close:hover {
    color: #333;
}

/* ─── STEP 1: QR ────────────────────────────────────────────── */
.hpos-ardxoz-pagoqr-modal h3 {
    margin: 0 0 15px;
    font-size: 20px;
    font-weight: 600;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-main-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 0 auto 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px;
    background: #fff;
    display: block;
}

/* ─── BOTONES QR (Descargar / Compartir) ────────────────────── */
.qr-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.qr-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: #0073aa;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    line-height: 1.4;
}
.qr-action-btn:hover {
    background: #005a87;
    color: #fff;
}

.qr-action-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

/* Oculto por defecto, el JS lo muestra si navigator.share existe */
.share-btn {
    display: none !important;
}
.share-btn.is-visible {
    display: inline-flex !important;
}

/* ─── DETALLES DE PAGO ──────────────────────────────────────── */
.payment-details {
    margin: 10px 0 15px;
    font-size: 15px;
}
.payment-details p {
    margin: 4px 0;
}

.limit-error {
    background: #fcf0f1;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}

/* ─── BOTONES DE ACCIÓN PRINCIPALES ─────────────────────────── */
.popup-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 5px;
}

.popup-actions .button.alt,
.hpos-ardxoz-pagoqr-modal .btn-continue,
.hpos-ardxoz-pagoqr-modal .btn-finalizar-directo {
    display: inline-block;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s;
    line-height: 1.4;
}

.hpos-ardxoz-pagoqr-modal .btn-continue {
    background: #0073aa;
    color: #fff;
}
.hpos-ardxoz-pagoqr-modal .btn-continue:hover {
    background: #005a87;
}

.hpos-ardxoz-pagoqr-modal .btn-finalizar-directo {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
}
.hpos-ardxoz-pagoqr-modal .btn-finalizar-directo:hover {
    background: #e0e0e0;
}

/* ─── STEP 2: SUBIR COMPROBANTE ─────────────────────────────── */
.upload-box {
    border: 2px dashed #ccc;
    padding: 30px 20px;
    margin: 18px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    text-align: center;
}
.upload-box:hover,
.upload-box.dragover {
    border-color: #0073aa;
    background: #f7fbff;
}

.upload-box input[type="file"] {
    display: none;
}

.upload-box label {
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.file-name-display {
    margin-top: 8px;
    font-size: 13px;
    color: #0073aa;
    font-weight: 500;
}

/* ─── MENSAJES Y LOADER ────────────────────────────────────── */
.msg-area {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
    display: none;
    font-size: 14px;
}
.msg-area.error {
    background: #fcf0f1;
    color: #d63638;
}

.loader-wrapper {
    text-align: center;
}
.loader-wrapper p {
    font-size: 13px;
    color: #666;
}

/* ─── BOTÓN FINALIZAR PEDIDO (Step 2) ──────────────────────── */
.hpos-ardxoz-pagoqr-modal .btn-finalizar {
    display: inline-block;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 5px;
}
.hpos-ardxoz-pagoqr-modal .btn-finalizar:hover {
    background: #005a87;
}
.hpos-ardxoz-pagoqr-modal .btn-finalizar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ─── ADMIN CSS ────────────────────────────────────────────── */
.hpos-ardxoz-pagoqr-upload-wrapper img {
    margin-bottom: 10px;
    display: block;
    border: 1px solid #ddd;
    background: #f9f9f9;
}
