* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f5f7fa;
  font-family: sans-serif;
  color: #111827;
  font-weight: 200;
}

.my-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.my-card {
  background: #fff;
  padding: 24px;
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

p {
  margin: 0 0 20px;
  color: #6b7280;
}

#payment-element {
  margin-bottom: 20px;
}

button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

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

#message {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  display: none;
}

.success {
  display: block;
  background: #dcfce7;
  color: #166534;
}

.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
}

.loading {
  display: block;
  background: #dbeafe;
  color: #1e40af;
}

.my-radio {
  display: block;
  width: 100%;
  padding: 1rem;
  margin: 0;
  border-radius: 0.5rem;
  background: #ededed;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
}

.my-radio:hover {
  background: #e5e7eb;
}

.btn-check:checked+.my-radio {
  background: #8d0dfd;
  color: white;
}

.pointer {
  cursor: pointer;
}

.StripeElement {
  padding: 16px;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background: #fff;
}

.StripeElement--focus {
  border-color: #86b7fe;
}

.StripeElement--invalid {
  border-color: #dc3545;
}

[data-other] {
  max-height: 60px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

[data-other].other-hidden {
  max-height: 0;
  opacity: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  pointer-events: none;
}

@media (min-width: 992px) {
  .my-card {
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
}