/**
 * Stripe Payments - Styles
 * Style dla płatności Stripe w Lead Magnetach
 */

/* Currency Select */
.lead-currency-select,
.lead-c-currency-select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  font-size: 15px;
  background: #ffffff;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lead-currency-select:focus,
.lead-c-currency-select:focus {
  outline: none;
  border-color: #3c0fab;
  box-shadow: 0 0 0 4px rgba(60, 15, 171, 0.1);
}

/* Price Display */
.lead-price-display,
.lead-c-price-display {
  background: #f5f5f7;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
}

.lead-price-label,
.lead-c-price-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.lead-price-amount,
.lead-c-price-amount {
  font-size: 32px;
  font-weight: 700;
  color: #3c0fab;
  line-height: 1.2;
}

/* Stripe Payment Element Container */
.lead-stripe-element,
.lead-c-stripe-element {
  margin: 24px 0;
  min-height: 200px;
}

/* Stripe Error Messages */
.lead-stripe-error,
.lead-c-stripe-error {
  background: #fff5f5;
  border: 1px solid #ff3b30;
  border-radius: 12px;
  padding: 12px 16px;
  color: #ff3b30;
  font-size: 14px;
  margin: 16px 0;
  display: none;
}

.lead-stripe-error.show,
.lead-c-stripe-error.show {
  display: block;
}

/* Payment Loading State */
.lead-payment-loading,
.lead-c-payment-loading {
  text-align: center;
  padding: 40px 20px;
}

.lead-payment-loading .lead-spinner,
.lead-c-payment-loading .lead-c-spinner {
  margin: 0 auto 16px;
}

/* Payment Buttons */
.lead-btn-payment,
.lead-c-btn-payment {
  width: 100%;
  padding: 18px 24px;
  background: #3c0fab;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lead-btn-payment:hover:not(:disabled),
.lead-c-btn-payment:hover:not(:disabled) {
  background: #310c8f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(60, 15, 171, 0.3);
}

.lead-btn-payment:disabled,
.lead-c-btn-payment:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lead-btn-payment .spinner,
.lead-c-btn-payment .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Payment Section */
.lead-payment-section,
.lead-c-payment-section {
  border-top: 1px solid #e5e5ea;
  padding-top: 24px;
  margin-top: 24px;
}

.lead-payment-section h4,
.lead-c-payment-section h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #000;
}

/* Stripe Branding */
.lead-stripe-branding,
.lead-c-stripe-branding {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: #999;
}

.lead-stripe-branding a,
.lead-c-stripe-branding a {
  color: #635bff;
  text-decoration: none;
}

.lead-stripe-branding a:hover,
.lead-c-stripe-branding a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .lead-price-amount,
  .lead-c-price-amount {
    font-size: 28px;
  }

  .lead-btn-payment,
  .lead-c-btn-payment {
    padding: 16px 20px;
    font-size: 15px;
  }
}
