#ecwid-product-popup-content {
    display: none;
}

#ecwid-product-popup-content a {
    text-decoration: none;
}

#ecwid-product-popup-content.open {
    display: block;
}

#ecwid-product-popup-content .media-modal-close:hover {
    text-decoration: none;
}

#ecwid-product-popup-content .hidden {
    display: none !important;
    visibility: hidden !important;
}

/* Notices */
#ecwid-product-popup-content .notice {
    display: block;
    font-size: 12px;
    /* open_sansbold; */
    font-weight: 700;
    padding: .5em 1.7em;
    border-bottom: 1px solid transparent;
    line-height: 1.7em;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/*
 * Menu items visibility
 */
#ecwid-product-popup-content .media-frame .media-frame-content {
    top: 50px;
}

#ecwid-product-popup-content .media-modal-content .media-menu a {
    display: none
}

#ecwid-product-popup-content .media-modal-content[data-mode=add-product] .media-menu a[data-content=add-product],
#ecwid-product-popup-content .media-modal-content .media-menu a[data-content=customize],
#ecwid-product-popup-content .media-modal-content[data-mode=selected-product] .media-menu a[data-content=selected-product] {
    display: inherit;
}

/*
 * Content area visibility
 */
#ecwid-product-popup-content .media-modal-content .media-frame-title,
#ecwid-product-popup-content .media-modal-content .media-frame-content,
#ecwid-product-popup-content .media-modal-content .media-toolbar-primary {
    display: none;
}

#ecwid-product-popup-content .media-modal-content[data-active-dialog=add-product] .media-frame-title.add-product,
#ecwid-product-popup-content .media-modal-content[data-active-dialog=customize] .media-frame-title.customize,
#ecwid-product-popup-content .media-modal-content[data-active-dialog=selected-product] .media-frame-title.selected-product,
#ecwid-product-popup-content .media-modal-content[data-active-dialog=add-product] .media-frame-content.add-product,
#ecwid-product-popup-content .media-modal-content[data-active-dialog=customize] .media-frame-content.customize,
#ecwid-product-popup-content .media-modal-content[data-active-dialog=selected-product] .media-frame-content.selected-product,
#ecwid-product-popup-content .media-modal-content[data-mode=add-product] .media-frame-toolbar .media-toolbar-primary.add-product,
#ecwid-product-popup-content .media-modal-content[data-mode=selected-product] .media-frame-toolbar .media-toolbar-primary.selected-product,
#ecwid-product-popup-content .media-modal-content[data-mode=customize] .media-frame-toolbar .media-toolbar-primary.customize {
    display: inherit;
}

/*
 * Size and centering
 */
@media only screen and (min-width: 960px) and (min-height: 660px) {

    html:not(.ie8) #ecwid-product-popup-content .media-modal-content {
        bottom: inherit;
        height: 650px;
        left: 50%;
        position: absolute;
        right: inherit;
        top: 50%;
        transform: translate(-50%, -50%);
        -moz-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        width: 900px;
    }
}

@media only screen and (min-width: 960px) and (min-height: 400px) and (max-height: 660px) {

    html:not(.ie8) #ecwid-product-popup-content .media-modal-content {
        left: 50%;
        position: absolute;
        right: inherit;
        transform: translate(-50%, 0%);
        -moz-transform: translate(-50%, 0%);
        -ms-transform: translate(-50%, 0%);
        -webkit-transform: translate(-50%, 0%);
        width: 900px;
    }
}

@media only screen and (min-width: 640px) and (max-width: 960px) and (min-height: 660px) {

    html:not(.ie8) #ecwid-product-popup-content .media-modal-content {
        bottom: inherit;
        height: 650px;
        position: absolute;
        top: 50%;
        transform: translate(0%, -50%);
        -moz-transform: translate(0%, -50%);
        -ms-transform: translate(0%, -50%);
        -webkit-transform: translate(0%, -50%);
    }
}

@media only screen and (max-width: 750px) {
    #ecwid-product-popup-content .store-settings-preview {
        display: none !important;
    }

    #ecwid-product-popup-content .store-settings-wrapper {
        padding-left: 0px;
    }
}

.ecwid-add-product {
    padding: 40px 20px;
}

