button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

input,
textarea {
    -webkit-appearance: none;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 0;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

input[type=checkbox],
input[type=radio] {
    padding: 8px;
    width: 16px;
    min-width: 16px;
    height: 16px;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    -webkit-appearance: none;
    transition: .05s border-color ease-in-out;
}

input[type=radio] {
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

input[type=checkbox]:checked:before,
input[type=radio]:checked:before {
    position: relative;
    top: -7px;
    left: -8px;
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    font-family: Icon;
    font-weight: 900;
    color: var(--color-primary);
    speak: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

input[type=checkbox]:disabled,
input[type=radio]:disabled {
    cursor: default;

    &:before {
        color: var(--secondary-color);
    }
}

input[type=checkbox]:checked:before {
    content: "\f00c";
    font-size: 9pt;
}

input[type=radio]:checked:before {
    content: "\f111";
    top: -6px;
    font-size: 7pt;
}

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

legend {
    box-sizing: border-box; /* 1 */
    color: inherit; /* 2 */
    display: table; /* 1 */
    max-width: 100%; /* 1 */
    padding: 0; /* 3 */
    white-space: normal; /* 1 */
}

progress {
    vertical-align: baseline;
}

textarea {
    overflow: auto;
}

[type="checkbox"],
[type="radio"] {
    width: auto;
    padding: 0;
    box-sizing: border-box;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
}
