/* Estilos para el formulario de checkout */
.checkout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.checkout-overlay.active {
  opacity: 1;
}

.checkout-form-container {
  background-color: #fff;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.3s ease;
}

.checkout-form-container.active {
  transform: translateY(0);
  opacity: 1;
}

.checkout-header {
  background-color: #4CAF50;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
}

.checkout-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.close-form {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.checkout-body {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(90vh - 130px);
}

.checkout-section {
  margin-bottom: 25px;
}

.checkout-section h3 {
  color: #4CAF50;
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 500;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 8px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #4CAF50;
  outline: none;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.checkout-summary {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #e0e0e0;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row.total {
  font-weight: 700;
  color: #4CAF50;
  font-size: 1.1rem;
  margin-top: 5px;
  padding-top: 10px;
  border-top: 2px solid #e0e0e0;
}

.checkout-impact {
  background-color: #e8f5e9;
  padding: 15px;
  border-radius: 8px;
}

.impact-items {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.impact-item {
  display: flex;
  align-items: center;
  padding: 10px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  min-width: 150px;
}

.impact-icon {
  font-size: 2rem;
  margin-right: 10px;
}

.impact-data {
  display: flex;
  flex-direction: column;
}

.impact-value {
  font-weight: 700;
  font-size: 1.2rem;
  color: #4CAF50;
}

.impact-label {
  font-size: 0.8rem;
  color: #777;
}

.checkout-footer {
  padding: 15px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  border-top: 1px solid #e0e0e0;
  background-color: #f9f9f9;
}

.cancel-btn,
.confirm-btn {
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cancel-btn {
  background-color: #f5f5f5;
  color: #555;
  border: 1px solid #ddd;
}

.confirm-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
}

.cancel-btn:hover {
  background-color: #e0e0e0;
}

.confirm-btn:hover {
  background-color: #43a047;
}

/* Estilos responsivos */
@media (max-width: 768px) {
  .checkout-form-container {
    width: 95%;
  }
  
  .impact-items {
    flex-direction: column;
  }
  
  .impact-item {
    width: 100%;
  }
}

/* Estilos para el QR de pago */
.payment-section {
  text-align: center;
}

.payment-message {
  margin-bottom: 30px;
}

.payment-message h3 {
  color: #4CAF50;
  margin-bottom: 15px;
}

.payment-message p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.payment-details {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

.payment-row:last-child {
  border-bottom: none;
}

.advance-amount {
  color: #4CAF50;
  font-weight: 700;
  font-size: 1.1rem;
}

.qr-section {
  margin-top: 25px;
}

.qr-section h3 {
  color: #4CAF50;
  margin-bottom: 20px;
}

.qr-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #4CAF50, #8BC34A);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
  position: relative;
  overflow: hidden;
}

.qr-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  background-size: 20px 20px;
}

.qr-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.qr-placeholder p {
  font-weight: 600;
  margin: 5px 0;
}

.qr-placeholder small {
  opacity: 0.8;
  font-size: 0.8rem;
}

.qr-info {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  text-align: left;
  min-width: 250px;
}

.qr-info p {
  margin: 8px 0;
  font-size: 0.9rem;
  color: #555;
}

/* Estilos para la pantalla de éxito */
.success-header {
  background-color: #4CAF50 !important;
}

.success-section {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: bounce 1s ease-in-out;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.success-section h3 {
  color: #4CAF50;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.success-section p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.order-details {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  text-align: left;
}

.order-details p {
  margin: 8px 0;
  color: #555;
}

.next-steps {
  text-align: left;
  margin-top: 25px;
}

.next-steps h4 {
  color: #4CAF50;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.next-steps ul {
  list-style: none;
  padding: 0;
}

.next-steps li {
  padding: 8px 0;
  color: #666;
  position: relative;
  padding-left: 25px;
}

.next-steps li::before {
  content: '📧';
  position: absolute;
  left: 0;
  top: 8px;
}

/* Responsive para el QR */
@media (max-width: 768px) {
  .qr-code {
    flex-direction: column;
  }
  
  .qr-placeholder {
    width: 180px;
    height: 180px;
  }
  
  .qr-info {
    min-width: auto;
    width: 100%;
  }
}
