/* ACF "repeat-horizontal" class, display repeaters in horizontal columns */
.repeat-horizontal .acf-repeater tbody {
    display: flex;
    flex-direction: row;
}

.repeat-horizontal .acf-repeater tbody tbody {
    display: block;
}

.repeat-horizontal .acf-repeater tbody div[data-name="split_read_more_buttons"] tbody {
    display: table-row-group;
}

.repeat-horizontal .acf-repeater tr.acf-row:not(.acf-clone) {
    width: 100%;
}
.repeat-horizontal .acf-repeater tr.acf-row:not(.acf-clone) td.acf-fields {
    width: 100% !important; /* important is necessary because it gets overwritten on drag&drop  */
}

.repeat-horizontal .acf-repeater td.acf-fields div[data-name="images"] .acf-table {
    display: flex;
    flex-direction: column;
}

.repeat-horizontal .acf-repeater td.acf-fields div[data-name="images"] .acf-table .acf-row {
    display: flex;
}

.repeat-horizontal .acf-repeater td.acf-fields div[data-name="images"] .acf-table .acf-field {
    flex-grow: 1;
    flex-basis: 0;
}

.repeat-horizontal .acf-repeater tr.acf-row:hover, .repeat-horizontal .acf-repeater tr.acf-row:active, .repeat-horizontal .acf-repeater tr.acf-row:focus {
    z-index: 10 !important;
}

.repeat-horizontal .acf-repeater .acf-row-handle.remove {
    border-right: 1px solid #E1E1E1;
}

.acf-flexible-content .layout .acf-fc-layout-handle {
	background-color: #008EC2;
}

/* ACF Backend Cleanup */

div[data-type="group"]:not(.field-heading-style) > div.acf-label label,
.acf-field.group-heading-style > div.acf-label label {
	font-size: 2em !important;
}

div[data-type="repeater"] > div.acf-label label, .acf-field.special-label > div.acf-label label {
	font-size: 1.5em;
}

.acf-alert.acf-field {
	background-color: pink;
}

.acf-alert.acf-field .acf-input strong {
	font-size: 1.5em;
}

.acf-field ul.description {
    color: #667085;
}

.acf-field.hide-heading > div.acf-label {
    display: none;
}

.acf-field.only-description > div.acf-label label {
    display: none;
}

.acf-field.only-description > div.acf-label p.description {
    color: #3c434a;
    font-weight: 500;
}

/* .acf-field.field-heading-style > div.acf-label {
    font-size: 13px;
} */

/* .short-wysiwyg {
    min-height: unset !important;
    height: fit-content !important;
} */

.short-wysiwyg textarea {
  min-height: 100px!important;
}

.no-border-padding .acf-fields.-border {
    border: none !important;
    position: relative !important;
}

.no-border-padding .acf-fields > .acf-field {
    padding: 0 !important;
}

.no-border-padding > .acf-label {
    display: none;
}

.acf-indicator {
    border-top: none !important;
    color: #14AB1C;
    font-size: 9px;
    position: absolute !important;
    top: -12px;
    right: -12px;
    visibility: hidden;
}

.no-border-left {
    border-left: none !important;
    padding-left: 0 !important;
}

.no-padding-right {
    padding-right: 0 !important;
}

.acf-tab-button.populated {
    position: relative;
}

.acf-tab-button.populated:after {
    border-bottom: #14AB1C 3px solid !important;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
}

li.active .acf-tab-button.populated:after {
    border-bottom: #14AB1C 4px solid !important;
}

.hide-tab-group {
    display: none !important;
}

.split-image-options-container .acf-tab-button span,
.split-pagebuilder-options-container .acf-tab-button span {
    display: none;
}

.acf-flexible-content .layout[data-layout="mod_hide"] .acf-fc-layout-handle {
    background-color: #dc3545;
}

.acf-flexible-content .layout[data-layout="mod_hide"] .acf-fc-layout-handle::after {
    content: ' - All modules below are hidden from site front end.';
}

li:has(a[data-layout="mod_hide"]),
li:has(a[data-layout="mod_hide"]) ~ li,
body.latest-related-false li:has(a[data-layout="mod_latest_related_posts"]) {
    display: none !important;
}

.latest-related-type-moveable {
    display: none !important;
}

/* Hiding Clone Field Group */
.hide-clone-group > .acf-label {
    display: none;
}

.hide-clone-group .acf-clone-fields.-border {
    border: none;
}

.hide-clone-group .acf-clone-fields > .acf-field {
    padding: 0;
}

.width-full .acf-clone-fields > .acf-field {
    width: 100% !important;
}

/*==================================================
=            Modifying Link Input Modal            =
==================================================*/
/* div:not(#acf-link-textarea) + #wp-link-backdrop + #wp-link-wrap .link-target + div {
    display: none;
} */

/*=======================================================
=            YouTube Input Field for WYSIWYG            =
=======================================================*/

.acf-field .wp-media-buttons input#yt_id[type=text] {
    margin-right: 5px;
    margin-bottom: 4px;
    padding-left: 7px;
    padding-right: 7px;
}