/* -------------------------------------- */
/* ############### Custom ############### */
/* -------------------------------------- */

// General
a { @include transition($transition-base); }

a:focus,
a:active { outline: none !important; }

p { margin-bottom: 20px; }

// Status Indicator
.square-8 {
  display: inline-block;
  width: 8px;
  height: 8px;
}

.square-10 {
  display: inline-block;
  width: 10px;
  height: 10px;
}

.more {
  color: #fff;
  opacity: .2;
  display: inline-block;
  padding: 2px 5px;

  i { line-height: 0; }

  &:hover,
  &:focus {
    color: #fff;
    opacity: .5;
  }
}

// Overlay
.overlay { position: relative; }
.overlay-body {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

// Grid
.row-sm {
  margin-left: -10px;
  margin-right: -10px;
  > div {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.row-xs {
  margin-left: -5px;
  margin-right: -5px;
  > div {
    padding-left: 5px;
    padding-right: 5px;
  }
}

// Input Group
.input-group-addon { border-radius: 0; }

// Image Option
.img-option {
  display: flex;
  margin-bottom: 15px;
  position: relative;
  flex-direction: row;

  .img-option-link {
    display: block;
    color: #fff;
    background-color: #000;
    opacity: .65;

    div {
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;

      @include media-breakpoint-up(sm) {
        width: 60px;
        height: 60px;
      }
    }

    i {
      font-size: 20px;
      line-height: 0;

      @include media-breakpoint-up(sm) {
        font-size: 24px;
      }
    }

    &:hover,
    &:focus { opacity: 1; }

  }
}

.img-option-sm {
  .img-option-link {
    div {
      width: 40px;
      height: 40px;
    }
    i { font-size: 18px; }
  }
}

// Icon
.iconwrap {
  display: inline-block;
  line-height: 0;
  border: 1px solid transparent;
  text-align: center;

  .fa,
  .icon {
    display: inline-block;
    position: relative;
    top: -.5px;
  }

  // iconwrap-size($padding, $icon-size);
  &.icon-16 { @include iconwrap-size(6px, 16px); }
  &.icon-18 { @include iconwrap-size(8px, 18px); }
  &.icon-20 { @include iconwrap-size(8px, 20px); }
  &.icon-24 { @include iconwrap-size(10px, 24px); }
  &.icon-28 { @include iconwrap-size(10px, 28px); }
  &.icon-32 { @include iconwrap-size(12px, 32px); }
  &.icon-36 { @include iconwrap-size(12px, 36px); }
  &.icon-40 { @include iconwrap-size(14px, 40px); }
  &.icon-44 { @include iconwrap-size(14px, 44px); }
  &.icon-48 { @include iconwrap-size(16px, 48px); }
}

.icon {
  &.tx-size-64 {
    line-height: 0;
    &::before { line-height: 45px; }
  }
}


.section-label,
.section-label-sm {
  display: block;
  font-weight: 700;
  color: $gray-600;
  text-transform: uppercase;
  letter-spacing: 1px;

  &.tx-gray-600 { color: $gray-600; }
  &.tx-gray-500 { color: $gray-500; }
}

.section-label { font-size: 12px; }
.section-label-sm { font-size: 11px; }



/********** RTL SUPPORT **********/
[dir="rtl"] {
  .section-label {
    text-align: right;
  }
}
