.grid-header__checkbox {
  min-width: 24px;
  max-width: 24px;
  min-height: 24px;
  max-height: 24px;
  cursor: pointer;
  appearance: none;
}

.grid-header__checkbox:after {
  font-family: 'Material Symbols Outlined';
  font-size: 24px;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  position: absolute;
  top: 50%;
  left: 8px;
  display: inline-block;
  max-width: 24px;
  transform: translateY(-50%);
  white-space: nowrap;
  letter-spacing: normal;
  text-transform: none;
  word-wrap: normal;
  overflow: hidden;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

.grid-header__checkbox:not(:checked):after {
  content: 'check_box_outline_blank';
  color: var(--color-gray-400);
}

.grid-header__checkbox:checked:after {
  content: 'check_box';
  color: var(--color-brand-blue-600);
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* CHECKBOX ELEMENT */
.enquiry-checkbox__root {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: row;

  .enquiry-checkbox__label {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 14px;
    margin-left: 8px;
    letter-spacing: 0.2px;
    cursor: pointer;
    user-select: none;
    color: var(--color-gray-900);

    &:empty {
      display: none;
    }
  }

  &.indeterminate {
    .enquiry-checkbox__controller {
      &::after {
        content: 'indeterminate_check_box';
      }
    }
  }

  .enquiry-checkbox__controller {
    position: relative;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    outline: none;
    cursor: pointer;
    user-select: none;
    appearance: none;

    &::after {
      font-family: 'Material Symbols Outlined';
      font-size: 24px;
      font-weight: 400;
      font-style: normal;
      line-height: 1;
      display: inline-block;
      min-width: 24px;
      max-width: 24px;
      min-height: 24px;
      max-height: 24px;
      transition: all 0.25s ease-in-out;
      white-space: nowrap;
      letter-spacing: normal;
      text-transform: none;
      word-wrap: normal;
      overflow: hidden;
      content: 'check_box_outline_blank';
      font-variation-settings: 'FILL' 1;
      direction: ltr;
      -webkit-font-feature-settings: 'liga';
      -webkit-font-smoothing: antialiased;
      color: var(--color-gray-400);
    }

    &:focus-visible {
      &::after {
        border-radius: 4px;
        outline: 1px dotted var(--color-brand-blue-800);
      }
    }

    &:checked {
      &::after {
        content: 'check_box';
        color: var(--color-brand-blue-600);
      }
    }

    &:disabled {
      cursor: not-allowed;

      &::after {
        cursor: not-allowed;
        color: var(--color-gray-200);
      }

      & + .enquiry-checkbox__label {
        cursor: not-allowed;
        color: var(--color-gray-200);
      }
    }
  }

  .enquiry-checkbox__helper {
    font-family: var(--font);
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    line-height: 12px;
    position: absolute;
    top: calc(100% - 2px);
    left: 6px;
    letter-spacing: 0.2px;
    user-select: none;
    color: var(--color-gray-500);

    &:empty {
      display: none;
    }
  }

  &.small {
    .enquiry-checkbox__label {
      margin-left: 4px;
    }

    .enquiry-checkbox__controller {
      width: 20px;
      height: 20px;

      &::after {
        font-size: 20px;
        min-width: 20px;
        max-width: 20px;
        min-height: 20px;
        max-height: 20px;
      }
    }
  }

  &.large {
    .enquiry-checkbox__label {
      margin-left: 12px;
    }

    .enquiry-checkbox__controller {
      width: 28px;
      height: 28px;

      &::after {
        font-size: 28px;
        min-width: 28px;
        max-width: 28px;
        min-height: 28px;
        max-height: 28px;
      }
    }
  }

  &.xx-large {
    .enquiry-checkbox__label {
      margin-left: 16px;
    }

    .enquiry-checkbox__controller {
      width: 32px;
      height: 32px;

      &::after {
        font-size: 32px;
        min-width: 32px;
        max-width: 32px;
        min-height: 32px;
        max-height: 32px;
      }
    }
  }
}
