.growfund-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.growfund-modal.is-active {
  display: flex;
  margin: auto;
  width: 100%;
  height: 100%;
  z-index: 1000;
  transition-duration: 0.3s;
}

.growfund-modal-overlay {
  inset: 0;
  background: var(--growfund-bg-overlay);
  backdrop-filter: blur(10px);
  position: fixed;
  overflow-y: auto;
}
.growfund-modal-title {
  font-size: var(--growfund-font-size-lg);
  font-weight: var(--growfund-font-weight-semibold);
  line-height: 20px;
  color: var(--growfund-text-primary);
}

.growfund-modal-content {
  background: var(--growfund-bg-surface-secondary);
  border-radius: var(--growfund-radius-lg);
  display: flex;
  flex-direction: column;
  max-width: 100%;
  padding: var(--growfund-spacing-4);
  position: relative;
  width: auto;
  display: inline-flex;
  max-height: 90vh;
  z-index: 1;
}

.growfund-modal-header,
.growfund-modal-footer {
  padding-bottom: var(--growfund-spacing-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.growfund-modal-header {
  border-bottom: 1px solid var(--growfund-border-border);
}
.growfund-modal-header-left {
  display: flex;
  gap: var(--growfund-spacing-3);
  align-items: center;
}

.growfund-modal-footer {
  border-top: 1px solid var(--growfund-border-border);
  display: flex;
  gap: var(--growfund-spacing-5);
  padding-top: var(--growfund-spacing-5);
}
.growfund-modal-cancel-button,
.growfund-modal-apply-button {
  padding: 10px var(--growfund-spacing-5);
  font-size: var(--growfund-font-size-md);
  border-radius: var(--growfund-radius-md);
  cursor: pointer;
  width: 100%;
  background-color: var(--growfund-bg-gray-4);
  color: var(--growfund-text-primary);
  border: 1px solid var(--growfund-gray-8);
}
.growfund-modal-apply-button {
  background-color: var(--growfund-bg-fill-brand);
  color: var(--growfund-text-surface);
  border: none;
}
.growfund-modal-cancel-button {
  background-color: var(--growfund-bg-gray-1);
  color: var(--growfund-text-primary);
  border: none;
}

.growfund-modal-body {
  flex-grow: 1;
  overflow-y: auto;
  width: max-content;
  margin-top: var(--growfund-spacing-4);
  max-height: calc(90vh - 120px);
}
.growfund-modal-close-button-icon {
  height: 20px;
  width: 20px;
}
