.input-field {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  width: 100%;
}

.input-field:focus {
  outline: none;
}

.input-field > label, .input-group > label {
  color: #808080;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.input-field__input {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 100%;
  height: 46px;
  border-radius: 5px;
  border: 1px solid #e8e9eb;
  background-color: #f7f8f9;
  padding: 12px;
  box-sizing: border-box;
  justify-content: space-between;
}

.select.multiple .input-field__input {
  height: auto;
  min-height: 46px;
  max-height: 96px;
  padding: 10px;
}

.input-field__input_file {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

.input-field__input .icon_disabled {
  flex-basis: 16px;
  display: none;
  margin-left: 11px;
}

.input-field.focus .input-field__input {
  border: 2px solid var(--default-oli);
  background-color: #f7f8f9;
  padding: 11px;
}

.select.multiple .input-field.focus .input-field__input {
  padding: 9px;
}

.input-field.focus .input-field__input svg path {
  fill: var(--default-oli);
}

.input-field.rounded .input-field__input {
  border-radius: 40px;
  padding: 13px 15px;
}

.input-field[disabled] .input-field__input,
.input-field[readonly] .input-field__input,
.select[disabled] .input-field__input,
.textarea-field[disabled] .textarea-field__textarea
{
  background-color: #e8e9eb;
}

.input-field[disabled] .icon_disabled,
.input-field[readonly] .icon_disabled,
.select[disabled] .input-field .icon_disabled
{
  display: inline-flex;
}

.input-field[disabled] .input-field__input.dropdown-icon:after,
.select[disabled] .input-field__input.dropdown-icon:after
{
  display: none;
}

.input-field input {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
}

.input-field input,
.input-field input::placeholder {
  font-size: 16px;
  font-weight: 400;
  line-height: 16px;
}

.input-field input::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

.input-field input:focus {
  outline: none;
}

.input-field__dropdown {
  position: absolute;
  left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 5px;
  background-color: #ffffff;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.select .input-field::after {
  position: absolute;
  bottom: -30px;
  left: 0;
  width: 100%;
  height: 30px;
  content: "";
  pointer-events: none;
  z-index: 2;
}

.dropdown-icon:after {
  position: absolute;
  content: "";
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 6px 0 6px;
  border-color: #d7d7d7 transparent transparent transparent;
}

.input-field.focus .dropdown-icon:after {
  right: 7px;
  transform: translateY(-50%) rotate(180deg);
  border-color: var(--default-oli) transparent transparent transparent;
}

.btn {
  width: 100%;
  height: 46px;
  background-color: var(--default-oli);
  color: white;
  font-size: 16px;
  font-weight: 700;
  line-height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  appearance: none;
  -webkit-appearance: none;
  border: none;
}

.btn:active {
  box-shadow: inset 0 0.6em 2em -0.3em rgba(0, 0, 0, 0.15), inset 0 0 0 0.05em rgba(255, 255, 255, 0.12);
}

a.btn {
  text-decoration: none;
}

.btn .fas {
  color: white;
}

.btn:disabled {
  background-color: #e8e9eb;
  color: rgba(0, 0, 0, 0.3);
}

.btn:not(:disabled):hover,
.btn:not(:disabled):focus {
  cursor: pointer;
}

.btn:not(:disabled):focus {
  outline: none;
}

.btn.cancel {
  background-color: #E8E9EB;
  color: var(--default-dark);
}

.btn.cancel .fas {
  color: var(--default-dark);
}

.btn.cancel:not(.btn_oli) i.icon_minus {
  filter: brightness(35%);
}

.btn.cancel:hover,
.btn.cancel:focus {
  background-color: #DBDCDE;
  color: var(--default-dark);
}

.btn.cancel:hover .fas {
  color: var(--default-dark);
}

.btn_oli {
  background-color: var(--default-oli) !important;
}

.btn_oli:hover,
.btn_oli:active {
  background-color: var(--default-oli) !important;
}

.btn.loading {
  color: transparent !important;
  background-image: url('/static/loader.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 50px auto;
}

.oli-btn {
  width: 46px;
  height: 46px;
  /*border: 1px solid #e8e9eb;*/
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  outline: none;
}

.oli-btn:active,
.oli-btn:focus {
  outline: none;
}

.oli-btn:not(:disabled):hover {
  cursor: pointer;
  background-color: var(--default-oli);
  border-color: transparent;
  color: white;
}

.oli-btn:not(:disabled):hover .oli-btn__icon,
.oli-btn:not(:disabled):hover .oli-btn__icon svg path {
  color: white;
  fill: white;
}

.oli-btn:disabled > * {
  pointer-events: none;
  opacity: 0.6;
}

.oli-btn__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 17px;
  height: 17px;
}

.oli-btn__icon svg,
.oli-btn__icon img {
  max-width: 100%;
  max-height: 100%;
}

.oli-btn.responsive {
  padding: 12px 20px;
  width: auto;
  height: auto;
  color: #808080;
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
}

.oli-btn.rounded {
  border-radius: 5px;
}

.oli-btn.sm {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
}

.oli-btn.lg {
  width: 60px;
  height: 60px;
}

.oli-btn.sm .oli-btn__icon {
  width: 12px;
  height: 12px;
}

.oli-btn.lg .oli-btn__icon {
  width: 20px;
  height: 20px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
}

.checkbox__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid #e6e8eb;
  background-color: #f7f8f9;
  user-select: none;
  cursor: pointer;
}

