.withdrawalDialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
  pointer-events: none;
}

.withdrawalDialog > * {
  pointer-events: auto;
}

.withdrawalDialog-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(40, 38, 48, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.withdrawalDialog-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-height: min(90vh, 860px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body:has(.withdrawalDialog) {
  overflow: hidden;
}

.withdrawalDialog-card {
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 20px 50px rgba(41, 43, 49, 0.18),
    0 8px 20px rgba(41, 43, 49, 0.08);
  border: 1px solid #e8ecf1;
  padding: 24px 24px 28px;
  color: #292831;
  font-family: inherit;
}

@media (min-width: 768px) {
  .withdrawalDialog-card {
    padding: 28px 32px 32px;
  }
}

.withdrawalDialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.withdrawalDialog-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: #292831;
}

.withdrawalDialog-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.withdrawalDialog-close:hover {
  background: #e5e7eb;
  color: #374151;
}

.withdrawalDialog-description {
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #6b7280;
}

.withdrawalDialog-field {
  margin-bottom: 16px;
}

.withdrawalDialog-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #292831;
}

.withdrawalDialog-field input[type="text"],
.withdrawalDialog-field input[type="email"] {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: #292831;
  background: #fff;
}

.withdrawalDialog-field input[type="text"]:focus,
.withdrawalDialog-field input[type="email"]:focus {
  outline: none;
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.2);
}

.withdrawalDialog-readonly {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
  color: #292831;
  background: #f9fafb;
}

.withdrawalDialog-submit {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  background: #91c991;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}

.withdrawalDialog-submit:hover {
  background: #7fb87f;
}

.withdrawalDialog-cancel {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 0.9rem;
  color: #2563eb;
  text-decoration: none;
}

.withdrawalDialog-cancel:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .withdrawalDialog-backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(40, 38, 48, 0.58);
  }
}
