/* GENERAL */
body.toplevel_page_TMEA_settings #wpcontent {
    padding: 0;
}

.cmb2-options-page.option-TMEA_settings .notice {
    padding: 15px 20px;
    margin: 0 40px 40px 40px;
}

.cmb2-options-page.option-TMEA_settings .notice strong {
    font-weight: 700;
    color: #111;
}

.cmb2-options-page.option-TMEA_settings .notice p {
    font-size: 14px;
}

#cmb2-metabox-TMEA_settings_metabox {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    column-gap: 0px;
    background: #fff;
}

.option-TMEA_settings h2 {
    padding: 35px 40px !important;
    margin: 0px 0 60px 0 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    display:flex;
    flex-direction: row;
    align-items: center;
    background: #2e5d9f;
    color:#fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    text-transform: uppercase;
}
    
.option-TMEA_settings h2 .tme-version {
    font-size: 15px;
    color: #fff;
    display: block;
    margin-left:auto;
}

.option-TMEA_settings h2 img {
    max-width: 200px;
    width: 100%;
    height: auto;
}

#adminmenu #toplevel_page_TMEA_settings div.wp-menu-image::before {
    content: "\e813";
    font-family: eicons;
    font-size: 18px;
    margin-top: 1px;
}

#TMEA_settings_metabox .cmb-tabs-wrap .cmb2-wrap .cmb2-metabox>.cmb-row {
    margin-top: 0;
    border: none;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    box-shadow: none;
    padding: 20px;
    display: flex !important;
    margin-right: -1px;
    align-items: flex-start;
    justify-content: space-between;
    background: transparent !important;
}

#TMEA_settings_metabox .cmb-tabs-wrap .cmb2-wrap .cmb2-metabox>.cmb-row:not(.cmb-tab-active-item) {
    display: none !important;
}

.cmb2-options-page.option-TMEA_settings {
    margin: 0px 0px 40px 0px;
    max-width: none;
}

#TMEA_settings_metabox .cmb2-metabox>.cmb-row>.cmb-th {
    float: none;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    width: auto;
}

#TMEA_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td {
    margin: 0;
    width: auto;
    padding-top:3px;
}

#TMEA_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td>.regular-text {
    width: 100% !important;
    max-width: 100% !important;
}

#TMEA_settings_metabox .cmb2-wrap .cmb-row::after {
    display: none
}

#TMEA_settings_metabox p.submit {
    text-align: right;
    margin: 40px 0 0 0;
    padding: 0;
}

#TMEA_settings_metabox p.submit .button {
    background: #2e5d9f;
    border: none !important;
    padding: 20px 30px;
    line-height: 1;
    font-weight: 700;
    box-shadow: 0px 5px 23px 0px rgba(5, 9, 54, 0.12);
    border-radius: 5px;
    outline: none;
    transition: background .2s ease-in-out;
    text-transform: uppercase;
    font-size: 14px;
    margin:0 40px;
}

#TMEA_settings_metabox p.submit .button:hover {
    background: #009ffd;
}

#TMEA_settings_metabox .cmb2-metabox > .cmb-row > .cmb-td > input[type=number].regular-text {
    max-width: 70px !important;
  }
  
#TMEA_settings_metabox .wp-picker-container input[type="text"].wp-color-picker {
    width:100% !important;
    max-width:70px !important;
  }

#TMEA_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td button,
#TMEA_settings_metabox .wp-picker-container .wp-color-result-text,
#TMEA_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td .button,
#TMEA_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td input {
  border-color:#ddd !important;
  outline:none !important;
  box-shadow:none !important;
}

/* TABS */

.cmb-tabs-wrap {
    box-sizing: border-box;
    display: flex;
    -webkit-box-flex: 0;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    flex-wrap: wrap;
    padding:0 40px
}

.cmb-tabs-wrap .cmb-tabs {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
}

.cmb-tabs-wrap .cmb2-wrap {
    box-shadow: 0px 10px 10px 0px rgba(194, 204, 222, 0.3);
    position: relative;
    z-index: 2;
}

.cmb-tabs-wrap .cmb-tabs .cmb-tab {
    display: flex;
    flex-wrap: wrap;
    cursor: pointer;
    padding: 25px;
    font-weight: 700;
    background: #f8fafb;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    margin-right: 6px;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    line-height: 1;
    align-items: center;
}

.cmb-tabs-wrap .cmb-tabs .cmb-tab .cmb-tab-icon .dashicons {
    margin-right: 5px;
    font-size: 20px;
    color: #009ffd;
    display: inline;
}

.cmb-tabs-wrap .cmb-tabs .cmb-tab:hover {
    color: #111;
    background-color: #fff;
}

.cmb-tabs-wrap .cmb-tabs .cmb-tab.active {
    background-color: #fff;
    box-shadow: 0px 0px 10px 0px rgba(194, 204, 222, 0.3);
    color: #111;
}


/* TAB ICONS */

#TMEA_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td a.demo-link,
#TMEA_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td a.doc-link {
    text-decoration: none;
    margin-right: 20px;
    color: #999;
    position: relative;
    transition: all .2s ease-in-out;
    outline: none !important;
    box-shadow: none !important;
}

#TMEA_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td a.demo-link {
    margin-right: 5px;
}

#TMEA_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td a:hover {
    color: #009ffd;
}

#TMEA_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td a span.dashicons {
    vertical-align: middle;
    font-size: 20px;
    width: auto;
    height: auto;
}

#TMEA_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td a.demo-link span.dashicons {
    font-size: 18px;
}

#TMEA_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td a:after,
#TMEA_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td a:before {
    transition: all .2s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

#TMEA_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td a:hover:after,
#TMEA_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td a:hover:before {
    opacity: 1;
    visibility: visible;
}

#TMEA_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td a:after {
    position: absolute;
    top: -7px;
    left: 10px;
    transform: translateX(-50%) translateY(-100%);
    font-size: 12px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    line-height: 1;
    padding: 7px 10px;
    border-radius: 50px;
}

#TMEA_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td a:before {
    position: absolute;
    top: -7px;
    left: 10px;
    content: '';
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.7);
    transform: translateX(-50%);
}

#TMEA_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td a.demo-link:after {
    content: 'DEMO';
}

#TMEA_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td a.doc-link:after {
    content: 'DOCUMENTATION';
}

/* SWITCH */

.cmb2-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cmb2-switch input {
    display: none;
}

.cmb2-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.cmb2-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.24);
}


#side-sortables .cmb-row .cmb2-switch+.cmb2-metabox-description {
    padding-bottom: 0;
}

input+.cmb2-slider {
    background-color: #009ffd;
}


input+.cmb2-slider:before {
    -webkit-transform: translateX(24px);
    -ms-transform: translateX(24px);
    transform: translateX(24px);
}

input:checked+.cmb2-slider {
    background-color: #ccc;
}


input:checked+.cmb2-slider:before {
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
}

.cmb2-slider.round {
    border-radius: 50px;
}

.cmb2-slider.round:before {
    border-radius: 50%;
}

/* MEDIA QUERIES */

@media only screen and (max-width: 1024px) {
    #cmb2-metabox-TMEA_settings_metabox {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 767px) {
    .cmb-tabs-wrap .cmb-tabs .cmb-tab {
        width: 100%;
        margin: 0;
        border-radius: 0
    }

    #TMEA_settings_metabox .cmb-tabs-wrap .cmb2-wrap .cmb2-metabox>.cmb-row {
        display: block !important;
    }

    #TMEA_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td {
        padding: 0;
    }
}

@media only screen and (max-width: 450px) {
    #TMEA_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td {
        padding: 0;
    }
}