
/*
   Admin Backend Styles
*/
#wpcontent {
    height: auto;
}
#wp-link-wrap {
    height: 600px;
    margin-top: -300px;
}
#most-recent-results .query-notice-default,
#insert-jetpack-contact-form {
    display: none !important;
}
table.media .column-title .media-icon img {
    width: 100%;
    box-shadow: inset 0 0 5px rgb(0 0 0 / 5%);
    background: #f0f0f1;
}

/*
   WPBakery
*/
#vc_logo,
.composer-switch .logo-icon,
.vc_license-activation-notice,
#insert-jetpack-contact-form {
    display: none !important;
}

/* navbar */
#wpb_visual_composer .vc_navbar,
.vc_ui-panel-header-container {
    background: #007cba !important;
    border-color: #007cba;
}
#wpb_visual_composer .vc_navbar .vc_icon-btn:not([disabled]):hover {
    background: #0071a1;
}
/* switch button */
.composer-inner-switch > :nth-child(2) {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.composer-switch a, .composer-switch a:visited {
    background: #007cba !important;
}
.composer-switch a.wpb_switch-to-composer:hover,
.composer-switch a:visited.wpb_switch-to-composer:hover {
    background: #0071a1 !important;
}
/* raw html & js */
.vc_edit_form_elements textarea.textarea_raw_html,
.wpb_element_wrapper textarea.textarea_raw_html {
    font-size: 14px;
    color: rgb(9, 30, 66);
    background-color: rgba(9, 30, 66, 0.08);
    border-color: rgb(198 202 210);
    box-shadow: none;
}
.vc_edit_form_elements textarea.textarea_raw_html:focus,
.wpb_element_wrapper textarea.textarea_raw_html:focus {
    border-color: rgb(131 137 148);
}
/* cleaner vc checkbox list */
.checkbox_list .edit_form_line {
    max-height: 300px;
    overflow: auto;
    background: rgba(0, 0, 0, .05);
    position: relative;
    padding: 10px;
}
.checkbox_list label {
    display: block;
}


/*
    WP Menu Styling
*/
.menu-item-settings {
    z-index: inherit;
}
.menu-item-settings label {
    display: inline-block;
    margin: 7px 0 2px;
    font-size: 13px;
    font-style: normal;
}
.menu-item-settings .icons-selector {
    top: 0;
    width: 100%;
}
.menu-item-settings .icons-selector .fip-icons-container {
	max-height: 400px;
    overflow: auto;
}
.menu-item-settings .icons-selector .fip-box {
    margin: 0px;
}


/*
    Buttons
*/
.button{
    margin-bottom: 12px;
    text-align: center;
}
@media(min-width: 961px){
    .button.large{
        font-size: 15px;
        padding: 10px 20px;
        line-height: normal;
        height: auto;
    }
}
.button .dashicons {
    vertical-align: middle;
}
.wp-cancel-pw > .dashicons,
.wp-hide-pw > .dashicons {
    top: -.1em;
}
.button .dashicons.resize {
    width: 1.1em;
    height: 1.1em;
    font-size: 1.1em;
    line-height: inherit;
    vertical-align: inherit;
}
.button .dashicons.resize:first-child:last-child {
    line-height: 200%;
}
.button.small {
    font-size: 12px;
    line-height: 2;
    min-height: 2em;
}
.button.tiny {
    font-size: 11px;
    line-height: 1.8;
    min-height: 2em;
}
.button.small .dashicons,
.button.tiny .dashicons {
    width: 1em;
    height: 1em;
    font-size: 1em;
    margin-top: -2px;
}
.button.huge {
    font-size: 15px;
    padding: 3px 20px;
}
.button-ghost,
.wp-core-ui .button-ghost {
    color: #666666;
    border-color: #666666;
    background-color: rgba(230, 230, 230, .5);
}
.button-ghost:hover,
.wp-core-ui .button-ghost:hover {
    color: #0c0c0c;
    border-color: #0c0c0c;
    background-color: rgba(230, 230, 230, .5);
}
.button-danger,
.wp-core-ui .button-danger {
    color: #B43131;
    border-color: #B43131;
    background-color: rgba(250, 215, 215, .5);
}
.button-danger:hover,
.wp-core-ui .button-danger:hover {
    color: #7f1919;
    border-color: #7f1919;
    background-color: rgba(250, 215, 215, .5);
}
.button-primary.button-danger,
.wp-core-ui .button-primary.button-danger {
    color: #fff;
    border-color: #B43131;
    background-color: #B43131;
}
.button-primary.button-danger:hover,
.wp-core-ui .button-primary.button-danger:hover {
    color: #fff;
    border-color: #7f1919;
    background-color: #7f1919;
}
.button-dark,
.wp-core-ui .button-dark {
    color: #fff;
    border-color: #1e1e1e;
    background-color: #1e1e1e;
}
.button-dark:hover,
.wp-core-ui .button-dark:hover {
    color: #fff;
    border-color: #444444;
    background-color: #444444;
}
.button-tertiary,
.wp-core-ui .button-tertiary {
    background-color: transparent;
    color: var(--wp-admin-theme-color, #007cba);
    border-color: transparent;
}
.button-tertiary:hover,
.wp-core-ui .button-tertiary:hover,
.button-tertiary:focus,
.wp-core-ui .button-tertiary:focus {
    background-color: transparent;
    color: var(--wp-admin-theme-color-darker-10, #006ba1);
    border-color: var(--wp-admin-theme-color-darker-10, #006ba1);
}

/*
    Checkboxen
*/
input[type="checkbox"], input[type="radio"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/*
    Number Inputs
*/
input[type="number"] {
    padding-right: 0px;
}

/* 
    file_picker
*/
.file_picker_block .file_picker_preview {
    display: flex;
}
.file_picker_block .file_picker_anim,
.file_picker_block .file_picker_img {
    width: 150px;
    margin-left: -150px; 
    border: 1px solid #CCCCCC;
}
.file_picker_block .image_grid {
    width: 150px;
    background-image: url(img/transparency-pattern.png);
}
/* .wp_attachment_image p .button,
.button.edit-attachment,
.attachment-info .edit-attachment {
    display:none !important;
} */

/*
    Custom range slider

    Cross-Browser Styling, according to:
    https://css-tricks.com/styling-cross-browser-compatible-range-inputs-css/
*/
/* remove default styling */
input[type=range] {
    -webkit-appearance: none; /* Hides the slider so that custom slider can be made */
    width: 100%; /* Specific width is required for Firefox. */
    background: transparent; /* Otherwise white in Chrome */
    height: 21px;
    padding-left: 0px;
    padding-right: 0px;
    margin-top: 4px;
}
input[type=range]:focus {
    outline: none; /* Removes the blue border. */
}
/* style the track */
/* Safari & Chrome */
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    animate: 0.2s;
    background: rgba(144,144,144,.5);
    border-radius: 5px;
    border: 1px solid rgb(144,144,144);
}
/* Firefox */
input[type=range]::-moz-range-track {
    width: 100%;
    height: 3px;
    cursor: pointer;
    animate: 0.2s;
    background: rgb(200,200,200);
    border-radius: 5px;
    border: 1px solid rgb(144,144,144);
}
/* IE & Edge */
input[type=range]::-ms-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    animate: 0.2s;
    /* Hides the slider so custom styles can be added */
    background: transparent; 
    border-color: transparent;
    color: transparent;
}
input[type=range]::-ms-fill-lower {
    background: rgba(144,144,144,.5);
    border-radius: 5px;
    border: 1px solid rgb(144,144,144);
}
input[type=range]::-ms-fill-upper {
    background: rgba(144,144,144,.5);
    border-radius: 5px;
    border: 1px solid rgb(144,144,144);
}
/* style the thumb */
/* Safari & Chrome */
input[type=range]::-webkit-slider-thumb {
    margin-top: -7px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
    -webkit-appearance: none;
    border: 1px solid rgb(144,144,144);
    box-shadow: 0 1px 1px rgba(0,0,0,.2);
    height: 15px;
    width: 15px;
    border-radius: 100%;
    background: #F6F6F6;
    cursor: pointer;
    -webkit-transition: all .1s;
    transition: all .1s;
}
/* Firefox */
input[type=range]::-moz-range-thumb {
    border: 1px solid rgb(144,144,144);
    height: 15px;
    width: 15px;
    border-radius: 100%;
    background: #F6F6F6;
    cursor: pointer;
    transition: all .1s;
}
/* IE & Edge */
input[type=range]::-ms-thumb {
    border: 1px solid rgb(144,144,144);
    height: 15px;
    width: 15px;
    border-radius: 100%;
    background: #F6F6F6;
    cursor: pointer;
    transition: all .1s;
}
/* on focus */
input[type=range]:focus::-webkit-slider-thumb {
    background: #dcdcdc;
}
input[type=range]:focus::-moz-range-thumb {
    background: #dcdcdc;
}
input[type=range]:focus::-ms-thumb {
    background: #dcdcdc;
}

/*
    GREYD Radio Buttons
*/
.greyd_radio input[type="radio"] {
    position: absolute !important;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	width: 1px;
	border: 0;
	overflow: hidden;
}
.greyd_radio label {
    display: inline-block;
    position: relative;
    padding: 6px 12px 5px;
    margin: 0;
	color: rgba(0, 0, 0, 0.6);
    background-color: #fafafa;
	border: 1px solid rgba(0, 0, 0, 0.2);
	margin-right: -1px;
    font-size: 12px;
	line-height: 1;
	text-align: center;
	-webkit-transition: all 0.1s ease-in-out;
	transition: all 0.1s ease-in-out;
	cursor: pointer;
}
.greyd_radio label:first-of-type {
	border-radius: 4px 0 0 4px;
}
.greyd_radio label:last-of-type {
	border-radius: 0 4px 4px 0;
}

.greyd_radio input:checked + label {
    background-color: #dedede;
    color: #000;
    z-index: 1;
    -webkit-box-shadow: inset 0 0px 3px rgba(0,0,0,.2);
    box-shadow: inset 0 0px 3px rgba(0,0,0,.2);
}

/*
    Flex Section
*/
.flex{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.flex-center{
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.flex-vertical{
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
}
.flex-start{
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
}
.flex-end{
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

/*
    Info Box
*/
.greyd_info_box {
    color: #172b4d;
    padding: 8px 12px;
    border-radius: .3em;
    background: rgba(0,0,0,.05);
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    margin-bottom: 1em;
}
.greyd_info_box > .dashicons {
    margin: 0 .4em 0 0;
    font-size: 1.45em;
    height: 1em;
    width: 1em;
}
.greyd_info_box > div > b:first-child {
    display: block;
    margin-bottom: 4px
}
.greyd_info_box > div > p {
    margin: 0px;
}
/* blue styling  */
.greyd_info_box.blue,
.greyd_info_box.info {
    background: rgba(47, 128, 237, .2);
}
.greyd_info_box.blue > .dashicons,
.greyd_info_box.info > .dashicons {
    color: rgba(47, 128, 237, 1);
}
/* green styling  */
.greyd_info_box.green,
.greyd_info_box.success {
    background: rgba(39, 174, 96, .2);
}
.greyd_info_box.green > .dashicons,
.greyd_info_box.success > .dashicons {
    color: rgba(39, 174, 96, 1);
}
/* orange styling  */
.greyd_info_box.orange,
.greyd_info_box.warning {
    background: rgba(242, 153, 74, .2);
}
.greyd_info_box.orange > .dashicons,
.greyd_info_box.warning > .dashicons {
    color: #E1822E;
}
/* red styling  */
.greyd_info_box.red,
.greyd_info_box.alert,
.greyd_info_box.danger,
.greyd_info_box.error {
    background: rgba(235, 87, 87, .2);
}
.greyd_info_box.red > .dashicons,
.greyd_info_box.alert > .dashicons,
.greyd_info_box.danger > .dashicons,
.greyd_info_box.error > .dashicons {
    color: #EB5757;
}
/* purple styling  */
.greyd_info_box.new,
.greyd_info_box.purple {
    background: rgba(155, 81, 224, .2);
}
.greyd_info_box.new > .dashicons,
.greyd_info_box.purple > .dashicons {
    color: #9b51e0;
}
/* greyd styling  */
.greyd_info_box.greyd {
    background: linear-gradient(135deg, rgba(249, 221, 97, .4) 0%, rgba(242, 178, 90, .4) 100%);
}
.greyd_info_box.greyd > .dashicons {
    color: #f2b25a;
}
/* clear styling  */
.greyd_info_box.clear {
    color: inherit;
    padding: 0;
    background: transparent;
}
.greyd_info_box.clear > .dashicons {
    display: none;
}

/*
    Info Popup
*/
.greyd_popup_wrapper {
    position: relative;
    font-size: 14px;
    font-weight: 400;
}
.greyd_popup_wrapper .toggle {
    cursor: pointer;
    position: relative;
}
.greyd_popup_wrapper .toggle::after {
    content: " ";
    position: absolute;
    inset: -50%; /* increase the clickable area */
}
.greyd_popup_wrapper .popup:not(dialog) {
    position: absolute;
    display: block;
    z-index: -999;
    right: -6px;
    top: -6px;
    padding: 12px 12px 4px;
    width: 240px;
    border-radius: 4px;
    background: #fff;
    -webkit-box-shadow: 0px 5px 14px -2px rgba(0,0,0,.2);
    box-shadow: 0px 5px 14px -2px rgba(0,0,0,.2);
    
    opacity: 0;
    -webkit-transform: rotate(-2deg) scale(.8) rotate3d(2, 3, .5, -20deg) translate(40px, 0px);
    transform: rotate(-2deg) scale(.8) rotate3d(2, 3, .5, -20deg) translate(40px, 0px);
}
.greyd_popup_wrapper .popup.bottom:not(dialog) {
    top: auto;
    bottom: -6px;
    -webkit-transform: rotate(3deg) scale(.8) rotate3d(2, 3, .5, 20deg) translate(50px, 20px);
    transform: rotate(3deg) scale(.8) rotate3d(2, 3, .5, 20deg) translate(50px, 20px);
}
.greyd_popup_wrapper .toggle.checked {
    z-index: 100;
}
.greyd_popup_wrapper .toggle.checked + .popup:not(dialog) {
    opacity: 1;
    z-index: 99;
    -webkit-transform: none;
    transform: none;
    -webkit-transition: opacity .2s ease, -webkit-transform .2s ease;
    transition: opacity .2s ease, -webkit-transform .2s ease;
    transition: opacity .2s ease, transform .2s ease;
    transition: opacity .2s ease, transform .2s ease, -webkit-transform .2s ease;
}
.greyd_popup_wrapper .popup:not(dialog) > * {
    display: inline-block;
    line-height: 140%;
    margin-bottom: 7px;
    padding: 0;
}
.greyd_popup_wrapper .dashicons {
    height: 1em;
    width: 1em;
    font-size: 1.3em;
    vertical-align: text-top;
}

/* 
    iOS toggle switch
*/
.greyd_switch {
    position: relative;
    margin-bottom: 12px;
}
.greyd_switch label {
    display: flex;
    margin-top: 10px;
}
.greyd_switch label > span {
    position: relative;
    margin-right: 10px;
}
.greyd_switch input {
    display: block;
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 0%; height: 0%;
    margin: 0; padding: 0;
    cursor: pointer;
    opacity: 0;
    filter: alpha(opacity=0);
}
.greyd_switch input + span {
    display: inline-block;
    padding-left: 55px;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}
.greyd_switch input + span:before {
    content: "";
    position: absolute;
    display: inline-block;
    width: 40px;
    height: 20px;
    left: 0px;
    border-radius: 20px;
    border: 1px solid #575d65;
    box-shadow: none;
    transition: background 0.2s ease-out;
}
.greyd_switch input + span:after {
    content: "";
    position: absolute;
    display: block;
    width: 14px; height: 14px;
    top: 4px; left: 4px;
    border-radius: 20px;
    background: #575d65;
    transition: margin-left 0.1s ease-in-out;
}
.greyd_switch input:checked + span:before {
    background-color: #fff;
    transition: background 0.2s ease-in;
}
.greyd_switch input:checked + span:after {
    margin-left: 20px;
    background: #0081b6;
    -webkit-animation: popIn ease-in 0.3s normal;
            animation: popIn ease-in 0.3s normal;
}

/* 
    Backend Tabs
*/
.greyd_tabs,
.greyd_tabs.notice {
    display: flex;
    position: relative;
    height: 36px;
    margin: 20px -20px 20px -23px;
    padding: 0px 15px 0 18px;
    background-image: linear-gradient(180deg, #f1f1f1 0%, #e2e2e2 100%);
    width: calc(100% - 10px);
    overflow: auto;
}
.greyd_tabs::before {
    content: " ";
    position: absolute;
    display: block;
    left: 0;
    right: 0;
    bottom: 0;
    border-bottom: 1px solid #c4c4c4;
}
.wrap .greyd_tabs {
    width: auto;
}
.greyd_tabs .tab {
    display: flex;
    position: relative;
    align-items: center;
    font-size: 13px;
    font-weight: 400;
    margin: 0px 5px;
    padding: 0px 20px;
    color: #575756;
    background: #d7d7d7;
    border: 1px solid #c4c4c4;
    text-decoration: none;
    box-shadow: none;
    outline: 0;
    cursor: pointer;
    white-space: nowrap;
}
.greyd_tabs .tab:hover {
    color: #1e1f1f;
    background: #f1f1f1;
}
.greyd_tabs .tab.active {
    z-index: 1;
    font-weight: 600;
    color: #1e1f1f;
    background: #f1f1f1;
    border-top-width: 3px;
    border-bottom: 1px solid transparent;
    border-top-color: #505050;
}
.greyd_tabs .tab.blue:hover,
.greyd_tabs .tab.active.blue {
    border-top-color: rgba(47, 128, 237, 1);
}
.greyd_tabs .tab.wp:hover,
.greyd_tabs .tab.active.wp {
    border-top-color: #3072A6;
}
.greyd_tabs .tab.green:hover,
.greyd_tabs .tab.active.green {
    border-top-color: rgba(39, 174, 96, 1);
}
.greyd_tabs .tab.orange:hover,
.greyd_tabs .tab.active.orange {
    border-top-color: rgba(242, 153, 74, 1);
}
.greyd_tabs .tab.red:hover,
.greyd_tabs .tab.active.red {
    border-top-color: rgba(235, 87, 87, 1);
}
.greyd_tabs .tab.purple:hover,
.greyd_tabs .tab.active.purple {
    border-top-color: #9b51e0;
}
.greyd_tabs .tab.greyd:hover,
.greyd_tabs .tab.active.greyd {
    border-top-color: #f2b25a;
}
.greyd_tabs .tab .dashicons {
    margin-right: 6px;
}

/* 
    Announcement metabox 
*/
#announce_metabox.postbox .image_preview,
#announce_metabox.postbox .image_src {
    margin-top: 10px; 
}
#announce_metabox.postbox .image_preview {
    max-width: 200px;
    background-image: url(img/transparency-pattern.png);
}
#announce_metabox.postbox .image_preview > img { 
    display: block;
    width: 100%;
    border: 1px solid rgba(180,180,180,.4);
}
#announce_metabox.postbox .form-table input[type="text"] { 
    width: 100%;
}
#announce_metabox.postbox .form-table th { 
    padding-bottom: 0px; 
}
#announce_metabox.postbox .form-table th label + small { 
    display: block;
    font-weight: 400;
    font-style: italic;
    line-height: 1;
}

/* 
    Post Image Min-width (important for SVGs)
*/
#postimagediv .inside img {
    min-width: 150px;
}

