::-webkit-input-placeholder {
    color: #574c4a !important;
}
:-moz-placeholder {
    color: #574c4a !important;
    opacity: 1;
}
::-moz-placeholder {
    color: #574c4a !important;
    opacity: 1;
}
:-ms-input-placeholder {
    color: #574c4a !important;
}
::-ms-input-placeholder {
    color: #574c4a !important;
}
::placeholder {
    color: #574c4a !important;
}

/* Select */
select::-ms-expand {
    display: none;
}
select {
    outline: none;
}

/* Input */
input,
textarea {
    font-family: inherit !important;
    color: inherit !important;
    font-size: inherit;
    border: none;
    outline: none;
    resize: vertical;
    overflow: hidden;
}
input:valid,
textarea:valid,
input:focus,
textarea:focus,
input:active,
textarea:active {
    color: #005aa5;
    outline: none !important;
    box-shadow: none !important;
    overflow: auto;
}
button {
    font-size: inherit !important;
    letter-spacing: inherit !important;
    font-family: inherit !important;
    border: none !important;
    box-shadow: none !important;
    font-size: inherit !important;
}
.form {
    outline: none;
}
.form-group {
    overflow: hidden;
}
.input-wrapper {
    outline: none;
}

/* input file */
.input-file-row {
}
.input-file {
    position: relative;
    display: inline-block;
}
.input-file span {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    text-decoration: none;
    box-sizing: border-box;
    border: none;
}
.input-file input[type="file"] {
    position: absolute;
    z-index: -1;
    opacity: 0;
    display: block;
    width: 0;
    height: 0;
}

/* Focus */
.input-file input[type="file"]:focus + span {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Hover/active */
/* .input-file:hover span {
	background-color: #59be6e;
}
.input-file:active span {
	background-color: #2E703A;
} */

/* Disabled */
.input-file input[type="file"]:disabled + span {
    background-color: #eee;
}

/* Список c превью */
.input-file-list {
    padding: 10px 0;
}
.input-file-list-item {
    display: inline-block;
    width: 150px;
    vertical-align: top;
    position: relative;
    margin: 0 10px 10px 0;
}
.input-file-list-item img {
    width: 150px;
}
.input-file-list-name {
    text-align: center;
    display: block;
    font-size: 12px;
    text-overflow: ellipsis;
    overflow: hidden;
}
.input-file-list-remove {
    color: #fff;
    text-decoration: none;
    display: inline-block;
    position: absolute;
    padding: 0;
    margin: 0;
    top: 5px;
    right: 5px;
    background: #ff0202;
    width: 16px;
    height: 16px;
    text-align: center;
    line-height: 16px;
    border-radius: 50%;
}

/* type number */
/* mozilla */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
    margin: 0;
}
/* chrome */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
}

/* input file */
.input-file input[type="file"] {
    position: absolute;
    opacity: 0;
    display: block;
    width: 0;
    height: 0;
}
.field__file {
    opacity: 0;
    visibility: hidden;
    position: absolute;
}

/* Custom checkbox */
.custom-checkbox > input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}
.custom-checkbox > span {
    display: inline-flex;
    align-items: center;
    user-select: none;
}
.custom-checkbox.small-checkbox > span::before {
    cursor: pointer;
    transition: 0.2s;
    width: 21px;
    height: 21px;
    margin-right: 0.2em;
}
.custom-checkbox > span::before {
    content: "";
    display: inline-block;
    width: 1.3em;
    height: 1.3em;
    flex-shrink: 0;
    flex-grow: 0;
    border: 1px solid #adb5bd;
    border-radius: 0.2em;
    margin-right: 0.5em;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
}
custom-checkbox.black > input:checked + span::before {
    background-color: #005aa5;
}
.custom-checkbox.black-light > input:checked + span::before {
    background-color: #005aa5;
}
.custom-checkbox.black-thin > input:checked + span::before {
    background-color: #e3e7ecff;
}
.custom-checkbox.white > input:checked + span::before {
    background-color: #fff;
}
.custom-checkbox.light > input:checked + span::before {
    background-color: #f0f2f5ff;
}
.custom-checkbox.light-thin > input:checked + span::before {
    background-color: #f9f9fb;
}
.custom-checkbox.blue > input:checked + span::before {
    background-color: #0284c7ff;
}
.custom-checkbox.blue-light > input:checked + span::before {
    background-color: #88c4e3ff;
}
.custom-checkbox.blue-thin > input:checked + span::before {
    background-color: #e7f2f8ff;
}
.custom-checkbox.green > input:checked + span::before {
    background-color: #06b373;
}
.custom-checkbox.green-thin > input:checked + span::before {
    background-color: #b5d18fff;
}
.custom-checkbox.red > input:checked + span::before {
    background-color: #db3f3fff;
}
.custom-checkbox.red-light > input:checked + span::before {
    background-color: #e98c8cff;
}
.custom-checkbox.red-thin > input:checked + span::before {
    background-color: #f5e7e7;
}
.custom-checkbox > input:checked + span::before {
    border-color: transparent;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}