#ecwid-product-popup-content .add-product .products {
    margin-bottom: 15px;
}

#ecwid-product-popup-content .add-product .products .selected-product {
    background: #F3F6F8;
    box-shadow: inset 0 0 0 2px #2A90BE;
}

#ecwid-product-popup-content .add-product .products tr {
    cursor: pointer;
}

#ecwid-product-popup-content .add-product .products td {
    vertical-align: middle;
}

#ecwid-product-popup-content .add-product .products .product-thumb>div {
    height: 30px;
    padding-right: 20px;
    width: 30px;
    text-align: center;
}

#ecwid-product-popup-content .add-product .products .product-thumb img {
    max-width: 100%;
    max-height: 100%;
}

#ecwid-product-popup-content .add-product .fixed .column-sku {
    width: 20%;
}

#ecwid-product-popup-content .add-product .widefat .check-column {
    width: 3em;
}

#ecwid-product-popup-content .add-product .products-search {
    margin-bottom: 30px;
    text-align: right;
}

#ecwid-product-popup-content .add-product .products-search #product-search-input {
    border-radius: 2px;
    min-width: 200px;
    padding: 5px;
}

#ecwid-product-popup-content .add-product .tablenav-pages {
    text-align: right;
}

#ecwid-product-popup-content .add-product .tablenav-pages .current-page {
    padding: 5px 8px;
    vertical-align: top;
}

.media-toolbar-primary .toolbar-link {
    margin-top: 21px;
    float: left;
}

@media screen and (max-width: 782px) {
    #ecwid-product-popup-content .add-product .tablenav .displaying-num {
        position: static;
    }

    #ecwid-product-popup-content .add-product .tablenav-pages .pagination-links a,
    #ecwid-product-popup-content .add-product .tablenav-pages-navspan {
        padding: 5px 7px 9px;
    }

    #ecwid-product-popup-content .add-product .tablenav-pages .pagination-links,
    #ecwid-product-popup-content .add-product .tablenav-pages .pagination-links .current-page {
        font-size: 14px;
        padding: 6px 8px 7px;
    }

    #ecwid-product-popup-content .add-product .products,
    #ecwid-product-popup-content .add-product .products tbody,
    #ecwid-product-popup-content .add-product .products tr,
    #ecwid-product-popup-content .add-product .products td {
        display: block;
        width: 100%;
    }

    #ecwid-product-popup-content .add-product .products thead {
        display: block;
        width: 100%;
    }

    #ecwid-product-popup-content .add-product .products thead .column-name {
        box-sizing: border-box;
        float: left;
        padding-left: 65px;
        width: 100%;
    }

    #ecwid-product-popup-content .add-product .products thead .column-sku {
        display: none;
    }

    #ecwid-product-popup-content .add-product .products tr {
        overflow: hidden;
    }

    #ecwid-product-popup-content .add-product .products.widefat .check-column {
        display: none;
    }

    #ecwid-product-popup-content .add-product .products .product-thumb {
        float: left;
        height: 50px;
        width: 50px;
    }

    #ecwid-product-popup-content .add-product .products .product-name {
        font-weight: 600;
        padding-bottom: 0;
    }

    #ecwid-product-popup-content .add-product .products .product-name,
    #ecwid-product-popup-content .add-product .products .column-sku {
        display: block;
        clear: none !important;
        padding-left: 70px;
        text-align: left;
    }

    #ecwid-product-popup-content .add-product .products tr td::before {
        content: none !important;
    }

    #ecwid-product-popup-content .add-product .products tr:not(.inline-edit-row):not(.no-items) td.column-primary~td:not(.check-column) {
        display: block;
        padding-left: 70px;
    }
}

@media screen and (max-width: 480px) {
    #ecwid-product-popup-content .add-product .tablenav .displaying-num {
        display: block;
        margin-bottom: 10px;
    }
}

#ecwid-product-popup-content .widget-settings {
    margin-bottom: 15px;
    overflow: hidden;
}

#ecwid-product-popup-content .widget-settings__left {
    float: left;
    width: 40%;
}

#ecwid-product-popup-content .widget-settings__right {
    float: right;
    width: 60%;
}