.checkbox__icon div {
  display: none;
}

.checkbox__label {
  align-self: stretch;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  margin-left: 10px;
}

.checkbox:focus {
  outline: none;
}

.checkbox:focus .checkbox__icon {
  border: 2px solid var(--default-oli);
}

.checkbox input:checked + .checkbox__icon {
  background-color: var(--default-oli);
}

.checkbox input:checked + .checkbox__icon div {
  display: block;
}

.checkbox input:disabled + .checkbox__icon,
.checkbox input:disabled ~ .checkbox__label {
  cursor: default;
  opacity: 0.5;
}

button .fas {
  color: var(--default-dark);
}

button:hover .fas {
  color: white;
}

.form-actions {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  margin: 40px 0;
}

/* Textarea */
.textarea-field {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  width: 100%;
}

.textarea-field__textarea {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  border: 1px solid #e8e9eb;
  background-color: #f7f8f9;
  box-sizing: border-box;
  justify-content: space-between;
  overflow: hidden;
  padding: 1px;
}

.textarea-field textarea {
  flex: 1;
  appearance: none;
  background: transparent;
  border: none;
  min-height: 46px;
  resize: vertical;
  padding: 11px;
}

.textarea-field.focus .textarea-field__textarea {
  padding: 0;
}

.textarea-field.focus .textarea-field__textarea {
  border: 2px solid var(--default-oli);
  background-color: #f7f8f9;
}

.textarea-field textarea,
.textarea-field textarea::placeholder {
  font-size: 16px;
  font-weight: 400;
  line-height: 16px;
}

.textarea-field textarea::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

.textarea-field textarea:focus {
  outline: none;
}

.textarea-field > label {
  color: #808080;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.add-remove-btn {
  width: 46px;
  height: 46px;
  background-color: #8E3AD6;
  border-radius: 5px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  cursor: pointer;
}

.add-remove-btn .fas {
  color: white;
}

.input-field__row {
  display: flex;
  flex-direction: row;
}

.input-field__add-on {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  min-width: 46px;
  flex-shrink: 0;
  background-color: #e8e9eb;
  padding: 0 12px;
}

.input-field__add-on_prepend {
  border-radius: 5px 0 0 5px;
}

.input-field__add-on_append {
  border-radius: 0 5px 5px 0;
  order: 1;
}

.input-field__add-on_prepend:not(.d-none) ~ .input-field__input {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-field__add-on_append:not(.d-none) ~ .input-field__input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.switch input:disabled + .slider {
  cursor: default;
  opacity: 0.5;
}