.m-overlay {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 104000;
    background-color: rgba(0,0,0,0.5)
}

.m-modal {
    position: absolute;
    z-index: 105000;
    display: none;
    background-color: #fff;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: 0px 0px 5px #333333;
    -moz-box-shadow: 0px 0px 5px #333333;
    box-shadow: 0px 0px 5px #333333;
    min-width: 320px;
    max-height: 100vh;
    overflow-y: auto
}

@media (min-width: 601px) {
    .m-modal {
        top:0;
        left: 50%;
        margin: 30px 0;
        width: 480px;
        -webkit-transform: translate(-50%, 0);
        -moz-transform: translate(-50%, 0);
        -ms-transform: translate(-50%, 0);
        -o-transform: translate(-50%, 0);
        transform: translate(-50%, 0)
    }
}

@media (max-width: 600px) {
    .m-modal {
        top:0;
        left: 0;
        right: 0;
        bottom: 0;
        border: none;
        box-shadow: none;
        position: fixed
    }
}

.m-modal-heading {
    margin: 1rem 0;
    font-size: 1.5em;
    text-align: center
}

.m-modal-wrapper {
    overflow-y: auto;
    padding: 1rem
}

@media (max-width: 480px) {
    .m-modal-wrapper {
        position:absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0
    }
}

.m-modal-errors {
    background-color: #f2dede;
    margin-bottom: 1rem;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
    border-radius: 3px
}

.m-modal-error {
    padding: 0.5rem
}

.m-modal-error+.m-modal-error {
    padding-top: 0
}

.m-modal-close {
    position: absolute;
    z-index: 10;
    top: 10px;
    right: 10px;
    height: 30px;
    width: 30px;
    padding: 0;
    cursor: pointer;
    border: none;
    background-color: transparent;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MCA1MCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgNTAgNTAiPjxwYXRoIGQ9Ik0zNy4zMDQgMTEuMjgybDEuNDE0IDEuNDE0LTI2LjAyMiAyNi4wMi0xLjQxNC0xLjQxM3oiLz48cGF0aCBkPSJNMTIuNjk2IDExLjI4MmwyNi4wMjIgMjYuMDItMS40MTQgMS40MTUtMjYuMDIyLTI2LjAyeiIvPjwvc3ZnPg==);
    background-repeat: no-repeat
}

.m-modal-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: none;
    -webkit-transition-duration: 1s;
    -moz-transition-duration: 1s;
    -o-transition-duration: 1s;
    transition-duration: 1s
}

.m-modal-button--checkout {
    color: #fff;
    background-color: #31708f;
    padding: 0 1.5rem;
    margin: 1rem 0 0.5rem;
    line-height: 30px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px
}

.m-modal-button--checkout:hover {
    background-color: #286090
}

.m-modal-footer {
    text-align: center
}

.m-modal-msg {
    text-align: center
}

.m-input {
    *zoom:1;margin-bottom: 0.5rem
}

.m-input:after {
    content: "";
    display: table;
    clear: both
}

.m-input:last-child {
    margin-bottom: 0
}

.m-input-label {
    box-sizing: border-box;
    margin-bottom: 0.5rem;
    display: block
}

.m-input-field {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    border: 1px solid;
    padding: 0.5rem;
    box-sizing: border-box;
    margin-bottom: 0.5rem;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -ms-border-radius: 2px;
    -o-border-radius: 2px;
    border-radius: 2px;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none
}

.m-input-field--text {
    height: 90px
}

.m-input-field--checkbox {
    float: left
}

.m-input-example--checkbox {
    overflow: hidden
}

.m-input-notice {
    display: none;
    margin-top: 0.5rem
}

.m-input--error>.m-input-field {
    border-color: #ebccd1;
    background-color: #f2dede
}

.m-input--error>.m-input-notice {
    display: block
}

.m-input--required .m-input-label:after {
    content: ' *';
    color: red
}

.m-input--checkbox {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: baseline;
    -ms-flex-align: baseline;
    align-items: baseline;
    opacity: 0.4
}

.m-input--checkbox .m-input-label {
    margin-left: 10px;
    -webkit-box-flex: 1;
    -ms-flex: 1 0 250px;
    flex: 1 0 250px;
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1
}

.m-input--checkbox input[type="checkbox"] {
    margin: 0;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    -webkit-box-ordinal-group: 1;
    -ms-flex-order: 0;
    order: 0
}

.m-input--checkbox .m-input-caption {
    margin-left: 24px;
    -webkit-box-flex: 1;
    -ms-flex: 1 0 250px;
    flex: 1 0 250px;
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
    font-size: 0.9em
}

#insales-quick-checkout-msg {
    overflow-y: initial
}

#insales-quick-checkout-msg .m-modal-msg {
    width: calc(100% - 30px)
}

.m-notice {
    padding: 0.5rem
}

.m-notice--success {
    color: #3c763d;
    background-color: #dff0d8
}

.m-notice--info {
    color: #31708f;
    background-color: #d9edf7
}

.m-notice--warning {
    color: #8a6d3b;
    background-color: #fcf8e3
}

.m-notice--danger {
    color: #a94442;
    background-color: #f2dede
}
