/*form  label {
    color: #999;
    margin-bottom: 5px;
    display: inline-block;
    line-height: 15px;
    min-height: 30px;
}*/
/* *** */
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;
}

input[type=text], /* will only select text fields */
input[type=password], /* will only select password fields */
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;
    background-color: #FFF;
    color: #000;

    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

textarea {
    /* min-height: 65px; */
    resize: vertical;
    /*padding-top: 5px;*/
}

/* 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 20px 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 {
    text-transform: uppercase;
    font-family: sans-serif;
    font-size: 14px;
    line-height: 24px;
    text-decoration: none;

    padding: 5px 20px;

    /*height: 36px;*/
    display: inline-block;

    color: #fff;
    background-color: #005957;

    border-radius: 3px;
    /*border: 1px solid #c12130;*/
    border: none;
    cursor: pointer;

    /*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;

    -webkit-appearance: none;
}

/*button:hover {
    color:#005957;
    background: linear-gradient(#f0f0f0, #cfcfcf);
}*/



/*button.zoom {
    background-image: url(../svg/zoom.svg);
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    padding: 15px;
    margin-top: 10px;
    border-radius: 3px;
    background-color: #cfcfcf;
    border: 1px solid #005957;
    -webkit-box-shadow: 0px 4px 9px -3px rgba(0,0,0,0.32);
-moz-box-shadow: 0px 4px 9px -3px rgba(0,0,0,0.32);
box-shadow: 0px 4px 9px -3px rgba(0,0,0,0.32);
}

button.zoom:hover {
    background-color: #005957;
    background-image: url(../svg/zoom-white.svg);
}*/

a.cancel {
    background: #AAA;
    border: none;
    border-radius: 4px;
    color:  #FFF;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-appearance: none;
    font-family: sans-serif;
    font-size: 14px;
    line-height: 24px;
    padding: 5px 20px;
    text-decoration: none;
    display: inline-block;
    margin: 0 10px;

    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;
    -o-transition: background-color 0.5s ease, border 0.5s ease;
    transition: background-color 0.5s ease, border 0.5s ease;
}

a.cancel:hover {
    color: #005957;
    background: linear-gradient(#f0f0f0, #cfcfcf);
}


select option {
    padding: 6px;
}

/* checkbox */
label.checkbox {
    line-height: 16px;
    /*white-space: nowrap;*/
    padding: 5px 0 5px 30px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    vertical-align: bottom;
    display: inline-block;
}

label.checkbox a {
    text-decoration: underline;
    color: #005957;
}

label.checkbox input { display: none;}

label.checkbox span {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #005957;
    border-radius: 3px;
    content: ' ';
    vertical-align: bottom;
    margin-right: 6px;
    margin-left: -30px;
}

label.checkbox:hover span { border-color: #005957;}

label.checkbox input:checked + span {
    background-image: url(../svg/check.svg);
    background-color: #005957;
    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:block;
}

label.radio input { display: none;}

label.radio span {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #005957;
    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-color: transparent;
    background-position: center;
}
/* custom radio END */


.mgBasketDelete {
    color: #999;
    padding-top: 6px;
    cursor: pointer;
}

/* formerror */
.mgErrorField {
    border: 1px solid #ff0000;
    background-color: #fffee4;
}

.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;
}
/* 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: 14px !important;
        line-height: 31px !important;
        padding: 5px 20px !important;
        height: 38px !important;
    }
}

.formsection {
    color: #005957;
    font-weight: bold;
    padding-bottom: 5px;
    margin-bottom: 10px;
    border-bottom: 1px dashed  #BEBEBE;
}

