/* GENERAL */

.cmb2-options-page.option-wpbits_afe_settings .notice {
    padding: 15px 20px;
    border-top: none;
    border-bottom: none;
    border-right: none;
    margin: 0 0 40px 0;
}

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

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

.cmb2-options-page.option-wpbits_afe_settings .notice.notice-success {
    border-color: #0aaac6;
}

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

.option-wpbits_afe_settings h2 {
    padding: 0 !important;
    margin: 60px 0 40px 0 !important;
    font-size: 30px !important;
    font-weight: 700 !important;
}

.option-wpbits_afe_settings h2 span {
    color: #0aaac6;
}

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

#wpbits_afe_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;
}

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

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

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

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

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

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

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

#wpbits_afe_settings_metabox p.submit .button {
    background: #0aaac6;
    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;
}

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

#wpbits_afe_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td button,
#wpbits_afe_settings_metabox .wp-picker-container .wp-color-result-text,
#wpbits_afe_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td .button,
#wpbits_afe_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: -webkit-box;
    display: -ms-flexbox;
    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;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.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: #0ab8d3;
    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 */

#wpbits_afe_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td a.demo-link,
#wpbits_afe_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;
}

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

#wpbits_afe_settings_metabox .cmb2-metabox>.cmb-row>.cmb-td a:hover {
    color: #0aaac6;
}

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

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

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

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

#wpbits_afe_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;
}

#wpbits_afe_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%);
}

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

#wpbits_afe_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: #0aaac6;
}


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-wpbits_afe_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
    }

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

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

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