/* Enhanced Merchant Payment Screen Styles */
.merchant-pay-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000006;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.merchant-pay-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.merchant-pay-modal {
  width: 90%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.merchant-pay-overlay--visible .merchant-pay-modal {
  transform: scale(1) translateY(0);
}

/* Header Styles */
.merchant-pay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #dc2626;
  color: white;
}

.merchant-header-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.merchant-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.merchant-pay-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.merchant-pay-close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 14px;
}

.merchant-pay-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Body Styles */
.merchant-pay-body {
  padding: 20px;
  display: grid;
  gap: 16px;
}

/* Payment Method Card */
.merchant-method-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.method-info,
.amount-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.method-label,
.amount-label {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.method-name,
.amount-value {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.amount-value {
  color: #059669;
  font-size: 18px;
}

/* Recipient Section */
.merchant-recipient {
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 12px;
  padding: 16px;
}

.recipient-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #92400e;
  margin-bottom: 8px;
}

.recipient-number {
  font-size: 18px;
  font-weight: 700;
  color: #92400e;
  font-family: 'Courier New', monospace;
}

/* Instructions Section */
.merchant-instructions {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

.instructions-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 10px;
}

.instructions-text {
  margin: 0 0 12px 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

/* Code Container */
.code-container {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.code-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.code-copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-copy-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.code-copy-btn.copy-success {
  background: #059669;
}

.code-display {
  padding: 0;
}

.merchant-code {
  margin: 0;
  padding: 16px;
  background: #1a1a1a;
  color: #00ff41;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: 600;
  border: none;
  width: 100%;
  text-align: center;
  letter-spacing: 0.5px;
  overflow-x: auto;
  white-space: nowrap;
}

/* Confirmation Section */
.merchant-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}

.confirmation-icon {
  color: #059669;
  font-size: 16px;
  margin-top: 1px;
}

.confirmation-text {
  margin: 0;
  color: #065f46;
  font-size: 13px;
  line-height: 1.4;
}

/* Action Button */
.merchant-actions {
  text-align: center;
}

.merchant-continue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-width: 160px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.merchant-continue:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.merchant-continue:active {
  transform: translateY(0);
}

/* Enhanced Toast */
.merchant-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #1f2937;
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000007;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.merchant-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.merchant-toast--success {
  background: #059669;
}

.merchant-toast--error {
  background: #dc2626;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .merchant-pay-modal {
    background: #1e293b;
    color: white;
  }

  .merchant-method-card {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
  }

  .method-name,
  .amount-value {
    color: white;
  }

  .merchant-instructions {
    background: #334155;
    border-color: #475569;
  }

  .instructions-header {
    color: white;
  }

  .instructions-text {
    color: #cbd5e1;
  }

  .code-container {
    background: #475569;
  }

  .code-header {
    background: #334155;
    border-color: #475569;
  }

  .merchant-confirmation {
    background: #064e3b;
    border-color: #047857;
  }

  .confirmation-text {
    color: #a7f3d0;
  }
}

/* Responsive Design */
@media (max-width: 480px) {
  .merchant-pay-modal {
    width: 95%;
    margin: 8px;
  }

  .merchant-pay-header {
    padding: 14px 16px;
  }

  .merchant-pay-body {
    padding: 16px;
    gap: 14px;
  }

  .merchant-method-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 14px;
  }

  .merchant-code {
    font-size: 14px;
    padding: 12px;
  }

  .merchant-continue {
    width: 100%;
    padding: 14px 20px;
  }
}
