/* Checkout Modal Styles */
.checkout-modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.checkout-modal.show {
  display: flex;
  opacity: 1;
}

.checkout-modal-content {
  background-color: #ffffff;
  margin: 10px;
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 95vh;
  overflow-y: auto;
}

.checkout-modal.show .checkout-modal-content {
  transform: translateY(0);
}

.close-modal {
  color: #888;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
  color: #111;
  text-decoration: none;
}

.checkout-modal h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.25rem;
  color: #1a1a1a;
  text-align: center;
  font-weight: 600;
}

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  padding: 12px 10px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.qr-container img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 6px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.qr-container p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #495057;
  font-weight: 500;
  text-align: center;
}

.qr-hint {
  font-size: 0.75rem;
  color: #6c757d;
  text-align: center;
}

.checkout-form .form-group {
  margin-bottom: 10px;
}

.checkout-form label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
  color: #343a40;
  font-weight: 500;
}

.checkout-form input[type="text"],
.checkout-form input[type="tel"],
.checkout-form input[type="number"],
.checkout-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.checkout-form textarea {
  resize: vertical;
}

.submit-btn {
  background-color: #2F5233;
  /* Dark green matching Anvi Aura vibe */
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 6px;
  transition: background-color 0.2s, transform 0.1s;
}

.submit-btn:hover {
  background-color: #243E26;
}

.submit-btn:active {
  transform: scale(0.98);
}

.upi-intent-btn {
  display: none;
  /* Hidden by default on desktop */
  background-color: #007bff;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin: 10px 0 5px 0;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 0.95rem;
  transition: background-color 0.2s;
}

.upi-intent-btn:hover {
  background-color: #0056b3;
  color: white;
  text-decoration: none;
}

@media (max-width: 768px) {
  .upi-intent-btn {
    display: block;
    /* Show on mobile */
  }

  .qr-hint {
    display: none;
    /* Hide on mobile */
  }
}

@media (min-width: 769px) {
  .upi-intent-btn {
    display: none;
    /* Ensure hidden on desktop */
  }

  .qr-hint {
    display: block;
    /* Ensure shown on desktop */
  }
}