.form-group select.form-control {
    height: auto !important;
    padding: 6px;
}

.magic_builder,
#magic_builder {
    padding: 0 15px;
}
.magic_builder.builder,
#magic_builder.builder {
	margin-bottom: 20px;
}
.magic_builder.disabled:before,
#magic_builder.disabled:before {
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    z-index: 999999999;
    background: rgba(255,255,255,.7);
}
.magic_builder > .row,
#magic_builder > .row {
    padding: 20px 3px 3px 3px;
    position: relative;
    border-radius: 4px;
    margin-bottom: 5px;
    background: #FFF;
    border: 1px solid rgba(0,0,0,0.1);
}
.magic_builder > .row .topRow,
#magic_builder > .row .topRow,
.magic_builder > .row .topColumn,
#magic_builder > .row .topColumn,
.magic_builder > .row .topRow:hover,
#magic_builder > .row .topRow:hover {
    padding: 0;
    display: inline-block;
    width: 100%;
    border: none;
    min-height: auto;
}
.magic_builder > .row .topRow label,
#magic_builder > .row .topRow label,
.magic_builder > .row .topColumn label,
#magic_builder > .row .topColumn label {
    position: absolute;
    left: 0;
    top: 0;
    background: rgba(255,255,255,.4);
    font-size: 10px;
    padding: 2px 5px;
}
#magic_builder > .row .topRow span.handle,
.magic_builder > .row .topRow span.handle,
.magic_builder > .row .topColumn span.handle,
#magic_builder > .row .topColumn span.handle {
    position: absolute;
    top: 0;
    left: 49.5%;
    cursor: move;
}
#magic_builder > .row .topRow .content-edit-btn,
.magic_builder > .row .topRow .content-edit-btn,
.magic_builder > .row .topColumn .content-edit-btn,
#magic_builder > .row .topColumn .content-edit-btn {
    right: 0;
    top: 0;
    opacity: 1;
    width: 30px;
    padding: 5px 0;
    font-size: 11px;
}
.magic_builder > .row .topRow .row_actions,
#magic_builder > .row .topRow .row_actions,
.magic_builder > .row .topColumn .column_actions,
#magic_builder > .row .topColumn .column_actions {
    width: auto;
    position: absolute;
    right: 0;
    top: 0;
    padding: 0;
    min-height: auto;
    border: none;
}


#magic_builder > .row .topRow .save-btn,
.magic_builder > .row .topRow .save-btn {
    margin-right: 0px;
}
#magic_builder > .row .topRow .content-edit-btn:hover,
.magic_builder > .row .topRow .content-edit-btn:hover,
#magic_builder > .row .topColumn .content-edit-btn:hover,
.magic_builder > .row .topColumn .content-edit-btn:hover,
#magic_builder > .row .topRow .content-edit-btn:active,
.magic_builder > .row .topRow .content-edit-btn:active,
#magic_builder > .row .topColumn .content-edit-btn:active,
.magic_builder > .row .topColumn .content-edit-btn:active,
#magic_builder > .row .topRow .content-edit-btn:focus,
.magic_builder > .row .topRow .content-edit-btn:focus,
#magic_builder > .row .topColumn .content-edit-btn:focus,
.magic_builder > .row .topColumn .content-edit-btn:focus {
	background: transparent !important;
	color: #66615B !important;
}
.magic_builder > .row .contentRow,
#magic_builder > .row .contentRow {
    display: contents;
}
.magic_builder > .row > div > div,
#magic_builder > .row > div > div {
	padding: 10px;
    border: 1px dashed;
    min-height: 43px;
    border-color: #d8d8d8;
}
.magic_builder > .row > div > div:hover,
#magic_builder > .row > div > div:hover {
    border: 1px solid rgba(0,0,0,0.2);
}
.magic_builder > .row > div.contentRow > div,
#magic_builder > .row > div.contentRow > div {
    background: #FFF;
    cursor: move;
}

.content-edit-btn {
	position: relative;
	right: 5px;
	top: -2px;
	opacity: 0;
    margin: 0;
	transition: all 0.2s cubic-bezier(0.47, 0, 0.745, 0.715);
}
.content-edit-btn.edit-btn {
    margin-right: 0px;
}

.modules .modal-body {
    text-align: center;
}
.modules .module-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 400;
    text-align: center;
    font-size: 10px !important;
    line-height: 2em;
    margin: 5px;
} 
.modules .module-btn i {
    font-size: 30px;
}

