@import url(bootstrap/css/bootstrap-reset-and-grid-min.css);
@import url(helpers.css);
@import url(variables.css);
@import url(wp-blocks.css);
@import url(fonts.css);
@import url(sidebar.css);
@import url(sub-header.css);

/* Fixing for components REM Units and Fonts */
html {
    font-size: var(--editor-rem-font-size, 10px) !important;
}

.editor-styles-wrapper {
    --editor-rem-font-size: 62.5%;
}

.block-editor-inner-blocks {
    width: 100%;
}

.block-editor-iframe__body {
    padding-left: 30px;
    padding-right: 30px;
}

.editor-styles-wrapper .container {
    width: 1200px;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.editor-styles-wrapper .row>.block-list-appender,
.editor-styles-wrapper .row>.is-layout-flex {
    flex-basis: 100%;
}

@media (max-width: 992px) {
    .editor-styles-wrapper .container {
        width: 100%;
    }
}

/* Buttons */

.editor-styles-wrapper .btn {
    text-decoration: none;
}

.editor-styles-wrapper .wp-element-button,
.editor-styles-wrapper .wp-block-button__link {
    line-height: var(--btn-df-line-height, 1.3) !important;
    padding: var(--btn-df-padding, 1.4rem 2.8rem) !important;
}

/* Typography */
@media (min-width: 992px) {
    div .editor-styles-wrapper {
        width: 1170px;
        max-width: 100% !important;
        padding: 3rem !important;
        color: var(--text-color);
        margin: 0 auto !important;
    }

    .editor-styles-wrapper .top-title-tag {
        font-weight: bold;
        color: var(--text-color);
    }

    .editor-styles-wrapper h1,
    .editor-styles-wrapper .h1,
    .editor-styles-wrapper .page-title,
    .editor-post-title .editor-post-title__input {
        font-size: 40px;
        font-family: var(--heading-font-family);
        color: var(--title-color);
        line-height: 1.2;
        margin-top: 0;
        margin-bottom: 30px;
        font-weight: 700;
    }

    .editor-styles-wrapper h2,
    .editor-styles-wrapper .h2,
    .editor-styles-wrapper .page-sub-title {
        font-family: var(--heading-font-family);
        color: var(--title-color);
        font-size: 34px;
        line-height: 1.2;
        font-weight: 700;
        margin-top: 0;
        margin-bottom: 30px;
    }

    .editor-styles-wrapper h3,
    .editor-styles-wrapper .h3,
    .editor-styles-wrapper .page-medium-title {
        font-family: var(--heading-font-family);
        color: var(--title-color);
        font-size: 29px;
        font-weight: 700;
        line-height: 1.2;
        margin-top: 0;
        margin-bottom: 30px;
    }

    .editor-styles-wrapper h4,
    .editor-styles-wrapper h5,
    .editor-styles-wrapper h6,
    .editor-styles-wrapper .h4,
    .editor-styles-wrapper .h5,
    .editor-styles-wrapper .h6,
    .editor-styles-wrapper .page-small-title {
        font-family: var(--heading-font-family);
        color: var(--title-color);
        line-height: 1.2;
        font-weight: 700;
        font-size: 24px;
        margin-top: 0;
        margin-bottom: 30px;
    }

    .editor-styles-wrapper h5,
    .editor-styles-wrapper .h5 {
        font-size: 20px;
    }

    .editor-styles-wrapper h6,
    .editor-styles-wrapper .h6 {
        font-size: 18px;
    }

    .editor-styles-wrapper .wp-block-paragraph,
    .editor-styles-wrapper .wp-block-table,
    .editor-styles-wrapper ul,
    .editor-styles-wrapper ol {
        font-size: 15px;
    }

    .editor-styles-wrapper ul,
    .editor-styles-wrapper ol {
        padding-left: 0;
        margin: var(--df-margin-unit) 0;
        margin-left: 1.5rem;
    }

    .editor-styles-wrapper ol {
        padding-left: 1rem;
    }

    .editor-styles-wrapper ul ul,
    .editor-styles-wrapper ol ul {
        margin: 2rem 0 2rem 2rem;
    }
}

.editor-styles-wrapper .hidden,
.editor-styles-wrapper .hidden-sm,
.editor-styles-wrapper .hidden-lg,
.editor-styles-wrapper .mobile-only {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 0.8 !important;
}

.editor-styles-wrapper .hidden:hover,
.editor-styles-wrapper .hidden-sm:hover,
.editor-styles-wrapper .hidden-lg:hover,
.editor-styles-wrapper .mobile-only:hover {
    opacity: 1;
}

.editor-styles-wrapper p {
    line-height: 1.2;
}

.editor-styles-wrapper b,
.editor-styles-wrapper strong {
    font-weight: 700;
}

.editor-styles-wrapper h1 strong,
.editor-styles-wrapper h2 strong,
.editor-styles-wrapper h3 strong,
.editor-styles-wrapper h4 strong,
.editor-styles-wrapper h5 strong,
.editor-styles-wrapper h6 strong {
    /*
	 * Makes it clear that we have a bold text in the heading.
	 *  We should avoid when possible.
	 */
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
}

.editor-styles-wrapper .small {
    font-size: 80%;
}

.block-editor__container img {
    max-width: 100%;
}

.block-editor-rich-text__editable a {
    color: var(--highlight-color);
}

.text-white .block-editor-rich-text__editable a,
.text-white .block-editor-rich-text__editable p,
.text-white .block-editor-rich-text__editable li {
    color: inherit;
}

/* Editor Styling */
.editor-block-list__layout {
    max-width: 100%;
}

.block-editor__container {
    background: #fff;
}

.mce-toolbar-grp {
    z-index: 10000 !important;
}

.mce-tooltip {
    display: none !important;
    pointer-events: none !important;
}

.editor-styles-wrapper,
body#tinymce {
    font-family: var(--body-font-family) !important;
}

