/* Стили модального окна и содержания 
-------------------------------------------------------------------------------*/
 
/* слой затемнения */
 
.dm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    overflow: auto;
    width: 100%;
    height: 100%;
    z-index: 1000;
}
/* активируем модальное окно */
 
.dm-overlay:target {
    display: block;
    -webkit-animation: fade .6s;
    -moz-animation: fade .6s;
    animation: fade .6s;
}
/* блочная таблица */
 
.dm-table {
    display: table;
    width: 100%;
    height: 100%;
}
/* ячейка блочной таблицы */
 
.dm-cell {
    display: table-cell;
    padding: 0 1em;
    vertical-align: middle;
    text-align: center;
}
/* модальный блок */
 
.dm-modal {
    display: inline-block;
    padding: 0px 15px 10px 15px;
    max-width: 100%;
    background: rgb(255, 255, 255);
    -webkit-box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.22), 0px 19px 60px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.22), 0px 19px 60px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.22), 0px 19px 60px rgba(0, 0, 0, 0.3);
    color: #333;
    /* text-align: left; */
    /* background-image: url(http://kubanmatras.ru/image/data/depositphotos_57168109-Woman-and-mattress.jpg); */
    
}
/* изображения в модальном окне */
 
.dm-modal img {
max-width: 210px; 
    height: auto;
}
/* миниатюры изображений */
 
.pl-left,
.pl-right {
    width: 25%;
    height: auto;
}
/* миниатюра справа */
 
.pl-right {
    float: right;
    margin: 5px 0 5px 15px;
}
/* миниатюра слева */
 
.pl-left {
    float: left;
    margin: 5px 15px 5px 0;
}
/* встраиваемое видео в модальном окне */
 
.video {
    position: relative;
    overflow: hidden;
    padding-bottom: 56.25%;
    height: 0;
}
.video iframe,
.video object,
.video embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* рисуем кнопарь закрытия */
.close_opros {
 z-index: 9999;
    float: left;
    width: 100%;
    /* height: 30px; */
    color: #d71616;
    text-align: center;
    text-decoration: none;
    line-height: 26px;
    cursor: pointer;
    opacity: 1!important;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    color: #d71616;
    text-shadow: 0 1px 0 #fff;
} 
/*.close {
    z-index: 9999;
    float: right;
    width: 100%; 
    /* height: 30px; */
   /* color: #d71616;
    text-align: center;
    text-decoration: none;
    line-height: 26px;
    cursor: pointer;
    opacity: 1!important;
}*/
.close_opros:after {
    display: block;
    /*border: 2px solid #cfd8dc;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;*/
    content: 'Закрыть подбор';
    -webkit-transition: all 0.6s;
    -moz-transition: all 0.6s;
    transition: all 0.6s;
    -webkit-transform: scale(0.85);
    -moz-transform: scale(0.85);
    -ms-transform: scale(0.85);
    transform: scale(0.85);
}
/* кнопка закрытия при наведении */
 
.close_opros:hover:after {
    border-color: #fff;
    color: #999;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}
/* варианты фонвой заливки модального блока */
.back:after {
    display: block;
    /*border: 2px solid #cfd8dc;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;*/
    content: 'Предыдущий шаг';
    -webkit-transition: all 0.6s;
    -moz-transition: all 0.6s;
    transition: all 0.6s;
    -webkit-transform: scale(0.85);
    -moz-transform: scale(0.85);
    -ms-transform: scale(0.85);
    transform: scale(0.85);
} 
.back:hover:after {
    border-color: #fff;
    color: #999;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}
.back {
    z-index: 9999;
    float: left;
    width: 100%;
    /* height: 30px; */
    color: #d71616;
    text-align: center;
    text-decoration: none;
    line-height: 26px;
    cursor: pointer;
    opacity: 1!important;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    color: #d71616;
    text-shadow: 0 1px 0 #fff;
}
.green {
    background: #388e3c!important;
}
.cyan {
/*background: #e3ff08!important; */
}
.teal {
    background: #00796b!important;
}
/* движуха при появлении блоков с содержанием */
 
@-moz-keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1
    }
}
@-webkit-keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1
    }
}
@keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1
    }
}
a.btn-default1 {
padding: 15px;
    font-size: 21px;
    border: 1px solid #cccccc;
    /* border-radius: 4px; */
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
    color: #fff;
    background: #d71616;
    border-radius: 5px;
    /* margin-left: 30px; */
    text-transform: uppercase;
    float: left;
    width: 100%;
        margin-top: 5px;
}