/**
 * @file
 * Styles for price display component matching original UI.
 */

.stripe-price-display {
  display: inline;
}

.stripe-price-display .price-amount {
  display: inline;
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
}

.stripe-price-display .price-interval {
  display: inline;
  font-size: inherit;
  color: inherit;
  margin-left: 0;
}

/* Currency selector form styling */
.stripe-currency-form {
  display: block;
  margin: 0 auto 20px auto;
  padding: 0;
  text-align: center;
}

.stripe-currency-form .form-item {
  margin: 0 auto;
  display: inline-block;
}

.stripe-currency-form .currency-selector {
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  cursor: pointer;
}

/* Button styling - minimal to let theme styles take over */
.stripe-membership-button {
  cursor: pointer;
  transition: all 0.2s ease;
}

.stripe-membership-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Embedded Checkout Styles */
#stripe-embedded-checkout-container {
  position: relative;
  margin: 30px 0;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-height: 500px;
}

.checkout-loading {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  font-size: 18px;
}

.checkout-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  transition: all 0.2s ease;
  z-index: 100;
}

.checkout-close-btn:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
  color: #1f2937;
}

/* Modal overlay style (optional) */
#stripe-embedded-checkout-container.modal-style {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Backdrop for modal style */
.stripe-checkout-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

/* Responsive styles */
@media (max-width: 768px) {
  #stripe-embedded-checkout-container {
    padding: 15px;
    margin: 20px 0;
  }
  
  #stripe-embedded-checkout-container.modal-style {
    width: 95%;
    max-height: 95vh;
  }
  
  .checkout-close-btn {
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    font-size: 12px;
  }
}

