/**
 * Embedded Checkout Styles
 * Styles for Stripe embedded checkout integration
 */

/* Checkout container */
#checkout {
  min-height: 400px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

/* Loading state */
.checkout-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  font-size: 1.1rem;
  color: var(--text-secondary, #b8b8b8);
}

/* Back button */
.checkout-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: var(--text-primary, #e0e0e0);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkout-back-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Success view */
.checkout-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  min-height: 400px;
}

.checkout-success .success-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.checkout-success h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--text-primary, #e0e0e0);
}

.checkout-success p {
  font-size: 1.1rem;
  color: var(--text-secondary, #b8b8b8);
  margin-bottom: 32px;
}

.checkout-success .btn-primary {
  min-width: 200px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #checkout {
    padding: 12px;
    min-height: 350px;
  }

  .checkout-success {
    padding: 32px 16px;
    min-height: 350px;
  }

  .checkout-success .success-icon {
    font-size: 3rem;
  }

  .checkout-success h3 {
    font-size: 1.5rem;
  }

  .checkout-success p {
    font-size: 1rem;
  }
}
