/**
 * RAKDJAT DYNAMIC QRIS STYLESHEET
 */

.rkj-dynamic-qris-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid #fecdd3;
  box-shadow: 0 10px 30px rgba(190, 18, 60, 0.08);
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  font-family: inherit;
  color: #0f172a;
}

.qris-official-header {
  background: linear-gradient(135deg, #be123c, #881337);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.qris-brand-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-align: left;
  line-height: 1.1;
}

.qris-brand-subtitle {
  font-size: 8.5px;
  letter-spacing: 0.3px;
  opacity: 0.9;
  text-align: left;
  margin-top: 2px;
}

.gpn-badge {
  background: #ffffff;
  color: #be123c;
  font-weight: 900;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.qris-merchant-info {
  margin-bottom: 12px;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 8px;
}

.qris-merchant-name {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.5px;
}

.qris-merchant-nmid {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}

.qris-qr-wrapper {
  background: #f8fafc;
  padding: 14px;
  border-radius: 14px;
  display: inline-block;
  border: 1px solid #e2e8f0;
  margin-bottom: 12px;
}

.qris-canvas-box {
  background: #ffffff;
  padding: 8px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.qris-canvas-box img,
.qris-canvas-box canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.qris-status-pill {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #a7f3d0;
}

.qris-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: qrisPulse 1.8s infinite;
}

@keyframes qrisPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.qris-amount-card {
  background: #fff1f2;
  border: 1.5px dashed #f43f5e;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.qris-amount-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #9f1239;
  letter-spacing: 0.8px;
}

.qris-amount-value {
  font-size: 26px;
  font-weight: 900;
  color: #be123c;
  margin: 4px 0;
  letter-spacing: -0.5px;
}

.qris-unique-digits {
  color: #e11d48;
  background: #ffe4e6;
  padding: 2px 5px;
  border-radius: 6px;
  border: 1px solid #fecdd3;
  margin-left: 1px;
}

.qris-unique-note {
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 8px;
}

.btn-copy-amount {
  background: #ffffff;
  color: #be123c;
  border: 1.5px solid #f43f5e;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-copy-amount:active {
  background: #ffe4e6;
  transform: scale(0.98);
}

.qris-timer-box {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 12px;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.qris-order-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 11px;
  color: #334155;
}

.countdown-highlight {
  color: #e11d48;
  font-weight: 800;
  font-size: 13px;
}

.qris-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.btn-check-payment {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: none;
  padding: 10px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.btn-wa-confirm {
  background: #10b981;
  color: #ffffff !important;
  text-decoration: none;
  padding: 10px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-fast-confirm {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.btn-fast-confirm:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.qris-supported-logos {
  border-top: 1px solid #f1f5f9;
  padding-top: 8px;
}

.qris-banks-row {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.3px;
}

/* Success Celebration Modal Overlay */
.rkj-payment-success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.rkj-success-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 22px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: rkjPopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes rkjPopIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.rkj-success-icon {
  font-size: 54px;
  margin-bottom: 8px;
  animation: rkjBounce 1s infinite alternate;
}

@keyframes rkjBounce {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.rkj-success-title {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 6px;
}

.rkj-success-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 16px;
}

.rkj-activated-badge {
  background: #fff1f2;
  border: 1.5px solid #fecdd3;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 18px;
}

.btn-success-close {
  background: linear-gradient(135deg, #be123c, #9f1239);
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 6px 16px rgba(190, 18, 60, 0.25);
}
