::-webkit-search-cancel-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
}

::-webkit-search-results-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
}

::-ms-clear {
    display: none;
}

::-webkit-color-swatch-wrapper {
    padding: 0;
}

::-webkit-color-swatch {
    border: none;
}

::-webkit-inner-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
}

::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
}

::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-week-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-year-field,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-minute-field {
    color: inherit;
    background: inherit;
    outline: inherit;
}

label {
    position: relative;
    display: block;
}

.textbox {
    margin-top: 7px;
    border-radius: 4px;
    border: 1px solid darkgray;
    background: white;
}

.textbox>span {
    position: absolute;
    top: -10px;
    left: 4px;
    padding: 0 6px;
    font-size: 14px;
    font-style: italic;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    background: white;
}

.textbox>input,
.textbox>select,
.textbox>textarea {
    position: relative;
    display: block;
    width: 100%;
    height: 30px;
    line-height: 28px;
    border: none;
    background: transparent;
}

.textbox>input[disabled],
.textbox>select[disabled] {
    color: black;
    opacity: 1;
}

.textbox>input[type="email"],
.textbox>input[type="number"],
.textbox>input[type="tel"],
.textbox>input[type="text"] {
    padding: 0 10px;
}

.textbox>input[type="date"],
.textbox>input[type="password"],
.textbox>select {
    padding: 0 36px 0 10px;
}

.textbox>textarea {
    height: 108px;
    line-height: 1.15;
    padding-top: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    resize: none;
    overflow: auto;
}

.textbox>input[type="search"] {
    padding: 0 64px 0 16px;
}

.textbox>input[type="search"] ~ div {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translate(0, -50%);
}

.textbox>input[type="search"] ~ div>div {
    position: relative;
    display: inline-block;
}

.textbox>input[type="search"] ~ div>div>a {
    width: 26px;
    font-size: 18px;
    color: darkgray;
    text-align: center;
    text-decoration: none;
}

.textbox>select {
    cursor: pointer;
}

.textbox>a,
.textbox>i {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translate(0, -50%);
    width: 26px;
    font-size: 18px;
    color: darkgray;
    text-align: center;
}

.textbox>i {
    pointer-events: none;
}

.textbox-disabled {
    pointer-events: none;
}

.textbox-disabled:after {
    content: "\f023";
    position: absolute;
    top: -6px;
    right: 4px;
    padding: 0 6px;
    font-family: "Font Awesome 5 Pro";
    font-weight: 600;
    font-size: 12px;
    color: gray;
    background: white;
}

.checkbox>input[type="checkbox"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.checkbox>input[type="checkbox"] ~ i {
    display: inline-block;
    font-size: 18px;
    color: lightgrey;
    vertical-align: middle;
    cursor: pointer;
}

.checkbox>input[type="checkbox"]:checked ~ i {
    color: #007bff;
}

.checkbox>input[type="checkbox"] ~ span {
    display: inline-block;
    font-size: 14px;
    font-style: italic;
    color: #007bff;
    text-decoration: underline;
    vertical-align: middle;
    cursor: pointer;
}

.optgroup:not(:nth-child(1)) {
    border-top: 1px solid lightgray;
}

.optgroup {
    cursor: pointer;
}

.optgroup>input[type=checkbox] ~ span {
    display: block;
    padding: 0 10px;
    line-height: 36px;
    font-size: 14px;
    background: white;
    pointer-events: none;
    overflow: hidden;
}

.optgroup>input[type=checkbox]:checked ~ span {
    color: white;
    background: lightslategrey;
}

@media(min-width: 769px){
    .optgroup>input[type=checkbox]:hover ~ span {
        color: white;
        background: lightslategrey;
    }
}

.filebox {
    cursor: pointer;
}

.filebox>input[type="file"] {
    display: none;
}

.filebox>div.preview {
    display: block;
    padding-top: 100%;
    border: 1px dashed lightgray;
    background: whitesmoke;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-attachment: inherit;
    background-size: cover;
}

.filebox>i {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 36px;
    color: black;
    text-shadow: 1px 1px rgba(255, 255, 255, .6);
}

.no-mask {
    display: none;
}

