.modal {
  max-width: 26rem;
}

.modalDialog {
  overflow: hidden;
  height: min(38rem, 80vh);
  background-color: var(--color-background-secondary);
}

.transitionWrapper {
  overflow: hidden;
  flex-grow: 1;
  min-height: 0;
  margin-top: 2.5rem;
}

.transition {
  overflow: hidden;
  height: 100%;
}

.modalContent {
  display: flex;
  flex-direction: column;
  max-height: 70vh;
  padding: 0;
}

.fadeMask {

  --fade-mask-color: var(--color-background-secondary);

  position: absolute;
  z-index: 2;
  width: 100%;
}

.tabList {
  margin: 0.5rem 1rem;
  margin-bottom: 0;
}

.tab {
  gap: 0.125rem;
  padding: 0.25rem 1.25rem;
  font-size: 0.875rem;
}

.tabContent {
  overflow: auto;
  flex-grow: 1;

  min-height: 0;
  padding: 1rem;
  padding-top: 3.125rem;
}

.editorBlock {
  position: relative;

  overflow: hidden;
  display: flex;
  flex-direction: column;

  min-height: 100%;
  padding: 0.75rem;
  border-radius: 1.5rem;

  background: var(--color-background);
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05);
}

.footer {
  position: relative;
  display: flex;
  padding: 0 1rem 1rem;

  &::before {
    pointer-events: none;
    content: "";

    position: absolute;
    bottom: 100%;
    left: 0;

    width: calc(100% - 2rem);
    height: 1.5rem;
    margin-inline: 1rem;

    background: linear-gradient(to top, var(--color-background-secondary) 0%, transparent 100%);
  }
}

.applyButton {
  flex: 1;
  margin-inline-end: 0.5rem;
  border-radius: 2rem;
}

.sendButton {
  overflow: visible;
  flex-shrink: 0;

  :global(.icon) {
    margin-inline-end: 0;
    font-size: 1.75rem;
  }
}

.paidStarsBadge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);

  height: auto;
  margin-top: 0.625rem;
  padding-block: 0.25rem;
  padding-inline: 0.375rem;

  font-size: 0.8125rem;
  font-weight: var(--font-weight-semibold) !important;
  line-height: 1;

  &.hidden {
    pointer-events: none;
    opacity: 0;
  }

  :global(.icon) {
    margin-inline-start: 0;
    margin-inline-end: 0.0625rem;
    font-size: 0.875rem;
  }
}

.paidStarsBadgeText {
  display: inline-flex;
  align-items: center;
}

.helpButton {
  position: absolute;
  z-index: 3;
  top: 0.875rem;
  right: 1.375rem;
}

:global {
  .CustomSendMenu {
    bottom: 1rem !important;
  }
}
