.wc-checkout-link-generator-frontend {
  max-width: 600px;
  margin: 20px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.checkout-generator-card.card-theme {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid #e1e5e9;
  position: relative;
  overflow: hidden;
}

.checkout-generator-card.card-theme::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.checkout-generator-card h3 {
  margin: 0 0 20px 0;
  color: #2c3e50;
  font-size: 24px;
  text-align: center;
  font-weight: 600;
}

.card-branding {
  text-align: center;
  margin-bottom: 25px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  color: white;
}

.card-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.card-icon {
  font-size: 28px;
}

.card-text {
  font-size: 18px;
  font-weight: 600;
}

.accepted-cards {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 500;
}

.accepted-cards span {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
  margin: 0 2px;
}

.checkout-form-frontend .form-group {
  margin-bottom: 20px;
}

.checkout-form-frontend label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #34495e;
  font-size: 14px;
}

.checkout-form-frontend input,
.checkout-form-frontend textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.checkout-form-frontend input:focus,
.checkout-form-frontend textarea:focus {
  border-color: #667eea;
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.checkout-btn.card-btn {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.checkout-btn.card-btn:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.checkout-btn.card-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.checkout-btn.card-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.checkout-btn.card-btn:active::after {
  width: 300px;
  height: 300px;
}

.btn-icon {
  font-size: 18px;
}

/* Generated Result */
.generated-result {
  margin-top: 30px;
  padding: 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  border: 1px solid #dee2e6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.generated-result h4 {
  margin: 0 0 20px 0;
  color: #667eea;
  font-size: 20px;
  text-align: center;
  font-weight: 600;
}

.link-result-content {
  display: grid;
  gap: 20px;
}

.link-actions-fe {
  background: white;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e1e5e9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.link-actions-fe input {
  margin-bottom: 15px;
  font-family: "Courier New", monospace;
  background: #f8f9fa;
  font-size: 14px;
  border: 2px solid #e1e5e9;
}

.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-copy,
.btn-test.card-test {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.btn-copy {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-copy:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-1px);
}

.btn-copy.copied {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.btn-test.card-test {
  background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-test.card-test:hover {
  background: linear-gradient(135deg, #dd6b20 0%, #c05621 100%);
  transform: translateY(-1px);
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .checkout-generator-card {
    margin: 10px;
    padding: 20px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .btn-copy,
  .btn-test {
    flex: none;
  }

  .card-icons {
    flex-direction: column;
    gap: 5px;
  }

  .card-text {
    font-size: 16px;
  }

  .accepted-cards {
    font-size: 12px;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.generated-result {
  animation: fadeInUp 0.5s ease;
}

/* Loading state */
.checkout-btn:disabled {
  background: #95a5a6;
  cursor: not-allowed;
}

/* Success states */
.form-group input:valid {
  border-color: #48bb78;
}

.form-group input:invalid:not(:placeholder-shown) {
  border-color: #e53e3e;
}

/* Card theme specific styling */
.card-theme .form-group input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Security indicators */
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
}
