.ajax-error {
  opacity: .3;
}

input::-ms-clear {
  display: none;
}

input[type='number'] {
  -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.ajax-error > i,
.ajax-error > small {
  display: none !important;
}

.ajax-error > .form-control,
.ajax-error > .form-control:focus {
  border-color: #d7d7d7 !important;
  background-color: #cecece;
}

body.no-scroll {
  overflow: hidden;
  /*position: fixed;*/
  /*top: 0;*/
  /*left: 0;*/
  /*width: 100%;*/
  /*height: 100%;*/
}

body.external.no-scroll {
  position: static;
}

.custom-radio:not(:checked),
.custom-radio:checked,
.custom-checkbox:not(:checked),
.custom-checkbox:checked {
  position: fixed;
  z-index: -1;
  left: -9999px;
}

.custom-radio:not(:checked) ~ label,
.custom-radio:checked ~ label,
.custom-checkbox:not(:checked) ~ label,
.custom-checkbox:checked ~ label {
  position: relative;
  padding: 0 30px 0 30px;
  width: 100%;
}

.custom-checkbox.tick:not(:checked) ~ label,
.custom-checkbox.tick:checked ~ label {
  padding: 0 15px 0 30px;
}

.custom-radio:not(:checked) ~ label::before,
.custom-radio:checked ~ label::before,
.custom-checkbox:not(:checked) ~ label::before,
.custom-checkbox:checked ~ label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -10px;
  width: 20px;
  height: 20px;
  border: 1px solid #d7d7d7;
  background-color: #fff;
}

.custom-checkbox.tick:not(:checked) ~ label::before,
.custom-checkbox.tick:checked ~ label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -10px;
  width: 30px;
  height: 30px;
  border: 2px solid #dfdee5;
  background-color: #fff;
}

.custom-radio:not(:checked) ~ label::before,
.custom-radio:checked ~ label::before {
  border-radius: 10px;
}

.custom-radio:not(:checked) ~ label::after,
.custom-radio:checked ~ label::after,
.custom-checkbox:not(:checked) ~ label::after,
.custom-checkbox:checked ~ label::after {
  content: "";
  position: absolute;
  top: 50%;
  margin-top: -5px;
  left: 5px;
  background-color: #333;
  width: 10px;
  height: 10px;
  -webkit-transition: all .2s;
  -o-transition: all .2s;
  transition: all .2s;
}

.custom-checkbox.tick:not(:checked) ~ label::after,
.custom-checkbox.tick:checked ~ label::after {
  content: "\2713";
  font-weight: bold;
  top: 50%;
  margin-top: -6px;
  left: 8px;
  background-color: transparent;
  font-size: 18px;
}

.custom-radio:not(:checked) ~ label::after,
.custom-radio:checked ~ label::after {
  border-radius: 100%;
}

.custom-radio.input-right:not(:checked) ~ label,
.custom-radio.input-right:checked ~ label,
.custom-checkbox.input-right:not(:checked) ~ label,
.custom-checkbox.input-right:checked ~ label {
  padding-left: 0;
  padding-right: 25px;
}

.custom-radio.input-right:not(:checked) ~ label::before,
.custom-radio.input-right:checked ~ label::before,
.custom-checkbox.input-right:not(:checked) ~ label::before,
.custom-checkbox.input-right:checked ~ label::before {
  right: 0;
  left: auto;
}

.custom-radio.input-right:not(:checked) ~ label::after,
.custom-radio.input-right:checked ~ label::after,
.custom-checkbox.input-right:not(:checked) ~ label::after,
.custom-checkbox.input-right:checked ~ label::after {
  right: 5px;
  left: auto;
}

.custom-radio:not(:checked) ~ label::after,
.custom-checkbox:not(:checked) ~ label::after {
  opacity: 0;
  -webkit-transform: scale(0);
  -ms-transform: scale(0);
      transform: scale(0);
}

.custom-radio:checked ~ label::after,
.custom-checkbox:checked ~ label::after {
  opacity: 1;
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
      transform: scale(1);
}

.custom-radio:disabled ~ label,
.custom-checkbox:disabled ~ label {
  cursor: not-allowed;
}

.custom-checkbox.top:not(:checked) ~ label::before,
.custom-checkbox.top:checked ~ label::before {
  top: 5px;
  margin-top: 0;
}

.custom-checkbox.top:not(:checked) ~ label::after,
.custom-checkbox.top:checked ~ label::after {
  top: 10px;
  margin-top: 0;
}

.custom-select {
  position: relative;
  background-color: #fff;
}

.custom-select select {
  position: relative;
  z-index: 1;
  background: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: #000;
  appearance: none;
}

.custom-select select::-ms-expand {
  display: none;
}

.custom-select-arrow {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 34px;
}

.custom-select-arrow::before,
.custom-select-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 12px;
  height: 1px;
  background-color: #333;
}

.custom-select-arrow::before {
  left: 7px;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
      transform: rotate(45deg);
}

.custom-select-arrow::after {
  right: 7px;
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
      transform: rotate(-45deg);
}

/* Smooth change to a better arrow */
/* [ */
.custom-select-new-arrow {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 30px;
}

.custom-select-new-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 9px;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-bottom: 1px solid #333;
  border-right: 1px solid #333;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
      transform: rotate(45deg);
}

/* ] */
.hide-text {
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
}

::-webkit-input-placeholder {
  color: #646464;
}

:-moz-placeholder {
  color: #646464;
}

::-moz-placeholder {
  color: #646464;
}

:-ms-input-placeholder {
  color: #646464;
}

small:empty {
  display: none;
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px white inset !important;
}
