.stripe-checkout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  backdrop-filter: blur(5px);
}

.stripe-checkout-container {
  background: linear-gradient(135deg, #1a1e3a 0%, #0a0e27 100%);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.stripe-checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.stripe-checkout-header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
}

.stripe-checkout-close {
  background: none;
  border: none;
  color: #888;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.stripe-checkout-close:hover {
  color: #ff6b6b;
}

.stripe-checkout-content {
  padding: 24px;
  min-height: 400px;
  max-height: calc(95vh - 80px);
  overflow-y: auto;
  flex: 1;
}

.stripe-checkout-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: #888;
}

.stripe-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 255, 136, 0.2);
  border-top-color: #00ff88;
  border-radius: 50%;
  animation: stripe-spin 1s linear infinite;
}

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

.stripe-checkout-loading p {
  margin-top: 16px;
  color: #888;
}

.stripe-checkout-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
}

.stripe-checkout-error .error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.stripe-checkout-error p {
  color: #ff6b6b;
  margin-bottom: 20px;
}

.stripe-retry-btn {
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stripe-retry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
}

#stripe-embedded-checkout {
  min-height: 450px;
  width: 100%;
}

#stripe-embedded-checkout iframe {
  border-radius: 8px;
  min-height: 450px !important;
}

@media (max-width: 600px) {
  .stripe-checkout-overlay {
    align-items: flex-start;
    padding-top: 10px;
  }
  
  .stripe-checkout-container {
    width: 95%;
    max-height: 98vh;
    border-radius: 12px;
  }
  
  .stripe-checkout-header {
    padding: 12px 16px;
    flex-shrink: 0;
  }
  
  .stripe-checkout-header h2 {
    font-size: 1.1rem;
  }
  
  .stripe-checkout-content {
    padding: 12px;
    max-height: calc(98vh - 60px);
  }
  
  #stripe-embedded-checkout {
    min-height: 400px;
  }
}
