/* Overriding WordPress native styles */

.ocdi {
    max-width: none;
}

.ocdi h2 {
    text-align: inherit;
}

.ocdi h2:first-child,
.ocdi h3:first-child {
    margin-top: 0;
}

.ocdi hr {
    margin: 2.62em 0;
}

.feature-section + hr {
    margin-top: 0;
}

#wpbody select {
    height: auto;
    padding: .62em;
    line-height: inherit;
}

.ocdi .notice {
    display: block !important;
}

/* Plugin elements */

.ocdi__demo-import-files {
    width: 100%;
}

.ocdi__demo-import-preview-image-message {
    font-style: italic;
}

/* Plugin title */

.ocdi__title:before {
    width: auto;
    height: auto;
    font-size: inherit;
}

/* Plugin intro text */

.ocdi__intro-text ul {
    padding: 0 4%;
    list-style-type: square;
}

/* Plugin switch import mode link*/
.ocdi__import-mode-switch {
    float: right;
}

/* Plugin multi select import and Plugin file upload containers */

.ocdi__file-upload,
.ocdi__multi-select-import,
.ocdi__demo-import-notice:not(:empty) {
    padding: 4%;
    margin: 1.62em 0;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
}

.ocdi__file-upload {
    margin: 0;
    margin-bottom: -1px;
}

.ocdi__file-upload span {
    font-size: .81em;
    font-weight: normal;
    opacity: .66;
}

.ocdi__demo-import-notice:not(:empty) {
    border: 0;
    border-left: 4px solid #00a0d2;
    -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1);
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1);
}

[dir="rtl"] .ocdi__demo-import-notice:not(:empty) {
    border: 0;
    border-right: 4px solid #00a0d2;
}

/* Plugin button */

.ocdi__button-container {
    margin-top: 1.62em;
}

/* AJAX loader */

p.ocdi__ajax-loader {
    font-size: 1.5em;
    display: none;
}

.ocdi__ajax-loader .spinner {
    display: inline-block;
    float: none;
    visibility: visible;
    margin-bottom: 6px;
}

/* New grid layout */