body#tinymce {
    font-size: 16px !important;
    padding: 20px !important;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.text-white .shortcode-helper-wrapper {
    color: #222 !important;
}

.wp-block:not([class*="col-"], .wp-block-columns) {
    gap: 15px !important;
    max-width: 100%;
}

.wp-block[class*="col-"] {
    margin-left: 0;
    margin-right: 0;
}

.wp-block-quote {
    border: none;
}

.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-edit {
    margin-bottom: 5px;
}

.editor-styles-wrapper .wp-block-button__link {
    margin-bottom: 0;
}

.wp-block-shortcode label {
    gap: 0;
    padding-bottom: 0;
    margin: 0;
}

.block-editor-block-list__block[data-type="core/spacer"]:before {
    top: 0;
}

.editor-styles-wrapper .wp-block-spacer[class*="df-"],
.editor-styles-wrapper .wp-block-spacer[class*="hf-"] {
    height: 20px !important;
    border: 1px dashed rgba(155, 155, 155, 0.5);
    margin-bottom: 20px;
}

.editor-styles-wrapper .wp-block-buttons .wp-block-button+.wp-block-button {
    margin-left: 1.5rem !important;
}

/* Helpers */
.editor-styles-wrapper .top-negative-margin,
.editor-styles-wrapper .top-negative-mg {
    margin-top: 0 !important;
}

.img-full .img,
.is-style-img-full .img,
.is-style-img-full-rounded-df img {
    width: 100% !important;
    height: auto !important;
}

.img-full .components-resizable-box__container,
.is-style-img-full .components-resizable-box__container,
.is-style-img-full-rounded-df .components-resizable-box__container {
    display: contents !important;
}

.img-full .components-resizable-box__container img+div,
.is-style-img-full .components-resizable-box__container img+div,
.is-style-img-full-rounded-df .components-resizable-box__container img+div {
    display: none !important;
}

