/* ════════════════════════════════════════════════
   qris.css — QRIS Payment & Order Success Styles
   STREAD PREM
════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════
   QRIS ORDER MODAL — Single Product (renderQrisBlock)
══════════════════════════════════════════════════════════════ */

.qris-payment-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 4px 0 8px;
    text-align: center;
}

/* ── Header Card ───────────────────────────────────────────── */
.qris-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(108,99,255,0.1), rgba(6,214,160,0.06));
    border: 1px solid rgba(108,99,255,0.2);
    border-radius: 12px;
    padding: 12px 16px;
    width: 100%;
    text-align: left;
}
.qris-header .qris-icon { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.qris-title  { font-size: 0.9rem; font-weight: 700; color: #e2e8f0; margin: 0 0 2px; }
.qris-product-label { font-size: 0.75rem; color: #94a3b8; margin: 0 0 2px; }
.qris-amount { font-size: 1.1rem; font-weight: 800; color: #00e5a0; margin: 0; }

/* ── QR Image/Canvas Wrapper ───────────────────────────────── */
.qris-canvas-wrap {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow:
        0 0 0 1px rgba(108,99,255,0.2),
        0 6px 28px rgba(0,0,0,0.45),
        0 0 50px rgba(0,229,160,0.08);
    transition: box-shadow 0.3s ease;
    max-width: 280px;
    width: 100%;
}
.qris-canvas-wrap:hover {
    box-shadow:
        0 0 0 1px rgba(108,99,255,0.35),
        0 10px 36px rgba(0,0,0,0.55),
        0 0 70px rgba(0,229,160,0.14);
}
/* QR image from Pakasir URL */
.qris-img {
    display: block;
    width: 240px;
    height: 240px;
    object-fit: contain;
    border-radius: 4px;
}
/* QRCode.js lib generated canvas/img — force fixed size */
#qrcode-container,
#qrcode-container > div {
    display: flex;
    align-items: center;
    justify-content: center;
}
#qrcode-container canvas,
#qrcode-container img {
    width: 240px !important;
    height: 240px !important;
    border-radius: 4px;
}
.qris-note {
    font-size: 0.72rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.4;
    margin: 0;
}

/* ── Status Bar (Spinner + Countdown) ─────────────────────── */
.qris-status-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.82rem;
    color: #a5b4fc;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.qris-spinner-mini {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #6366f1;
    flex-shrink: 0;
    animation: qris-dot-pulse 1.8s ease-in-out infinite;
}
@keyframes qris-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1);    box-shadow: 0 0 0 0   rgba(99,102,241,0.5); }
    50%       { opacity: 0.6; transform: scale(0.8); box-shadow: 0 0 0 5px rgba(99,102,241,0); }
}
#qris-timer { color: #c7d2fe; font-weight: 700; }

/* ── Ref ID Row ────────────────────────────────────────────── */
.qris-ref-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 9px 14px;
}
.qris-ref-label {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}
.qris-ref-value {
    flex: 1;
    font-size: 0.75rem;
    color: #94a3b8;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}
.qris-copy-ref {
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.2);
    color: #818cf8;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 0.78rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}
.qris-copy-ref:hover { background: rgba(99,102,241,0.22); border-color: rgba(99,102,241,0.4); }

/* ── Info Notice (auto-cek) ────────────────────────────────── */
.qris-info-row {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(6,214,160,0.05);
    border: 1px solid rgba(6,214,160,0.13);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.77rem;
    color: #6ee7b7;
    line-height: 1.5;
    text-align: left;
}
.qris-info-row svg { flex-shrink: 0; margin-top: 1px; color: #06d6a0; }

/* ── Telegram Notice ───────────────────────────────────────── */
.qris-tg-notice {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(42,171,238,0.07);
    border: 1px solid rgba(42,171,238,0.15);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.78rem;
    color: #7dd3fc;
    line-height: 1.4;
}
.qris-tg-notice strong { color: #e2e8f0; }

/* ── Cancel Button (Batalkan) ──────────────────────────────── */
.qris-cancel-btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.82rem !important;
    color: #64748b !important;
    border-color: rgba(255,255,255,0.06) !important;
    margin-top: 0 !important;
    transition: all 0.2s !important;
}
.qris-cancel-btn:hover {
    color: #ef4444 !important;
    border-color: rgba(239,68,68,0.3) !important;
    background: rgba(239,68,68,0.06) !important;
}

/* ══════════════════════════════════════════════════════════════
   ORDER SUCCESS SCREEN
══════════════════════════════════════════════════════════════ */

@keyframes paid-appear {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes paid-pop {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

.order-success-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
    text-align: center;
    animation: paid-appear 0.45s cubic-bezier(0.34,1.56,0.64,1);
}
.order-success-icon-wrap {
    width: 68px; height: 68px;
    background: rgba(6,214,160,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 8px rgba(6,214,160,0.06);
    animation: paid-pop 0.55s cubic-bezier(0.34,1.56,0.64,1) 0.1s both;
}
.order-success-title { font-size: 1.15rem; font-weight: 800; color: #f0f0fa; margin: 0; }
.order-success-ref {
    font-size: 0.72rem;
    color: #64748b;
    background: rgba(255,255,255,0.04);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    font-family: 'Courier New', monospace;
}
.order-success-details {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    overflow: hidden;
}
.osd-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.83rem;
    gap: 12px;
}
.osd-row:last-child { border-bottom: none; }
.osd-row > span:first-child { color: #64748b; font-weight: 500; }
.osd-row > strong { color: #e2e8f0; font-weight: 700; text-align: right; }
.badge-paid-inline {
    background: rgba(6,214,160,0.15);
    color: #06d6a0;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}
.order-success-account { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.order-success-tg-notice {
    display: flex; align-items: center; gap: 10px;
    width: 100%;
    background: rgba(42,171,238,0.07);
    border: 1px solid rgba(42,171,238,0.15);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.8rem; color: #7dd3fc; text-align: left;
}
.order-success-tg-notice svg { flex-shrink: 0; }
.order-success-tg-notice strong { color: #e2e8f0; }
.order-success-actions { width: 100%; display: flex; flex-direction: column; gap: 8px; }

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .qris-img { width: 190px; height: 190px; }
    #qrcode-container canvas,
    #qrcode-container img { width: 190px !important; height: 190px !important; }
    .qris-canvas-wrap { padding: 12px; max-width: 240px; }
}
