.form_v2 {
    background: #efefef;
    border-top: 1px solid #b4b4b4;
    border-bottom: 1px solid #d2d2d2;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 15px;
}
.form_v2 hr {
    border-bottom: 1px solid #ccc;
}
.form_v2 p, .form_v2 hr, .form_v2 .required_field, .form_v2 .optional_field {
    margin-bottom: 20px;
}
.form_v2 p:last-child, .form_v2 .required_field:last-child, .form_v2 .optional_field:last-child {
    margin-bottom:0;
}
.form_v2 p > span {
    display: block;
}
.form_v2 .caption {
    text-shadow: 0 1px 0 #fff;
    color: #777;
}
.form_v2 .caption .error {
    color: #ee0000;
    margin-left: 8px;
    text-shadow: none;
}
.form_v2 .error {
    display: inline-block;
    color: red;
    border-radius: 3px;
    padding: 2px 6px;
    text-shadow: none;
}
.form_v2 .required_field .caption:after {
    content: '*';
    color: red;
    margin-left: 2px;
}
.form_v2 .optional_field .caption:after {
    content: '(не обязательно)';
    color: #aaa;
    margin-left: 4px;
}
.form_v2 .tip {
    background-color: #f7f7f7;
}
.form_v2 .input {
    margin: 3px 0;
}
.form_v2 .hint {
    font-size: inherit;
    color: #aaa;
}
.form_v2 .hint a {
    text-decoration: underline;
    color: #aaa;
}
.form_v2 .input input[type=text],
.form_v2 .input select,
.form_v2 .input textarea,
.form_v2 .input .multiselect {
    background: #fff;
    border: 0 solid #ccc;
    box-shadow: 0 1px 0 #afafaf;
    border-radius: 3px;
    margin:0; /* safari bug */
    padding: 5px 8px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-size: 14px;
}
.form_v2 .input textarea { width: 100%; }
.form_v2 .input .multiselect {
    padding: 5px 0;
    resize: none;
}
.form_v2 .input .multiselect::-webkit-scrollbar {
    background: transparent;
    width: 10px;
}
.form_v2 .input .multiselect::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: #ddd;
    color: red;
}
.form_v2 .input .multiselect_option {
    padding: 3px 8px 3px 30px;
    border: none;
    color: inherit;
}
.form_v2 .input .multiselect_selected_option {
    color: inherit;
    background-position: 8px 50%;
}
.multiselect {
    border: 1px solid #888;
    background-color: #fff;
    border-collapse: collapse;
    width: 300px;
    max-height: 154px;
    overflow: auto;
}
.multiselect.resizeable {
    resize: vertical;
    height: 154px;
    max-height: inherit;
}
.multiselect_option {
    color: #888;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    padding: 3px 4px 3px 25px;
}
.multiselect_option:last-child {
    border-bottom: none;
}
.multiselect_option:hover {
    color: #333;
}
.multiselect_selected_option {
    color: green !important;
    background: url('/resources/images/icons/done_16.png') no-repeat 5px 3px;
}
.form_v2 .input input[type=file] {
    margin:0;
    padding: 5px 0;
}
.form_v2 .input select {
    background: #fff url('/resources/images/interface/v3/select_arrow.png') no-repeat 100% 50%;
    -moz-appearance: none;
    -webkit-appearance: none;
    padding-right: 24px;
    margin-right: 2px;
}
.form_v2 .input input[type=text]:focus,
.form_v2 .input select:focus,
.form_v2 .input textarea:focus {
    outline: none 0;
    background-color: hsl(60,85%,85%);
}
.form_v2 .input input[type=checkbox] {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: middle;
}
.form_v2 .input input + a.button {
    padding: 4px 14px;
    line-height: 18px;
    font-size: 14px;
}

.switch {
    display: inline-block;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    margin-right: 4px;
}

.switch.big_switch {
    font-size: 16px;
}

.switch input {
    opacity: 0;
    position: absolute;
}

.switch input + span {
    position: relative;
    display: inline-block;
    width: 1.65em;
    height: 1em;
    /*background: white;
    box-shadow: inset 0 0 0 0.0625em #e9e9e9;*/
    background: #e1e1e1;
    border-radius: 0.5em;
    vertical-align: -0.15em;
    transition: all 0.40s cubic-bezier(.17,.67,.43,.98);
}

.switch:active input + span,
.switch input + span:active {
    box-shadow: inset 0 0 0 0.73em #e9e9e9;
}

.switch input + span:after {
    position: absolute;
    display: block;
    content: '';
    width: 0.875em;
    height: 0.875em;
    border-radius: 0.4375em;
    top: 0.0625em;
    left: 0.0625em;
    box-shadow: inset 0 0 0 0.03em rgba(0,0,0,0.1), 0 0 0.05em rgba(0,0,0,0.05), 0 0.1em 0.2em rgba(0,0,0,0.2);
    background: #fff;
    transition: all 0.25s ease-out;
}

.switch:active input + span:after,
.switch input + span:active:after {
    width: 1.15em;
}

.switch input:checked + span {
    /*box-shadow: inset 0 0 0 0.73em #4cd964;*/
    box-shadow: inset 0 0 0 0.73em #f457a0;
}

.switch input:checked + span:after {
    left: 0.7125em;
}

.switch:active input:checked + span:after,
.switch input:checked + span:active:after {
    left: 0.4375em;
}

.switch input:focus + span:after {
    box-shadow: inset 0 0 0 0.03em rgba(0,0,0,0.15), 0 0 0.05em rgba(0,0,0,0.08), 0 0.1em 0.2em rgba(0,0,0,0.3);
    background: #fff;
}

.switch input:focus + span {
    box-shadow: inset 0 0 0 0.625em #dadada;
}

.switch input:focus:checked + span {
    box-shadow: inset 0 0 0 0.73em #33be4b;
}

.switch:hover input:focus + span:after {
    box-shadow: inset 0 0 0 0.03em rgba(0,0,0,0.1), 0 0 0.05em rgba(0,0,0,0.05), 0 0.1em 0.2em rgba(0,0,0,0.2);
    background: #fff;
}

.switch:hover input:focus + span {
    box-shadow: inset 0 0 0 0.0625em #e9e9e9;
}

.switch:hover input:focus:checked + span {
    /*box-shadow: inset 0 0 0 0.73em #4cd964;*/
    box-shadow: inset 0 0 0 0.73em #f457a0;
}

.address_add {
    width: 800px;
    min-height: 600px;
    padding: 5px;
}

.address_add .fancybox-close-small {
    position: absolute;
    right: 5px;
    top: 0;
}
