.theme_select_box {
    /* position: relative; */
    /* max-width: 250px; */
    /* float: left; */
}
.theme_select_box .preview_select {
    display: none; /*hide original SELECT element:*/
}
.theme_select_boxes {
    float: left;
    width: calc(50%);
    margin-right:15px;
}
.theme_preview_actions {
    float: left;
    width: calc(50% - 15px);
}

.theme_preview_iframe {
    float: left;
    width: 100%;
}
.theme_bar {
    font-size:14px;
    font-weight: 300;
    float: left;
    width: calc(100% - 12px);
    background: #343434;
    padding: 14.5px 6px;
    border-bottom:1px solid #999;
}
.theme_select_boxes .preview_select {
    background: silver;
    border: none;
    padding: 4px 8px;
    height: 36px;
    width: calc(33.33% - 13px);
    margin-right: 15px;
    outline: none !important;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    line-height: 25px;
    clear: none !important;
}

.theme_select_boxes .preview_select:last-child {
    margin-right: 0;
}
.theme_preview_iframe {
    width: 100%;
    height: calc(100vh - 66px);
}

.theme_preview_iframe iframe {
    width: 100%;
    height: 100%;
    background: white;
    margin: 0 auto;
    box-shadow: 0 0 7px 0px #0000002e;
    display: table;
}

.custom-button {
    cursor: pointer;
    display: inline-block;
    min-height: 1em;
    outline: 0;
    border: none;
    vertical-align: baseline;
    transition-duration: 0.2s;
    background: #e0e1e2 none;
    color: rgba(0,0,0,.6);
    font-family: Lato,'Helvetica Neue',Arial,Helvetica,sans-serif;
    margin: 0 .25em 0 0;
    padding: 8px 10px;
    text-transform: none;
    text-shadow: none;
    /* font-weight: 300; */
    font-weight: 600;
    line-height: 18px;
    font-style: normal;
    text-align: center;
    text-decoration: none;
    border-radius: .28571429rem;
    -webkit-box-shadow: 0 0 0 1px transparent inset, 0 0 0 0 rgba(34,36,38,.15) inset;
    box-shadow: 0 0 0 1px transparent inset, 0 0 0 0 rgba(34,36,38,.15) inset;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-transition: opacity .1s ease,background-color .1s ease,color .1s ease,background .1s ease,-webkit-box-shadow .1s ease;
    transition: opacity .1s ease,background-color .1s ease,color .1s ease,background .1s ease,-webkit-box-shadow .1s ease;
    transition: opacity .1s ease,background-color .1s ease,color .1s ease,box-shadow .1s ease,background .1s ease;
    transition: opacity .1s ease,background-color .1s ease,color .1s ease,box-shadow .1s ease,background .1s ease,-webkit-box-shadow .1s ease;
    will-change: '';
    -webkit-tap-highlight-color: transparent;
}
.theme_preview_sale_btn:hover {
    background: #efefef;
}
.custom-button-group {
    float: right;
    width:164px;
}
.display-none {
    display: none;
}
.disable-item {
    pointer-events:none;
}

.theme_preview_sale_btn i {
    font-size: 19px;
    float: left;
    margin-right: 3px;
    margin-left: -3px;
    margin-top: -1px;
}

.theme_preview_close i {
    font-size: 19px;
    color: #dcdcdc;
}

.theme_preview_close {
    margin: 0 10px;
}
.change_device {
    float: left;
    margin-top: 6px;
}

.change_device ul {
    float: left;
}

.change_device ul li {
    float: left;
    cursor: pointer;
}

.change_device ul li i {
    color: #c0c0c0;
    font-size: 27px;
}

li.desktop_device {
    margin-right: 10px;
}

.active_device i {
    color: #fff !important;
}
.theme_preview_message {
    float: right;
    line-height: 34px;
    margin: 0 10px;
    font-family: 'Open Sans', sans-serif;
    color: #f1f1f1;
    text-align: right;
    width: calc(100% - 315px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.theme_select_boxes .preview_select ul {
	max-height: 450px;
	overflow-y: auto;
    background-color: #eaeaea !important;
}

.theme_select_boxes .preview_select .option:hover, .theme_select_boxes .preview_select .option.focus, .theme_select_boxes .preview_select .option.selected.focus {
    background-color:#dedcdc !important;
}
.theme_select_boxes select {
    display: none !important;
}
#themePreview::-webkit-scrollbar-track
{
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    border-radius: 10px;
    background-color: #F5F5F5;
}

#themePreview::-webkit-scrollbar
{
    width: 12px;
    background-color: #F5F5F5;
}

#themePreview::-webkit-scrollbar-thumb
{
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #555;
}
.nice-select .current {
    width: calc(100% - 12px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    float: left;
}
.nice-select ul li {
    width: calc(100% - 34px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    float: left;
}


@media (max-width: 1024px) {
    .theme_preview_message, .change_device {
        display: none;
    }
    .theme_select_boxes {
        width:calc(100% - 179px) !important;
    }
    .theme_preview_actions {
        width:164px;
    }
    .theme_preview_iframe iframe {
        margin-top:0 !important;
        margin-bottom: 0 !important;
    }
}

@media(max-width: 767px) {
    .theme_select_boxes .preview_select {
        margin-right:4px !important;
        width:calc(33.33% - 4px) !important;
    }
}
@media (min-width: 768px) {
    .theme_select_boxes .preview_select ul {
        width: 100%;
    }
}
@media(max-width: 380px) {
    .theme_preview_iframe iframe {
        width:100% !important;
    }
}