.ocdi__gl-navigation li a {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.ocdi__gl-item {
    float: left;
    width: 100%;
    margin: 0 0 20px 0;
    position: relative;
    border: 1px solid #ddd;
    -webkit-box-shadow: 0 1px 1px -1px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 1px -1px rgba(0, 0, 0, 0.1);
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.ocdi__gl-item-image-container {
    display: block;
    overflow: hidden;
    position: relative;
    -webkit-backface-visibility: hidden;
    -webkit-transition: opacity 0.2s ease-in-out;
    transition: opacity 0.2s ease-in-out;
}

.ocdi__gl-item-image-container::after {
    content: "";
    display: block;
    padding-top: 66.66666%;
}

.ocdi__gl-item-image {
    height: auto;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    -webkit-transition: opacity 0.2s ease-in-out;
    transition: opacity 0.2s ease-in-out;
}

.ocdi__gl-item-image--no-image {
    display: inline-block;
    width: 50%;
    text-align: center;
    position: absolute;
    top: 45%;
    right: 25%;
    left: 25%;
}

.ocdi__gl-item-footer {
    height: 30px;
    margin: 0;
    padding: 10px;
    -webkit-box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
    background: #ffffff;
    background: rgba(255, 255, 255, 0.65);
}

h4.ocdi__gl-item-title {
    width: 70%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: inline-block;
    margin: 6px 0 0 0;
}

.ocdi__gl-item-footer--with-preview h4.ocdi__gl-item-title {
    width: calc(100% - 140px);
}

.ocdi__gl-item-button {
    float: right;
}

.ocdi__gl-item-button + .ocdi__gl-item-button {
    margin-right: 5px;
}

@media (max-width: 782px) {
    h4.ocdi__gl-item-title,
    .ocdi__gl-item-footer--with-preview h4.ocdi__gl-item-title {
        width: 100%;
        margin-bottom: 10px;
    }

    .ocdi__gl-item-button {
        width: calc(50% - 10px);
        margin-bottom: 10px;
    }

    .ocdi__gl-item-button + .ocdi__gl-item-button {
        float: left;
    }

    .ocdi__gl-item-footer {
        height: 72px;
    }
}

.ocdi__gl-header {
    display: inline-block;
    width: calc(100% - 40px);
    background-color: #ffffff;
    margin-bottom: 20px;
    padding: 0 20px;
}

.ocdi__gl-navigation {
    font-size: 13px;
    width: 100%;
    float: left;
}

.ocdi__gl-navigation ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.ocdi__gl-navigation li {
    float: left;
    margin: 0 15px;
}

.ocdi__gl-navigation li.active a,
.ocdi__gl-navigation li.active a:hover {
    border-bottom: 4px solid #666666;
}

.ocdi__gl-navigation li a {
    display: block;
    text-align: center;
    text-decoration: none;
    color: #444444;
    border-bottom: 4px solid #ffffff;
    padding: 15px 0;
}

.ocdi__gl-navigation li a:hover {
    color: #00a0d2;
    border-bottom: 4px solid #ffffff;
    cursor: pointer;
}

.ocdi__gl-search-input {
    width: 100%;
    margin: 10px 0;
}

@media (min-width: 640px) {
    .ocdi__gl-navigation {
        width: calc(100% - 180px);
    }

    .ocdi__gl-navigation li {
        margin: 0;
    }

    .ocdi__gl-navigation li a {
        padding: 15px;
    }

    .ocdi__gl-search-input {
        display: inline-block;
        width: 180px;
        height: 30px;
        margin: 0;
        margin-top: 11px;
    }

    .ocdi__gl-item-container {
        margin-right: -20px;
    }

    .ocdi__gl-item {
        width: calc(50% - 20px);
        margin: 0 20px 20px 0;
    }
}

@media (min-width: 1120px) {
    .ocdi__gl-item-container {
        margin-right: -30px;
    }

    .ocdi__gl-item {
        width: calc(25% - 30px);
        margin: 0 30px 30px 0;
    }
}

/* Grid animations */
@keyframes ocdi-fade {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.ocdi-is-fadeout {
    animation: ocdi-fade linear 200ms 1 forwards;
}

.ocdi-is-fadein {
    animation: ocdi-fade linear 200ms 1 reverse forwards;
}

/* Grid layout modal window */

.ocdi__modal-image-container {
    width: 100%;
    height: 180px;
    margin: 0;
    overflow: hidden;
}

.ocdi__modal-item-title {
    margin-top: 0.5em;
    font-weight: bold;
}

.ocdi__modal-image-container img {
    width: 100%;
}

.ocdi__modal-notice.ocdi__demo-import-notice:not(:empty) {
    border: 1px solid #e5e5e5;
    border-left: 4px solid #00a0d2;
    margin: 1em 0 0;
}

/* Redux */
.ocdi__redux-option-name-label {
    margin-right: 5px;
}

#TB_window .ocdi__gl-item-container.wp-clearfix.js-ocdi-gl-item-container {
    margin-right: 0px;
    overflow: auto;
    height: calc(100% - 182px);
    text-align: center;
    display: flex;
    flex-grow: 0;
    max-width: 100%;
    flex-wrap: wrap;
    align-content: baseline;
    align-items: flex-start;
    justify-content: center;
}

p.mesmerize_install_notice.no-demos-avaiable {
    text-align: center;
    border-left: none;
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 30px;
    text-transform: uppercase;
}

.ocdi__gl-item.js-ocdi-gl-item .dev-mode {
    position: absolute;
    z-index: 10;
    right: 0;
    padding: 8px 20px 8px 20px;
    background: #f50600;
    text-transform: uppercase;
    color: #ffffff;
    font-size: 11px;
    border-right: none;
    letter-spacing: 0.5px;
    font-weight: bold;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid white;
    text-align: right;
    line-height: 1;
}

.ocdi__gl-item.js-ocdi-gl-item .dev-mode span {
    font-size: 9px;
    font-weight: 300;
}

div#TB_window.ocdie-tbWindow {
    width: calc(100vw - 120px) !important;
    margin-left: calc(-50vw + 60px) !important;
    height: calc(100vh - 40px) !important;
    box-sizing: border-box;
}

div#TB_ajaxContent #TB_ajaxContent {
    height: 100% !important;
}

div#TB_window.ocdie-tbWindow #TB_ajaxContent {
    height: 100% !important;
    display: block;
    max-height: 100% !important;
    overflow: hidden;
    padding: 0px;
    background-image: linear-gradient(to top, #48c6ef 0%, #6f86d6 100%);
    border-radius: 0px;
    user-select: none;
}

div#TB_window.ocdie-tbWindow div#TB_title {
    display: none;
}

