.payment-container {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem;
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.payment-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  text-align: center;
}

.error-message {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.plan-card {
  cursor: pointer;
  padding: 1rem;
  border: 2px solid #d1d5db;
  border-radius: 0.75rem;
  transition: all 0.2s ease-in-out;
  position: relative;
}
.plan-card:hover {
  border-color: #9ca3af;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.plan-card--selected {
  border-color: #2563eb;
  background-color: #eff6ff;
}
.plan-card--selected:hover {
  border-color: #2563eb;
}

.plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.plan-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.plan-radio {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease-in-out;
}
.plan-card--selected .plan-radio {
  border-color: #2563eb;
  background-color: #2563eb;
}
.plan-radio__dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: white;
  border-radius: 50%;
}

.plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.plan-description {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.4;
}

.plan-badge-container {
  margin-top: 0.5rem;
}

.plan-badge {
  display: inline-block;
  background-color: #dcfce7;
  color: #059669;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  line-height: 1.2;
}

.payment-summary {
  background-color: #f9fafb;
  padding: 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}

.summary-title {
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.summary-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-plan {
  color: #6b7280;
  font-size: 0.875rem;
}

.summary-price {
  font-weight: 700;
  font-size: 1.125rem;
  color: #1f2937;
}

.payment-button-container {
  text-align: center;
}

.payment-button {
  width: 100%;
  background-color: #2563eb;
  color: white;
  font-weight: 700;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.payment-button:hover:not(:disabled) {
  background-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.payment-button:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.payment-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.loading-spinner {
  width: 1.25rem;
  height: 1.25rem;
  animation: spin 1s linear infinite;
}
.loading-spinner__circle {
  opacity: 0.25;
}
.loading-spinner__path {
  opacity: 0.75;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.payment-info {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
  line-height: 1.5;
}
.payment-info p {
  margin: 0.25rem 0;
}

@media (max-width: 640px) {
  .payment-container {
    margin: 1rem;
    padding: 1rem;
  }
  .payment-title {
    font-size: 1.25rem;
  }
  .plan-price {
    font-size: 1.5rem;
  }
  .payment-button {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
}
@media (prefers-color-scheme: dark) {
  .payment-container {
    background-color: #1f2937;
    color: #f9fafb;
  }
  .payment-title {
    color: #f9fafb;
  }
  .plan-card {
    border-color: #374151;
    background-color: #374151;
  }
  .plan-card--selected {
    background-color: #1e3a8a;
    border-color: #2563eb;
  }
  .plan-name {
    color: #f9fafb;
  }
  .payment-summary {
    background-color: #374151;
  }
  .summary-title {
    color: #f9fafb;
  }
  .summary-price {
    color: #f9fafb;
  }
}
