a.disabled {
  color: #9c9c9c;
  pointer-events: none;
}

[v-cloak] {
  .vcloak {
    &--visible {
      display: block;
    }
    &--hidden {
      display: none;
    }
  }
}
.vcloak {
  &--visible {
    min-height: 60px;
    display: none;
  }
}

.loading-container {
  min-height: 5rem;
  position: relative;
  &:before {
    display: block;
    content: '';
    position: absolute;
    left: calc(50% - 20px);
    top: calc(50% - 20px);
    box-sizing: border-box;
    height: 40px;
    width: 40px;
    border: 0px solid #d0d0d0;
    border-radius: 50%;
    box-shadow: 0 -12px 0 16px #d0d0d0 inset;
    animation: rotate 1s infinite linear;
    z-index: 3;
  }
  &:after {
    display: block;
    content: '';
    position: absolute;
    z-index: 2;
    background-color: rgba(241, 241, 241, 0.5);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
  }
  &--white {
    &:after {
      background-color: white;
    }
  }
}


.loading-button {
  pointer-events: none;
  position: relative;
  &:before {
    display: block;
    content: '';
    position: absolute;
    left: calc(50% - 8px);
    top: calc(50% - 8px);
    box-sizing: border-box;
    height: 16px;
    width: 16px;
    border: 0px solid #fff;
    border-radius: 50%;
    box-shadow: 0 -4px 0 6px #fff inset;
    animation: rotate 1s infinite linear;
    z-index: 3;
  }
  &:after {
    display: block;
    content: '';
    position: absolute;
    z-index: 2;
    background-color: inherit;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
  }
}

.button-default {
  &.loading-button:before {
    box-shadow: inset 0 -4px 0 6px #6f6f6f;
  }
}

.loading-inline {
  display: inline-block;
  pointer-events: none;
  position: relative;
  &:before {
    display: block;
    content: '';
    position: absolute;
    left: calc(50% + 1px);
    top: calc(50% - 11px);
    box-sizing: border-box;
    height: 14px;
    width: 14px;
    border: 0px solid #d0d0d0;
    border-radius: 50%;
    box-shadow: 0 -3px 0 5px #d0d0d0 inset;
    animation: rotate 1s infinite linear;
    z-index: 3;
  }
  &:after {
    display: block;
    content: '';
    position: absolute;
    z-index: 2;
    background-color: inherit;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
  }
}


@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.table-loading {
  position: relative;
}
.table-loading .table-loader-wrap {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 9;
}
.table-loading .table-loader-wrap .table-loader-center {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
}
.table-loading .wp-list-table,
.table-loading .tablenav {
  opacity: 0.4;
}
.table-loader {
  font-size: 10px;
  margin: 50px auto;
  text-indent: -9999em;
  width: 11em;
  height: 11em;
  border-radius: 50%;
  background: #ffffff;
  background: -moz-linear-gradient(left, #ffffff 10%, rgba(255, 255, 255, 0) 42%);
  background: -webkit-linear-gradient(left, #ffffff 10%, rgba(255, 255, 255, 0) 42%);
  background: -o-linear-gradient(left, #ffffff 10%, rgba(255, 255, 255, 0) 42%);
  background: -ms-linear-gradient(left, #ffffff 10%, rgba(255, 255, 255, 0) 42%);
  background: linear-gradient(to right, #ffffff 10%, rgba(255, 255, 255, 0) 42%);
  position: relative;
  -webkit-animation: tableLoading 1s infinite linear;
  animation: tableLoading 1s infinite linear;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
.table-loader:before {
  width: 50%;
  height: 50%;
  background: #ffffff;
  border-radius: 100% 0 0 0;
  position: absolute;
  top: 0;
  left: 0;
  content: '';
}
.table-loader:after {
  background: #f4f4f4;
  width: 75%;
  height: 75%;
  border-radius: 50%;
  content: '';
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}
@-webkit-keyframes tableLoading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes tableLoading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
