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

.ia-radioGroup .MuiFormControlLabel-root .MuiButtonBase-root {
  padding: 3px 8px;
  padding-left: 0px !important;

  &.Mui-focusVisible {
    outline: none;

    .MuiSvgIcon-root:first-of-type {
      outline: 2px solid var(--ia-focus-color, #4259ee);
      outline-offset: 2px;
      border-radius: 50%;
    }
  }

  &:focus:not(.Mui-focusVisible) {
    outline: none;

    .MuiSvgIcon-root {
      outline: none;
    }
  }

  &.Mui-disabled.Mui-focusVisible {
    outline: none;

    .MuiSvgIcon-root {
      outline: none;
    }
  }
}

.MuiFormGroup-root.orientation-row {
  gap: 8px;
  flex-direction: row;
  .ia-radioButton {
    &:first-child {
      margin-left: 0px !important;
    }

    &:last-child {
      margin-right: 0px !important;
    }
  }
}

.MuiFormGroup-root.orientation-column {
  gap: 8px;
  flex-direction: column;
  .ia-radioButton {
    margin: 0 !important;
  }
}

.ia-radioButton {
  // margin: 0 0 0 -8px;
  .MuiSvgIcon-root {
    width: 16px;
    height: 16px;
    border: 1px solid $deactivateColor;
    border-radius: 50%;
  }
  path {
    display: none;
  }
}

.ia-radioButton:hover .MuiSvgIcon-root {
  border: 1px solid $primaryColor;
}
.ia-radioButton-disabled .MuiSvgIcon-root {
  border: 1px solid $disabledSecondaryBorder !important;
  background: $textButtonPrimaryBg;
}

.ia-radioButton.ia-radioButton-disabled .MuiSvgIcon-root:nth-child(2) {
  width: 10px;
  height: 10px;
  padding: 0;
  margin: 0;
  background: $accordionBgBackground !important;
  border-radius: 50%;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  top: 0;
  border: none;
  bottom: 0;
  border: 1px solid $accordionBgBackground !important;
}

.ia-radioButton .MuiSvgIcon-root:nth-child(2) {
  width: 10px;
  height: 10px;
  padding: 0;
  margin: 0;
  background: $primaryColor;
  border-radius: 50%;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  top: 0;
  border: none;
  bottom: 0;
}

.ia-radioButton .Mui-checked .MuiSvgIcon-root {
  width: 16px;
  height: 16px;
  border: 1px solid $primaryColor;
  border-radius: 50%;
  background: transparent;
  path {
    display: none;
  }
}

.ia-radioButton .Mui-checked .MuiSvgIcon-root:nth-child(2) {
  width: 10px;
  height: 10px;
  padding: 0;
  margin: 0;
  background: $primaryColor;
  border-radius: 50%;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  top: 0;
  border: none;
  bottom: 0;
  // border: 1px solid $accordionBgBackground !important;
}
.ia-radioButton {
  .MuiTypography-root {
    font-size: 14px;
    color: $grayBadge;
    font-family: $fontFamily;
    font-weight: 500;
  }

  .MuiRadio-root.Mui-checked + .MuiTypography-root {
    color: $mainFontColor;
  }
}

.ia-radioGroup-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ia-radioGroup-label {
  color: $chatBotTextColor;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-transform: capitalize;
}
