.blue {
    background: #213159;
    padding: 40px 0;
    color: #fff;
}

.blue a { color: #fff; }

.blue.login { padding: 40px; }
.blue.login h1 {
    color: #fff;
    font-size: 25px;
}

.blue.login h1::after {
    content: ' ';
    display: block;
    width: 100px;
    height: 1px;
    background-color: #ED1E26;
    border: none;
    margin: 15px 0;
}


.blue.login form legend { color: #fff; }

/* *** */
figure,address,dd {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
}

form fieldset {
    border: 0 none;
    margin: 0;
    padding: 0;
}

form legend {
    /*display: block;*/
	padding: 8px 0;
    color: #555;
}

form legend.required::after,
form label.required::after {
    content: ' *';
    color: red;
}

.blue input[type=text],
.blue input[type=password],
.blue textarea,
.blue select {
    border: none;
    border-radius: 5px;
    background-color: #fff;
    color: #000;
}

input[type=text],
input[type=password],
textarea,
select {
    font-family: sans-serif;
    font-size: 14px;

    margin: 0;
    padding: 4px 8px;
    line-height: 24px;
    /*height: 32px;*/

    border: 1px solid #999;
    border-radius: 0;

    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* remove dropdown arrow on IE from select */
select::-ms-expand {
    display: none;
}

select {
    background-image: url(../svg/arrow_down.svg);
    background-size: 28px 28px;
    background-repeat: no-repeat;
    background-position: right center;
    padding: 4px 30px 4px 6px
}

input[type=text]:disabled,
input[type=password]:disabled,
textarea:disabled,
select:disabled {
    color: #333;
    background-color: #EEE;
}

.w100 input[type=text],
.w100 input[type=password],
.w100 textarea,
.w100 select,
.w100 button,
.w100 {
    width: 100%;
    box-sizing: border-box;
}
.w50 { width: 50%;}

@media all and (max-width: 700px){ .w50 { width: 100%;} }

/*  Бутони */
button[type=submit],a.submit,
.mgSlider table a {
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 25px;
    text-decoration: none;
    padding: 5px 20px;
    display: inline-block;

    color: #fff;
    background-color: #ED1E26;
    border-radius: 3px;
    border: none;
    cursor: pointer;

    -webkit-transition: background-color 0.5s ease, border 0.5s ease;
    -moz-transition: background-color 0.5s ease, border 0.5s ease;
    -ms-transition: background-color 0.5s ease, border 0.5s ease; /* IE10 is actually unprefixed */
    -o-transition: background-color 0.5s ease, border 0.5s ease;
    transition: background-color 0.5s ease, border 0.5s ease;

    -webkit-appearance: none;
}

button[type=submit]:disabled {
    background-color: #CCC;
    cursor: default;
}

button.cancel {
    border-radius: 4px;
    color: #c12130;
    padding: 8px 20px;
    line-height: 18px;
    text-decoration: none;
    background: linear-gradient( #f0f0f0, #cfcfcf);
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    min-height: 18px;
    margin: 15px;
}

a.cancel {
    font-family: sans-serif;
    font-size: 14px;
    line-height: 24px;
    padding: 5px 20px;
    height: 36px;
    text-transform: uppercase;
    color: #999;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    margin: 0 10px;
    border: 1px solid transparent;

    box-sizing: border-box;

    -webkit-transition: background-color 0.5s ease, border 0.5s ease;
    -moz-transition: background-color 0.5s ease, border 0.5s ease;
    -ms-transition: background-color 0.5s ease, border 0.5s ease; /* IE10 is actually unprefixed */
    -o-transition: background-color 0.5s ease, border 0.5s ease;
    transition: background-color 0.5s ease, border 0.5s ease;
}

a.cancel:hover {
    background-color: #EEE;
    color: #000;
    border-radius: 3px;
    border: 1px solid #E1E1E1;
}

a.sys {
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 25px;
    text-decoration: none;
    padding: 5px 20px;
    display: inline-block;

    color: #fff;
    background-color: #213159;
    border-radius: 3px;
    border: none;
    cursor: pointer;

    margin-left: 10px;

    -webkit-transition: background-color 0.5s ease, border 0.5s ease;
    -moz-transition: background-color 0.5s ease, border 0.5s ease;
    -ms-transition: background-color 0.5s ease, border 0.5s ease; /* IE10 is actually unprefixed */
    -o-transition: background-color 0.5s ease, border 0.5s ease;
    transition: background-color 0.5s ease, border 0.5s ease;

    -webkit-appearance: none;
}

a.sys:hover {
    background-color: #EEE;
    color: #000;
    border-radius: 3px;
}

select option { padding: 6px; }

/* checkbox */
label.checkbox {
    line-height: 16px;
    /*white-space: nowrap;*/
    padding: 5px 20px 5px 30px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    vertical-align: bottom;
    display: inline-block;
    color: #555;
}

label.checkbox input { display: none;}

label.checkbox span {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #ED1E26;
    border-radius: 3px;
    content: ' ';
    vertical-align: bottom;
    margin-right: 6px;
    margin-left: -30px;
}
.blue label.checkbox { color: #fff; }
.blue label.checkbox span  {border: 1px solid #fff;}
.blue label.checkbox:hover span { border-color: #fff;}
.blue label.checkbox input:checked + span {
    background-color: #fff;
    background-image: url(../svg/check-red.svg);
    background-position: center;
}

.blue label.checkbox a {
    color: #fff;
    text-decoration: underline;
}

label.checkbox:hover span { border-color: #ED1E26;}

label.checkbox input:checked + span {
    background-color: #ED1E26;
    background-image: url(../svg/check.svg);
    background-color: #ED1E26;
    background-position: center;
}


@media all and (max-width: 470px) {
    label.checkbox { display: block; }
}
/* checkbox END */


/*custom radio*/
label.radio {
    line-height: 16px;
    padding: 5px 20px 5px 30px;
    vertical-align: middle;
    display: inline-block;
}

label.radio input { display: none;}

label.radio span {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1px solid #a60300;
    border-radius: 50%;
    content: ' ';
    vertical-align: middle;
    margin-left: -30px;
    margin-right: 10px;
}

label.radio input:checked + span {
    background-image: url(../svg/circle.svg);
    background-position: center;
}
/* custom radio END */

.mgBasketDelete {
    color: #999;
    padding-top: 6px;
    cursor: pointer;
}

/* formerror */
/*.mgErrorField {
    border: 1px solid #ff0000 !important;
    background-color: #fffee4 !important;
}
*/
.mgErrorTooltip {
    position: absolute;
    max-width: 520px;
    padding: 7px 20px 7px 10px;
    text-align: left;
    border-radius: 4px;
    color: #fff;
    background-color: #c40000;
    box-shadow: 1px 1px 3px 0 rgba(0,0,0,0.35);
    margin-top: 2px;
    z-index: 1;
}

.mgErrorTooltip:after {
    height: 0;
    width: 0;
    bottom: 100%;
    left: 25px;
    border: solid transparent;
    content: " ";
    position: absolute;
    border-color: rgba(196, 0, 0, 0);
    border-bottom-color: #c40000;
    border-width: 7px;
    margin-left: -7px;
}

label.checkbox .mgErrorTooltip,
label.radio .mgErrorTooltip {
    margin: 5px 0 0 -30px;
}
/* formerror */

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (min--moz-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5) {
    input, textarea, select {
        font-size: 18px !important;
        line-height: 28px !important;
        padding: 5px 10px !important;
        height: 38px !important;
    }

    select {
        background-image: url(../img/select/arrow1@2x.png);
    }

   /* button,*/
    button.cancel {
        font-size: 18px !important;
        line-height: 28px !important;
        padding: 5px 20px !important;
        height: 38px !important;
    }
}