div#TB_window.ocdie-tbWindow #TB_ajaxContent .ocdi__gl.js-ocdi-gl {
    box-sizing: border-box;
    display: block;
    height: 100%;
}

div#TB_window.ocdie-tbWindow #TB_ajaxContent .popup-header {
    color: #ffffff;
    text-align: center;
}

div#TB_window.ocdie-tbWindow #TB_ajaxContent .popup-header h2 {
    color: #ffffff;
    font-size: 40px;
    line-height: 1;
    margin-bottom: 0;
}

div#TB_window.ocdie-tbWindow #TB_ajaxContent .popup-header p {
    margin-top: 0;
    font-size: 20px;
    line-height: 1;
}

div#TB_window.ocdie-tbWindow #TB_ajaxContent .ocdi__gl-item.js-ocdi-gl-item {
    width: 20%;
    min-width: 356px;
    padding: 15px;
    border: none;
    margin: 0;
    box-shadow: none;
    float: none;
    box-sizing: border-box;
    display: block;
}

div#TB_window.ocdie-tbWindow #TB_ajaxContent .ocdi__gl-item.js-ocdi-gl-item .pro-icon {
    display: block;
    top: 15px;
    left: 15px;
    border-top-left-radius: 8px;
}

div#TB_window.ocdie-tbWindow #TB_ajaxContent .ocdi__gl-header.js-ocdi-gl-header {
    background-color: rgba(255, 255, 255, 0.32);
    display: block;
    margin-bottom: 0px;
}

div#TB_window.ocdie-tbWindow #TB_ajaxContent .ocdi__gl-navigation li a {
    color: #ffffff;
    border-bottom-color: transparent;
    text-transform: uppercase;
}

div#TB_window.ocdie-tbWindow #TB_ajaxContent .ocdi__gl-navigation li:hover a,
div#TB_window.ocdie-tbWindow #TB_ajaxContent .ocdi__gl-navigation li.active a {
    border-bottom-color: #ffffff;
}

div#TB_window.ocdie-tbWindow #TB_ajaxContent input.ocdi__gl-search-input.js-ocdi-gl-search::-webkit-input-placeholder,
div#TB_window.ocdie-tbWindow #TB_ajaxContent input.ocdi__gl-search-input.js-ocdi-gl-search::placeholder,
div#TB_window.ocdie-tbWindow #TB_ajaxContent input.ocdi__gl-search-input.js-ocdi-gl-search {
    background-color: transparent;
    color: #ffffff;
}

div#TB_window.ocdie-tbWindow #TB_ajaxContent .ocdi__gl-item-image-container {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 5px 8px 0px rgba(0, 0, 0, 0.14), 0px 1px 14px 0px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 1;
}

div#TB_window.ocdie-tbWindow #TB_ajaxContent .ocdi__gl-item-footer.ocdi__gl-item-footer--with-preview {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 5px 8px 0px rgba(0, 0, 0, 0.14), 0px 1px 14px 0px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 10;
    background: white;
}

div#TB_window.ocdie-tbWindow #TB_ajaxContent .close-button {
    text-align: left;
    position: absolute;
    right: 0.5em;
    top: 0.5em;
    font-size: 30px;
    color: #c7c7c7;
    cursor: pointer;
}

div#TB_window.ocdie-tbWindow #TB_ajaxContent .close-button span.dashicons.dashicons-no {
    font-size: inherit;
    width: 1em;
    height: 1em;
}

div#TB_window.ocdie-tbWindow #TB_ajaxContent .close-button:hover {
    color: #e2e2e2;
}

div#TB_window.ocdie-tbWindow #TB_ajaxContent .ocdi__gl-item.js-ocdi-gl-item .dev-mode {
    margin-top: 0px;
    margin-right: 15px;
    border-radius: 0px 0px 0px 8px;
    border: 2px solid #ffffff;
}

div#TB_window.ocdie-tbWindow #TB_ajaxContent .ocdi__gl-header.js-ocdi-gl-header nav.ocdi__gl-navigation {
    width: 100%;
    float: none;
}

div#TB_window.ocdie-tbWindow #TB_ajaxContent .ocdi__gl-header.js-ocdi-gl-header ul {
    display: block;
}

div#TB_window.ocdie-tbWindow #TB_ajaxContent .ocdi__gl-header.js-ocdi-gl-header ul li {
    float: none;
    display: inline-block;
}

div#TB_window.ocdie-tbWindow #TB_ajaxContent h4.ocdi__gl-item-title {
    text-align: left;
}