#ecwid-product-popup-content .widget-settings h3 {
    font-size: 20px;
    margin-bottom: 5px;
    line-height: 1.3em;
}

#ecwid-product-popup-content .widget-settings .note {
    color: #bbb;
    margin-right: 30px;
}

#ecwid-product-popup-content .media-frame-content.customize {
    padding-left: 43px;
}

#ecwid-product-popup-content .media-frame-content .customize {
    padding-left: 43px;
}

#ecwid-product-popup-content .widget-settings .checkbox-option {
    margin: 35px 0px;
    display: table;
}

#ecwid-product-popup-content .widget-settings .checkbox-option>* {
    display: table-cell;
}


#ecwid-product-popup-content .widget-settings .checkbox-option .label {
    color: black;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4em;
}

#ecwid-product-popup-content .add-product .empty-page {
    color: #888;
    max-width: 360px;
    margin: 60px auto 40px;
    padding: 0 20px;
}

#ecwid-product-popup-content .add-product .empty {
    cursor: default;
}

#ecwid-product-popup-content .add-product .empty-page__term {
    font-style: italic;
}

#ecwid-product-popup-content .add-product .empty-page__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

#ecwid-product-popup-content .add-product .empty-page__suggestions-title {
    color: #333;
}

#ecwid-product-popup-content .add-product .empty-page__suggestions-list {
    list-style: disc;
    margin: 5px 0;
    padding-left: 18px;
}

#ecwid-product-popup-content .add-product .empty-page__suggestions-list li {
    margin: 0 0 5px;
}

/*
 * Two styles below are the copy of wp pre-4.3 styles for close cross in the up right corner
 * Need to use those to make sure it is displayed the same way across different wp versions
 */
#ecwid-product-popup-content .media-modal-close {
    height: 30px;
    position: absolute;
    right: 10px;
    text-decoration: none;
    top: 10px;
    transition: color .1s ease-in-out, background .1s ease-in-out;
    -webkit-transition: color .1s ease-in-out, background .1s ease-in-out;
    width: 30px;
    z-index: 1000;
}

#ecwid-product-popup-content .media-modal-close span.media-modal-icon {
    background-image: none;
    display: block;
    height: 15px;
    margin-top: 5px;
    text-align: center;
    width: 30px;
}

#ecwid-product-popup-content .sorted .sorting-indicator {
    visibility: visible;
}

#search-submit {
    position: relative;
}

#search-submit .searching-icon {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

#search-submit.searching .button-text,
#search-submit .searching-icon {
    visibility: hidden;
}

#search-submit .button-text,
#search-submit.searching .searching-icon {
    visibility: visible;
}

#ecwid-product-popup-content.ec-store-gutenberg .media-frame-menu,
#ecwid-product-popup-content.ec-store-gutenberg .toolbar-link.customize-appearance,
#ecwid-product-popup-content.ec-store-gutenberg .toolbar-link.add-product {
    display: none !important;
}

#ecwid-product-popup-content.ec-store-gutenberg .media-frame-toolbar,
#ecwid-product-popup-content.ec-store-gutenberg .media-frame-content,
#ecwid-product-popup-content.ec-store-gutenberg .media-frame-title {
    left: 0;
}


@media only screen and (max-width: 640px) {
    #ecwid-product-popup-content .note.pb-note {
        text-align: left;
        width: auto;
    }

    #ecwid-product-popup-content .pb-views {
        text-align: center;
    }

    #ecwid-product-popup-content .customize input.number {
        margin-left: inherit;
    }

    #ecwid-product-popup-content .ecwid-pb-view-size {
        margin-left: 25px;
        margin-right: 25px;
    }

    #ecwid-product-popup-content .products-search {
        display: table;
    }

    #ecwid-product-popup-content .search-input {
        width: 100%;
        padding-right: 10px;
    }

    #ecwid-product-popup-content .search-input input {
        width: 100%;
    }

    #ecwid-product-popup-content .search-button,
    #ecwid-product-popup-content .search-input {
        display: table-cell;
        vertical-align: middle;
    }

    #ecwid-product-popup-content .wp-list-table thead {
        display: none;
    }

    #ecwid-product-popup-content .add-product .products .product-thumb>div {
        width: 50px;
        height: 50px;
    }
}