﻿motion-input {
    display: block;
}

    motion-input input[type=number]::-webkit-inner-spin-button,
    motion-input input[type=number]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        margin: 0;
    }

    motion-input .component {
        /*font-size: 0;*/
    }

        motion-input .component .control {
            width: 100%;
            display: block;
        }

        motion-input .component.hasUnit .control {
            width: calc(100% - 90px);
            display: inline-block;
            vertical-align: top;
        }

        motion-input .component.hasUnit:hover .control input[type=text],
        motion-input .component.hasUnit:hover .control input[type=number],
        motion-input .component.hasUnit:hover .unit {
            border-color: #6e6e6e !important;
        }

        motion-input .component.hasUnit .control input[type=text],
        motion-input .component.hasUnit .control input[type=number],
        motion-input .component.hasUnit .control select {
            border-top-left-radius: 2px !important;
            border-bottom-left-radius: 2px !important;
            border-top-right-radius: 0px !important;
            border-bottom-right-radius: 0px !important;
        }

        motion-input .component.hasUnit.hasRequired .control input[type=text]:required,
        motion-input .component.hasUnit.hasRequired .control input[type=number]:required,
        motion-input .component.hasUnit.hasRequired .control select:required {
            border-right-color: #a9a9a9 !important;
            border-right-width: 1px !important;
        }

        motion-input .component.hasUnit.hasRequired .unit {
            border-right-color: #ec1b24 !important;
            border-right-width: 2px;
        }

        motion-input .component .unit {
            font-family: 'ABBvoice', sans-serif;
            font-weight: 200;
            font-size: 13px;
            text-align: center;
            background-color: #e9e9e9;
            width: 90px;
            height: 37px;
            display: inline-block;
            padding: 2px 8px 0 8px;
            margin: 5px 0;
            line-height: 32px;
            border-left: none;
            border-right: 1px solid #a9a9a9;
            border-top: 1px solid #a9a9a9;
            border-bottom: 1px solid #a9a9a9;
            border-top-right-radius: 2px;
            border-bottom-right-radius: 2px;
            vertical-align: top;
        }

        motion-input .component.hasFocus .unit {
            box-shadow: 0 2px 4px 0 rgb(0 0 0 / 10%);
        }



        motion-input .component .control input[type=text],
        motion-input .component .control input[type=number] {
            font-family: 'ABBvoice', sans-serif;
            font-weight: 400;
            font-size: 16px;
            box-shadow: none;
            color: #262626;
            padding: 3px 10px;
            margin: 5px 0;
            line-height: 32px;
            height: 37px;
            background-color: #ffffff;
            border: 1px solid #a9a9a9;
            border-radius: 2px;
            outline: none;
            width: 100%;
        }

            motion-input .component .control input[type=text]:focus,
            motion-input .component .control input[type=number]:focus {
                box-shadow: 0 2px 4px 0 rgb(0 0 0 / 10%);
            }

            motion-input .component .control input[type=text]:hover,
            motion-input .component .control input[type=number]:hover {
                border-color: #6e6e6e;
            }

            motion-input .component .control input[type=text]:disabled,
            motion-input .component .control input[type=number]:disabled,
            motion-input .component .unit:disabled {
                background-color: #fff !important;
                opacity: .5 !important;
                user-select: none !important;
            }

            motion-input .component .control input[type=text]:required,
            motion-input .component .control input[type=number]:required,
            motion-input .component .control select:required {
                border-right-color: #ec1b24 !important;
                border-right-width: 2px;
            }

@media (max-width: 991px) {
    motion-input .component.hasUnit .control {
        width: calc(100% - 60px);
    }

    motion-input .component.hasUnit .unit {
        width: 60px;
    }
}