/* 
    TinyMCE
*/
.mce-btn.mce-active,
.mce-btn.mce-active button,
.mce-btn.mce-active i,
.mce-btn.mce-active:hover button,
.mce-btn.mce-active:hover i {
    color: inherit !important;
}
table.mce-colorbutton-grid.mce-grid td.mce-grid-cell div {
    border-radius: 100%;
    line-height: 12px;
    font-weight: 400;
    margin: 2px;
}
table.mce-colorbutton-grid.mce-grid td.mce-grid-cell div:hover {
    border-color: rgba(0,149,255,.5)
}
table.mce-colorbutton-grid.mce-grid td.mce-grid-cell div[aria-selected="true"] {
    border-color: rgba(0,149,255,1)
}
.mce-btn.mce-btn-has-text:not(.mce-listbox) .mce-txt {
    line-height: 1;
    display: inline-block;
    margin: 3px 0 4px;
}
i.mce-i-backcolor {
    text-shadow: none;
    background: #BBB;
}
/* Color Picker */
table.greyd-color-picker.mce-grid td.mce-grid-cell div {
    position: relative;
    -webkit-transition: -webkit-transform .1s;
    transition: -webkit-transform .1s;
    transition: transform .1s;
    transition: transform .1s, -webkit-transform .1s;
}
table.mce-colorbutton-grid.mce-grid td.mce-grid-cell div:hover {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}
table.greyd-color-picker.mce-grid td.mce-grid-cell div[aria-selected="true"] {
    -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.25);
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
    border-color: transparent;
    -webkit-transform: none;
    transform: none;
}
table.greyd-color-picker.mce-grid td.mce-grid-cell div[aria-selected="true"]::after {
    content: ' ';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: block;
    border: 1px solid rgba(0,149,255,1);
    border-radius: 100%;
    margin: -4px;
}
