/**
 * Copyright © INOVUA TRADING.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

@import './variables';

.#{$INOVUA_CHECKBOX_ROOT_CLASS} {
  user-select: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  outline: none;
  vertical-align: middle;

  &--inline-block {
    display: inline-flex;
  }

  &__icon-wrapper {
    display: flex; // makes the checkicon on middle
    svg {
      display: block;
    }
  }

  &--children-position-start {
    flex-flow: row-reverse;
  }

  &--rtl {
    direction: rtl;
  }

  &--read-only {
    cursor: auto;
  }

  &--disabled {
    cursor: auto;
    outline: none;
    pointer-events: none;
  }
}

.#{$INOVUA_CHECKBOX_ROOT_CLASS}--browser-native {
  padding: 0;
  margin: 0;
  display: inline-block;
}