.magic_builder .contentColumn,
#magic_builder .contentColumn {
    min-height: 5vh;
    text-align: center;
    position: relative;
}
.magic_builder .contentColumn > button,
#magic_builder .contentColumn > button {
    font-size: 10px;
}
.magic_builder p,
#magic_builder p {
	margin-bottom: 0;
}
.magic_builder .contentColumn .module,
#magic_builder .contentColumn .module {
    background-color: #52ada7;
    color: #FFF;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    padding: 1rem;
    margin-bottom: 10px;
    display: grid;
}
.magic_builder .contentColumn .module .module_actions,
#magic_builder .contentColumn .module .module_actions {
    position: absolute;
    left: 0;
    width: 100%;
    background-color: #52ada7;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.2s all ease-in-out;
}
.magic_builder .contentColumn .module:hover .module_actions,
#magic_builder .contentColumn .module:hover .module_actions {
    opacity: 1;
}
.magic_builder .contentColumn .module .module_actions button,
#magic_builder .contentColumn .module .module_actions button {
    margin: -2px 2px 0 2px;
}

.featured_preview {
    cursor: pointer;
    overflow: hidden;
    position: relative;
    height: 17em;
    border: dashed 2px rgba(0,0,0,0.2);
    border-radius: 5px;
}
.featured_preview img {
    object-fit: cover;
    height: auto;
}
.featured_preview:before {
    content: 'Click for change';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 9999;
    pointer-events: none;
    position: absolute;
    background: rgba(0,0,0,0.4);
    color: #FFF;
    padding-top: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.2s cubic-bezier(0.47, 0, 0.745, 0.715);
}
.featured_preview:hover:before {
    opacity: 1;
}

.sticky.fixed {
    position: fixed;
    width: 20%;
    margin-left: 0%;
    z-index: 999;
    top: 0;
    background: #FFF;
    padding: 4px 15px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

#modalMedia {
    z-index: 99999999;
}

#historyModal .modal-body {
    max-height: 47em;
    overflow-x: auto;
    padding: 20px;
    font-size: 85% !important;
}
#historyModal .modal-body .row {
    border: none !important;
    margin: 0px;
    padding: 0px;
}
#historyModal .modal-body > .row:hover {
    border-color: rgb(247, 212, 0);
}
#historyModal .modal-body .contentRow > div {
    padding: 10px;
    overflow: hidden;
    max-height: 180px;
}
#historyModal .modal-body .handle,
#historyModal .modal-body .btn
{
    display: none;
}
.modal-wide {
    width: 80%;
    max-width: 80%;
}

.cke_contents {
    padding: 10px !important;
}

.gallery, .documents, .icons {
    width: 16.2%;
    display: inline-block;
    margin-right: 6px;
} 
.gallery-w-20 .gallery {
    width: 20%;
}
.gallery .featured_preview,
.documents .featured_preview,
.icons .featured_preview {
    height: 13em !important;
}
.gallery:nth-child(6n + 6),
.documents:nth-child(6n + 6),
.icons:nth-child(6n + 6) {
    margin-right: 0;
}
.gallery .featured_preview:before,
.documents .featured_preview:before,
.icons .featured_preview:before {
    content: '';
    background-color: rgba(0, 0, 0, 0.1);
}
.gallery .featured_preview img,
.documents .featured_preview img,
.icons .featured_preview img {
    height: 100%;
    width: 100%;
    position: relative;
    padding: 0;
    object-fit: contain;
}
.gallery .featured_preview i,
.documents .featured_preview i,
.icons .featured_preview i {
    top: calc(50% - 22px);
    position: absolute;
    left: calc(50% - 22px);
    font-size: 45px;
    opacity: .3;
}
.gallery .featured_preview .btn-remove,
.documents .featured_preview .btn-remove,
.icons .featured_preview .btn-remove {
    z-index: 99;
    top: 0;
    right: 0;
    position: absolute;
    padding: 0;
    margin: 10px;
}
.gallery .featured_preview .btn-remove:hover,
.documents .featured_preview .btn-remove:hover,
.icons .featured_preview .btn-remove:hover {
    background-color: transparent !important;
}
.gallery .featured_preview .btn-remove i,
.documents .featured_preview .btn-remove i,
.icons .featured_preview .btn-remove i {
    top: 0;
    left: 0;
    position: relative;
    font-size: 20px;
    color: #f14c4c;
    opacity: 1;
}

.open .form-control {
    border-radius: 6px;
    border-bottom-color: #DDDDDD;
}

.options p {
    display: flex;
}
.options p span.handle {
    padding: 6px 6px 6px 0px;
    cursor: grab;
}


@media only screen and (max-width: 991px){
    .magic_builder > .row .contentRow, #magic_builder > .row .contentRow {
        display: inline-block;
        width: 100%;
    }
    .magic_builder > .row > div > div, #magic_builder > .row > div > div {
        width: 100%;
        max-width: 100%;
        display: inherit;
    }
    .gallery {
        width: 100%;
    }
    #modal_builder .modal-body {
        padding: 15px 20px;
    }
    #modal_builder .modal-dialog {
        padding-top: 0;
    }
    #modal_builder .modal-footer > button {
        width: 100%;
    }
}