.sub-dialog {
  max-width: min(90vw, 1100px) !important;
}

.sub-wrapper {
  display: flex;
  flex-direction: column;
  margin: 18px 4px !important;
  margin-bottom: 48px !important;
  align-items: center;
}

.sub-row {
  display: flex;
  flex-direction: column;
  padding: 8px 16px;
  margin-top: 16px;
  margin-bottom: 8px;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  align-items: center;

  .sub-column {
    display: flex;
    flex-direction: row;
    align-items: center;
    color: hsl(45, 100%, 50%);
    margin-bottom: 4px;
    width: 100%;

    svg {
      flex-shrink: 0;
      transform: translateY(1px);
    }

    .sub-value {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 2px;

      p {
        font-weight: bolder;
      }
    }

    &:first-child {
      margin-bottom: 8px;
    }

    &:last-child {
      margin-bottom: 0;
    }
  }
}

.plan-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 36px 64px;
  border-radius: var(--radius);
  border: 2px solid hsl(var(--border));
  color: hsl(var(--text));
  min-width: 294px;

  &.pro {
    border-color: hsl(var(--text-secondary));
  }

  &.enterprise {
    border-color: hsl(var(--accent));

    .desc {
      margin-top: 12px;
    }
  }

  .title {
    text-align: center;
    font-size: 16px;
    margin: 4px;
  }

  .price {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: 2px;
  }

  .desc {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 24px 0;

    div {
      display: flex;
      flex-direction: row;
      align-items: center;

      svg {
        flex-shrink: 0;
        transform: translateY(1px);
      }
    }
  }

  .action {
    margin-top: auto !important;
  }
}

.upgrade-wrapper {
  margin: 24px auto 8px;

  .price {
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
    transform: translateY(12px);
  }
}

@media (max-width: 460px) {
  .plan {
    scale: .95;
    min-width: 0 !important;
  }

  .plan-wrapper {
    gap: 8px;
  }
}
