@import "../../styles/index.scss";

.impact-tooltip-container {
  .MuiTooltip-tooltip {
    font-family: $fontFamily;
    font-size: 14px;
    line-height: 21px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    min-height: 30px;
    // min-width: 50px;
    box-shadow: 0px 0px 12px 0px #1a277c24;
    word-break: break-word;
    white-space: pre-wrap;
    text-align: left;
  }

  .MuiTooltip-arrow {
    margin-bottom: -0.65em !important;
  }
}

.primary-tooltip {
  .MuiTooltip-tooltip {
    background: $primaryColor;
    color: $whiteColor;
  }

  .MuiTooltip-arrow {
    color: $primaryColor;
  }
}

.secondary-tooltip {
  .MuiTooltip-tooltip {
    background: $whiteColor;
    color: $primaryColor;
  }

  .MuiTooltip-arrow {
    color: $whiteColor;
  }
}

.tertiary-tooltip {
  .MuiTooltip-tooltip {
    background: $offDarkColor;
    color: $offWhiteColor;
  }

  .MuiTooltip-arrow {
    color: $offDarkColor;
  }
}

// Feature tooltip: gradient border, gradient background, title + description (matches "New feature" design)
.feature-tooltip {
  .MuiTooltip-tooltip {
    padding: 0;
    min-height: unset;
    border-radius: 12px;
    background: linear-gradient(274.01deg, #fdf0ec 0.91%, #fcf8ea 103.39%)
        padding-box,
      linear-gradient(270deg, #687af1 0%, #ed7955 100%) border-box;
    border: 1px solid transparent;
    box-shadow: 0 0 20px rgba(104, 122, 241, 0.2),
      0 0 40px rgba(237, 121, 85, 0.12);
    color: #1e293b;
    font-size: 14px;
    line-height: 1.4;
    max-width: 280px;
  }

  .impact-tooltip-feature-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
  }

  .impact-tooltip-feature-title {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    line-height: 1.3;
  }

  .impact-tooltip-feature-description {
    font-weight: 400;
    font-size: 14px;
    color: #1e293b;
    line-height: 1.45;
  }

  .MuiTooltip-arrow {
    color: #fdf0ec;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
  }
}

// tooltip wrapper
//MuiTooltip-popper MuiTooltip-popperInteractive MuiTooltip-popperArrow css-1avkpwt-MuiPopper-root-MuiTooltip-popper MuiPopper-root

//inside tooltip class used
//MuiTooltip-tooltip MuiTooltip-tooltipArrow MuiTooltip-tooltipPlacementTop css-1k51tf5-MuiTooltip-tooltip

//tool-tip arrow
//MuiTooltip-arrow css-kudwh-MuiTooltip-arrow