/* Grid */
@media (min-width: 992px) {
    .edit-post-visual-editor .row {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        align-items: center;
        gap: 15px;
    }

    .edit-post-visual-editor .col,
    .edit-post-visual-editor .col-md {
        flex: 1 !important;
        padding-left: 0;
        padding-right: 0;
    }

    .edit-post-visual-editor .col-1,
    .edit-post-visual-editor .col-md-1 {
        flex: 0 0 8.333333% !important;
        padding-left: 0;
        padding-right: 0;
    }

    .edit-post-visual-editor .col-2,
    .edit-post-visual-editor .col-md-2 {
        flex: 0 0 16.666667% !important;
        padding-left: 0;
        padding-right: 0;
    }

    .edit-post-visual-editor .col-3,
    .edit-post-visual-editor .col-md-3 {
        flex: 0 0 25% !important;
        padding-left: 0;
        padding-right: 0;
    }

    .edit-post-visual-editor .col-4,
    .edit-post-visual-editor .col-md-4 {
        flex: 0 0 33.333333% !important;
        padding-left: 0;
        padding-right: 0;
    }

    .edit-post-visual-editor .col-5,
    .edit-post-visual-editor .col-md-5 {
        flex: 0 0 41.666667% !important;
        padding-left: 0;
        padding-right: 0;
    }

    .edit-post-visual-editor .col-6,
    .edit-post-visual-editor .col-md-6 {
        flex: 0 0 50% !important;
        padding-left: 0;
        padding-right: 0;
    }

    .edit-post-visual-editor .col-7,
    .edit-post-visual-editor .col-md-7 {
        flex: 0 0 58.333333% !important;
        padding-left: 0;
        padding-right: 0;
    }

    .edit-post-visual-editor .col-8,
    .edit-post-visual-editor .col-md-8 {
        flex: 0 0 66.666667% !important;
        padding-left: 0;
        padding-right: 0;
    }

    .edit-post-visual-editor .col-9,
    .edit-post-visual-editor .col-md-9 {
        flex: 0 0 75% !important;
        padding-left: 0;
        padding-right: 0;
    }

    .edit-post-visual-editor .col-10,
    .edit-post-visual-editor .col-md-10 {
        flex: 0 0 83.333333% !important;
        padding-left: 0;
        padding-right: 0;
    }

    .edit-post-visual-editor .col-11,
    .edit-post-visual-editor .col-md-11 {
        flex: 0 0 91.666667% !important;
        padding-left: 0;
        padding-right: 0;
    }

    .edit-post-visual-editor .col-12,
    .edit-post-visual-editor .col-md-12 {
        flex: 0 0 100% !important;
        padding-left: 0;
        padding-right: 0;
    }

    .edit-post-visual-editor .centered-column {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* WP Body Class Conditional Styles */
#wpbody.header-is-hidden .wp-block-post-title {
    opacity: 0.2;
}

#wpbody.header-is-hidden .wp-block-post-title:hover {
    opacity: 1;
}

#wpbody.is-fullwidth-template div .editor-styles-wrapper {
    width: calc(100% - 48px) !important;
    padding: 0.1rem !important;
    overflow: auto;
    overflow-x: hidden;
}

/* Element highlights */
.acf-postbox.glow {
    outline: 1px solid var(--wp-admin-theme-color);
    box-shadow: 0 0 10px var(--wp-admin-theme-color);
    transition: all ease 3s;
    animation: glow 4s 2;
    z-index: 1;
}

.acf-postbox:hover {
    outline: 1px solid var(--wp-admin-theme-color);
    z-index: 1;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 10px var(--wp-admin-theme-color);
    }

    25% {
        box-shadow: 0 0 0 var(--wp-admin-theme-color);
    }

    50% {
        box-shadow: 0 0 10px var(--wp-admin-theme-color);
    }

    75% {
        box-shadow: 0 0 0 var(--wp-admin-theme-color);
    }
}

/* Widgets Panel */
.widgets-php .block-editor-writing-flow .components-panel,
.widgets-php .block-editor-writing-flow .wp-block-widget-area__inner-blocks {
    background: #f2f2f2;
}

/* ACF Fields */
.acf-fields>.acf-field:has(.acf_disabled) {
    filter: grayscale(1);
    pointer-events: none;
    opacity: .8;
}