/* .custom-checkbox>input:disabled+span::before {
    background-color: #005aa5;
} */

/* Custom radio */
/*
<label class="custom-radio">
  <input type="radio" name="color" value="indigo">
  <span>Indigo</span>
</label>
*/
.custom-radio > input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}
.custom-radio > span {
    display: inline-flex;
    align-items: center;
    user-select: none;
}
.custom-radio > span::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    flex-grow: 0;
    border: 1px solid #adb5bd;
    border-radius: 50%;
    margin-right: 0.5em;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
}
.custom-radio > input:not(:disabled):not(:checked) + span:hover::before {
    border-color: #b3d7ff;
}
.custom-radio > input:not(:disabled):active + span::before {
    background-color: #b3d7ff;
    border-color: #b3d7ff;
}
.custom-radio > input:focus + span::before {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.custom-radio > input:focus:not(:checked) + span::before {
    border-color: #80bdff;
}
.custom-radio > input:checked + span::before {
    border-color: #0284c7ff;
    background-color: #0284c7ff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}
.custom-radio > input:disabled + span::before {
    background-color: #e9ecef;
}

/* Checkbox-slide */
.checkbox-slide {
    display: inline-block;
    line-height: 28px;
    position: relative;
    vertical-align: middle;
    user-select: none;
}
.checkbox-slide .checkbox-slide-switch {
    position: relative;
    display: inline-block;
    margin-top: 3px;
    box-sizing: border-box;
    width: 40px;
    height: 24px;
    border: 1px solid #dce1e7;
    border-radius: 30%/50%;
    vertical-align: top;
    background: #eee;
    /* transition: .2s; */
}
.checkbox-slide .checkbox-slide-switch:before {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    display: inline-block;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 3px 5px rgb(0 0 0 / 30%);
    /* transition: .15s; */
}
.checkbox-slide input[type="checkbox"],
.checkbox-slide input[type="radio"] {
    cursor: pointer;
    display: block;
    position: absolute;
    z-index: 99 !important;
    width: 100%;
    height: 100%;
    opacity: 0;
    margin: 0;
    left: 0;
    top: 0;
}
.checkbox-slide
    input[type="checkbox"]:not(:disabled):active
    + .checkbox-slide-switch:before,
.checkbox-slide
    input[type="radio"]:not(:disabled):active
    + .checkbox-slide-switch:before {
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.3);
}
/* small-checkbox-slide */
.checkbox-slide.small-checkbox-slide .checkbox-slide-switch {
    width: 30px;
    height: 20px;
    border: 1px solid #c7ced7;
    border-radius: 40px;
}
.checkbox-slide.small-checkbox-slide .checkbox-slide-switch:before {
    width: 20px;
    height: 20px;
    left: -6px;
    top: -2px;
}
.checkbox-slide.small-checkbox-slide
    input[type="checkbox"]:checked
    + .checkbox-slide-switch:before,
.checkbox-slide.small-checkbox-slide
    input[type="radio"]:checked
    + .checkbox-slide-switch:before {
    left: -3px;
}
/* checkbox-slide On Off */
.checkbox-slide.on-off .checkbox-slide-switch {
    width: 75px;
    height: 30px;
    border-radius: 30px;
    background: #f0f2f5;
    border-color: #d7dee7;
}
.checkbox-slide.on-off .checkbox-slide-switch:before {
    content: "";
    position: absolute;
    display: block;
    z-index: 2;
    top: -1px;
    left: -2px;
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 3px 5px rgb(0 0 0 / 30%);
    /* transition: .15s; */
}
.checkbox-slide.on-off
    input[type="checkbox"]:checked
    + .checkbox-slide-switch:before,
.checkbox-slide.on-off
    input[type="radio"]:checked
    + .checkbox-slide-switch:before {
    left: 28px;
}
.checkbox-slide.on-off .checkbox-slide-switch::after {
    content: "выкл";
    position: absolute;
    display: inline-block;
    z-index: 0;
    top: 1px;
    left: 30px;
    font-size: 16px;
    line-height: 25px;
}
.checkbox-slide.on-off
    input[type="checkbox"]:checked
    + .checkbox-slide-switch::after,
.checkbox-slide.on-off
    input[type="radio"]:checked
    + .checkbox-slide-switch::after {
    content: "вкл";
    color: #fff;
    left: 13px;
}
.checkbox-slide.on-off
    input[type="checkbox"]:checked
    + .checkbox-slide-switch::after,
.checkbox-slide.on-off
    input[type="radio"]:checked
    + .checkbox-slide-switch::after {
    content: "вкл";
    color: #fff;
    left: 13px;
}
/* .checkbox-slide Palette */
.checkbox-slide.black input[type="checkbox"]:checked + .checkbox-slide-switch,
.checkbox-slide.black input[type="radio"]:checked + .checkbox-slide-switch {
    background: #005aa5;
    border-color: #005aa5;
}
.checkbox-slide.black-light
    input[type="checkbox"]:checked
    + .checkbox-slide-switch,
.checkbox-slide.black-light
    input[type="radio"]:checked
    + .checkbox-slide-switch {
    background: #005aa5;
    border-color: #005aa5;
}
.checkbox-slide.blue input[type="checkbox"]:checked + .checkbox-slide-switch,
.checkbox-slide.blue input[type="radio"]:checked + .checkbox-slide-switch {
    background: #0284c7ff;
    border-color: #0284c7ff;
}
.checkbox-slide.red input[type="checkbox"]:checked + .checkbox-slide-switch,
.checkbox-slide.red input[type="radio"]:checked + .checkbox-slide-switch {
    background: #db3f3fff;
    border-color: #db3f3fff;
}
.checkbox-slide input[type="checkbox"]:checked + .checkbox-slide-switch,
.checkbox-slide input[type="radio"]:checked + .checkbox-slide-switch {
    background: #06b373;
    border-color: #06b373;
}
.checkbox-slide input[type="checkbox"]:checked + .checkbox-slide-switch:before,
.checkbox-slide input[type="radio"]:checked + .checkbox-slide-switch:before {
    transform: translateX(18px);
}
/* Hover */
.checkbox-slide input[type="checkbox"]:not(:disabled) + .checkbox-slide-switch,
.checkbox-slide input[type="radio"]:not(:disabled) + .checkbox-slide-switch {
    cursor: pointer;
}
/* Disabled */
.checkbox-slide input[type="checkbox"]:disabled + .checkbox-slide-switch,
.checkbox-slide input[type="radio"]:disabled + .checkbox-slide-switch {
    filter: grayscale(70%);
}
.checkbox-slide input[type="checkbox"]:disabled + .checkbox-slide-switch:before,
.checkbox-slide input[type="radio"]:disabled + .checkbox-slide-switch:before {
    background: #eee;
}
/* Focus */
.checkbox-slide.focused .checkbox-slide-switch:before {
    box-shadow: inset 0px 0px 4px #ff5623;
}

/* Select */
select {
    font-size: initial;
    font-family: inherit;
    outline: none;
}
