/*
Theme Name: Zephyr Child
Template: Zephyr
Version: 1.0
Author: UpSolution
Theme URI: http://zephyr.us-themes.com/
Author URI: http://us-themes.com/
*/

/* Add your own styles here: */
.header_hor .l-header.pos_fixed:not(.bg_transparent) ~ .l-main > .l-section:first-of-type > .l-section-h,
.header_hor .l-header.pos_fixed:not(.bg_transparent) ~ .l-main > form > .l-section:first-of-type > .l-section-h,
.header_hor .l-header.pos_static:not(.bg_transparent) ~ .l-main > .l-section:first-of-type > .l-section-h,
.header_hor .l-header.pos_static:not(.bg_transparent) ~ .l-main > form > .l-section:first-of-type > .l-section-h {
    margin-top: var(--header-height, var(--header-sticky-height)) !important;
    padding-top: 0 !important;
}

.l-canvas.type_boxed {
    margin-bottom: inherit !important;
}

body, html {
    margin: 0;
    overflow-x: hidden;
}

.w-nav.type_desktop .menu-item.has_cols.fill_direction_hor .w-nav-list.level_2 {
    flex-wrap: inherit !important;
    width: calc(var(--menu-cols,1) * 220px) !important;
}

@media only screen and (max-width: 1101px) {
    /* Mobile Menu */
    .w-nav .menu-item .level_1 {
        text-align: left;
        margin-bottom: 2px;
        background-color: color-mix(in srgb, var(--color-site-primary-color), transparent 90%) !important;
        padding: 2px 0 2px 0;
    }
    .w-nav .menu-item .level_2 li {
        text-align: left;
        border-bottom: 1px dashed var(--color-site-shading-color-2);;
    }
    .w-nav .menu-item .level_2 li:last-child {
        border-bottom: none;
    }
    .w-nav .menu-item .level_2 li li {
        border-bottom: none;
    }
    .w-nav-list.level_3 li a {
        position: relative;
        padding-left: 1.5em;
    }
    .w-nav-list.level_3 li a::before {
        content: "";
        position: absolute;
        left: 28px;
        top: 50%;
        transform: translateY(-50%);
        border-left: 6px solid var(--color-site-primary-color);;
        border-top: 3px solid transparent;
        border-bottom: 3px solid transparent;
    }
    .w-nav-list.level_4 li a::before {
        all: unset;
        display: list-item;
        padding: 0;
        margin: 0;
        list-style: none;
    }
}

@media only screen and (max-width: 1200px) {
    .l-header.pos_fixed {
        top: var(--wp-admin--admin-bar--height, 0px) !important;
    }
    .g-cols.via_flex.type_default>div[class*="vc_col-lg-"] {
        margin: 0;
    }
}

@media (min-width: 1201px) {
    #page-header .l-header.pos_fixed {
        position: relative !important;
    }
}

/* Target ONLY sections that use the iOS fallback */
html.ios-touch * .l-section[data-ios-fixed-bg] {
    position: relative !important;
    overflow: hidden;
}

/* Create fake background layer */
html.ios-touch * .l-section[data-ios-fixed-bg]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    transform: translateZ(0);
    will-change: transform;
}

/* Timeline Elements*/
.timeline-block .timeline-header-block .timeline-header, .timeline-feature-item .timeline-header-block .timeline-header, .timeline-feature-item.feat-item .timeline-header {
    background-color: var(--color-site-primary-color) !important;
    font-size: inherit !important;
}

.smile-icon-timeline-wrap .timeline-separator-text .sep-text {
    background-color: var(--color-site-secondary-color) !important;
    font-size: inherit !important;
}

.timeline-line {
    border-right-color: var(--color-site-secondary-color) !important;
}

.timeline-feature-item .timeline-dot, .timeline-wrapper .timeline-dot, .timeline-line span:first-child, .timeline-line span:last-child {
    background-color: var(--color-site-secondary-color) !important;
}

.timeline-post-right .timeline-dot {
    left: -26.5px !important;
}

.timeline-post-left .timeline-dot {
    right: -27.5px !important;
}

.feat-item .timeline-dot {
    left: -7.5px !important;
}

.timeline-line span:first-child, .timeline-line span:last-child {
    left: -4.5px !important;
}

.feat-item .ult-timeline-arrow l {
    top: -9px !important;
}

.timeline-block .timeline-header h1,
.timeline-block .timeline-header h2,
.timeline-block .timeline-header h3,
.timeline-block .timeline-header h4,
.timeline-block .timeline-header h5,
.timeline-block .timeline-header h6,
.timeline-header-block .timeline-header h1,
.timeline-header-block .timeline-header h2,
.timeline-header-block .timeline-header h3,
.timeline-header-block .timeline-header h4,
.timeline-header-block .timeline-header h5,
.timeline-header-block .timeline-header h6 {
    font-size: inherit !important;
}

/* Table Elements & Price Box Elements */
.ult_design_2 .ult_pricing_table .ult_price_link .ult_price_action_button, .ult_design_2 .ult_pricing_table .ult_pricing_heading {
    background: var(--color-site-primary-color) !important;
    color: var(--color-site-third-color) !important;
}

.ult_pricing_table_wrap .ult_pricing_table .ult_price_features, .ult_pricing_table_wrap.ult_design_1 .ult_pricing_table .ult_price_link {
    background-color: var(--color-site-third-color);
    border: 1px solid var(--color-site-primary-color);
    border-top: none;
    font-size: 1rem !important;
}

.ult_design_2 .ult_pricing_table .ult_price_features ul li {
    border-bottom: 1px dashed var(--color-site-secondary-color) !important;
    line-height: 1.3 !important;
    margin-left: 15px !important;
    margin-right: 15px !important;
    padding-bottom: 15px;
    padding-top: 15px;
}

.ult_design_2 .ult_pricing_table .ult_price_features ul li:last-child {
    border: none !important;
}

.ult_design_2 .ult_pricing_table .ult_price_features * {
    color: var(--color-site-primary-color);
}

.ult_design_2 .ult_price_body_block {
    background-color: var(--color-site-secondary-color) !important;
    border-bottom: 3px solid var(--color-site-primary-color) !important;
}

.ult_pricing_table_wrap, .ult_pricing_table_wrap * {
    color: var(--color-site-third-color);
}

.ult_design_2 .ult_pricing_table {
    background: inherit !important;
}

.wpb_column .wpb_wrapper .ult_pricing_table_wrap, .wpb_column .wpb_wrapper .ult_pricing_table_wrap:last-child {
    margin-bottom: inherit !important;
}

.ult_design_2 .ult_pricing_table .ult_price_body {
    font-size: initial !important;
}

.ult_design_2 .ult_pricing_table .ult_price_link .ult_price_action_button {
    bottom: -25px !important;
    z-index: 99 !important;
    color: var(--color-site-third-color) !important;
    padding: 15px !important;
}

.ult_pricing_table .ult_pricing_heading .price-heading {
    color: var(--color-site-third-color);
    font-size: 1.1rem !important;
    font-weight: 900 !important;
}

.ult_pricing_table .ult_pricing_heading .price-subheading {
    color: var(--color-site-third-color);
    font-size: 0.8rem !important;
}

.ult_price_body_block, .ult_price_description_block, .ult_price_features, .ult_price_link, .ult_pricing_heading, .ult_price_term, .ult_pricing_table {
    font-weight: inherit !important;
}

.ult_price_body .ult_price .ult_price_figure {
    font-size: 1.1rem !important;
    font-weight: 900 !important;
}

.ult_price_body .ult_price .ult_price_term {
    font-size: 0.8rem !important;
}

/* List Elements */
.smile_icon_list.with_bg .icon_list_icon {
    background: var(--color-site-primary-color) !important;
    color: var(--color-site-third-color) !important;
}

.smile_icon_list li .icon_description .info-list-heading {
    color: var(--color-site-primary-color) !important;
    font-size: 1.1rem !important;
    display: inline-block;
    vertical-align: top;
    margin-bottom: 5px;
}

.smile_icon_list.top li .icon_description {
    line-height: 2.1;
}

.smile_icon_list li .icon_description div.icon_description_text {
    color: var(--color-site-primary-color) !important;
    font-size: 0.9rem !important;
}

.smile_icon_list li .icon_list_connector {
    border-color: var(--color-site-secondary-color) !important;
}

/* Template Gallery */
.mfp-figure figure {
    background-color: var(--color-site-third-color);
    padding: 10px;
}

.w-gallery-item-img img {
    padding: 10px;
}

.mfp-counter {
    top: 10px;
    right: 10px;
}

/* Expandable Section */
.ult_exp_content {
    background-color: var(--color-site-shading-color-1) !important;
}

.ult_exp_section {
    background-color: var(--color-site-third-color) !important;
    padding: 0 !important;
}

.ult_exp_section .aio-icon i, .ult_expheader, .ult_expsection_icon {
    color: var(--color-site-primary-color) !important;
}

.ult_exp_section.ult_active_section .aio-icon i, .ult_exp_section.ult_active_section .ult_expheader, .ult_exp_section.ult_active_section .ult_expsection_icon {
    color: var(--color-site-third-color) !important;
}

.ult_exp_section.ult_active_section {
    background-color: var(--color-site-secondary-color-alpha) !important;
}


/* ==========================================================================
   ACF SELECT2 FIELDS (UNIFIED & RESPONSIVE)
   ========================================================================== */

/* Main Field Wrappers */
.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--single {
    border: 1px solid var(--color-site-secondary-color) !important;
    border-radius: 0 !important; /* Flat design to match Zephyr */
    min-height: 48px !important; /* Perfect Touch Target Size */
    display: flex !important;
    align-items: center;
    background-color: #fff !important;
    transition: all 0.2s ease-in-out;
    padding: 4px 10px !important; 
}

/* Focus state for select2 to match native inputs */
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--color-site-primary-color) !important;
    box-shadow: 0 0 0 1px var(--color-site-primary-color) !important;
}

/* Rendered area: multiselect */
.select2-container.-acf .select2-selection--multiple .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: block !important;
    box-sizing: border-box !important;
    list-style: none !important;
    margin: 0 -3px !important; 
    width: 100% !important; 
    font-size: 16px !important; /* 16px strictly prevents iOS Zoom */
    line-height: 1.25 !important;
}

/* Rendered area: single select text vertical centering */
.select2-container.-acf .select2-selection--single .select2-selection__rendered {
    font-size: 16px !important;
    padding-left: 0 !important;
    line-height: 38px !important; 
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}

/* Token (choice) look — flat, small, shaded */
.select2-selection--multiple .select2-selection__choice {
    background: var(--color-site-shading-color-1) !important;
    border-radius: 0 !important;
    font-size: 16px !important; 
    position: relative;
    padding: 4px 8px 4px 25px !important; /* Room for the X */
    border: 1px solid #e5e7eb !important;
    color: var(--color-site-primary-color) !important;
    display: inline-block !important; 
    vertical-align: middle !important;
    margin: 2px 6px 2px 0 !important; /* Keeps the gap consistent! */
}

.select2-container.-acf .select2-selection, 
.select2-container--default.select2-container--focus .select2-selection--multiple {
    padding: 3px 10px !important; /* General container padding */
    min-height: 48px !important;
}

/* Small × inside each token */
.select2-selection__choice__remove {
    position: absolute !important;
    padding: 0 !important;
    top: 50%;
    left: 18px !important;
    transform: translateY(-50%);
    opacity: .75;
    border: none !important;
}

/* Fix Dropdown Gap & Styles */
.select2-container--open .select2-dropdown--below {
    border-radius: 0 !important;
    border: 1px solid var(--color-site-primary-color) !important;
    margin-top: 0 !important; /* Ensures it attaches seamlessly */
}

/* --- SEARCH FIELD FIXES (100% Width, No Borders, Cursor Centered) --- */

/* 1. Multiselect Inline Search (Foci, Aff No) */
.acfe-form .select2-container .select2-search--inline {
    display: inline-block !important; 
    vertical-align: middle !important;
    width: min-content !important; 
    margin: 0 !important;
}

/* THIS completely strips the borders and centers the cursor perfectly */
.acfe-form .select2-container .select2-search--inline .select2-search__field {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
    min-height: 24px !important;
    height: 24px !important;
    line-height: 24px !important; /* Locks the cursor vertically */
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    font-size: 16px !important;
    vertical-align: middle !important;
}

/* 2. Single Select Dropdown Search Box (Inside the popup list) */
.select2-search--dropdown {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px !important;
    background: #fdfdfd !important;
}
.select2-container .select2-dropdown .select2-search__field {
    line-height: 1.4 !important;
    min-height: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: 40px !important;
    padding: 5px 12px !important;
    border: 1px solid var(--color-site-secondary-color) !important;
    font-size: 16px !important;
    border-radius: 0 !important;
    outline: none !important;
}
.select2-container .select2-dropdown .select2-search__field:focus {
    border-color: var(--color-site-primary-color) !important;
}

/* Dropdown list styling */
.select2-results__option {
    font-size: 0.9rem !important; 
    padding: 8px 15px !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: var(--color-site-shading-color-2);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--color-site-primary-color);
    color: var(--color-site-third-color);
}

/* Chevron positioning (Forced to absolute vertical center) */
.select2-container.-acf .select2-selection:after,
.select2-container--default .select2-selection--single .select2-selection__arrow,
.select2-container--default .select2-selection--multiple .select2-selection__arrow {
    position: absolute !important;
    top: 50% !important;
    right: 15px !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    height: auto !important;
}

/* Big “clear all” × */
.select2-selection__clear {
  position: absolute !important;
  right: 35px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .75;
  cursor: pointer;
}

.select2-selection__clear:hover, 
.select2-selection__choice__remove:hover {
    opacity: 1;
}

.select2-container {
    width: 100% !important;
}

/*
.select2-container.-acf, .select2-container .select2-dropdown {
    z-index: 9 !important;
}*/

@media only screen and (min-width: 601px) and (max-width: 750px) {
  .g-cols.wpb_row .vc_col-sm-4 {
    width: 50% !important;
  }
}

/* US Core Template Stlyes */
/* Vertical Simple Menu */
.w-menu .sub-menu {
    padding-left: 0.7rem !important;
}
.w-menu.type_accordion.icontype_chevron b::before {
    content: '\f140' !important;
    font-family: dashicons !important;
}


/* ==========================================================================
   ACF FORM FIELDS (NATIVE TEXT, EMAIL, NUMBER, ETC)
   ========================================================================== */

.acfe-form .acf-input-wrap input[type="text"],
.acfe-form .acf-input-wrap input[type="password"],
.acfe-form .acf-input-wrap input[type="file"],
.acfe-form .acf-input-wrap input[type="date"],
.acfe-form .acf-input-wrap input[type="datetime"],
.acfe-form .acf-input-wrap input[type="datetime-local"],
.acfe-form .acf-input-wrap input[type="email"],
.acfe-form .acf-input-wrap input[type="month"],
.acfe-form .acf-input-wrap input[type="number"],
.acfe-form .acf-input-wrap input[type="search"],
.acfe-form .acf-input-wrap input[type="tel"],
.acfe-form .acf-input-wrap input[type="time"],
.acfe-form .acf-input-wrap input[type="url"],
.acfe-form .acf-input-wrap input[type="week"],
.acfe-form .acf-input select,
.acfe-form .acf-input textarea {
    width: 100% !important;
    font-size: 16px !important;
    height: 48px !important; 
    min-height: 48px !important; 
    padding: 10px 15px !important;
    border: 1px solid var(--color-site-secondary-color) !important;
    border-radius: 0 !important; 
    background-color: #fff !important;
    color: var(--color-site-primary-color) !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: none !important;
}

/* Focus State for Native Inputs */
.acfe-form .acf-input-wrap input:focus,
.acfe-form .acf-input select:focus,
.acfe-form .acf-input textarea:focus {
    border-color: var(--color-site-primary-color) !important;
    box-shadow: 0 0 0 1px var(--color-site-primary-color) !important;
    outline: none !important;
}

/* Locked & Disabled Fields */
.acfe-form input[disabled],
.acfe-form input[readonly],
.acfe-form select[disabled],
.acfe-form .mem-locked-user-field .select2-selection {
    background-color: var(--color-site-shading-color-1) !important;
    color: var(--color-site-secondary-color) !important;
    cursor: not-allowed !important;
}


/* ==========================================================================
   ACF TABLES & REPEATERS (WITH FULL EXPANSION & MOBILE STACKING)
   ========================================================================== */

/* Make ALL ACF action icons (Plus, Minus, Duplicate) rectangular globally */
.acfe-form .acf-icon {
    border-radius: 0 !important;
}

/* --- Native Table Layout --- */
.acfe-form .acf-table {
    width: 100% !important;
    table-layout: auto !important;
    display: table !important; /* Restores native column width calculations */
}

/* --- Tablet Optimization: Horizontal Scroll & Visual Hint --- */
@media screen and (min-width: 769px) and (max-width: 1200px) {
    /* Target the WRAPPER to handle the scrollbar */
    .acfe-form .acf-repeater.-table {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 5px !important; 
    }
    
    /* Ensure the table itself enforces a minimum width before squishing the inputs */
    .acfe-form .acf-repeater.-table > table {
        min-width: 1050px !important; 
    }

    /* Holy Grail Sticky Fix: Keeps text and buttons visibly locked to the right while scrolling! */
    .acfe-form .acf-repeater.-table::before,
    .acfe-form .acf-repeater.-table .acf-actions {
        position: sticky !important;
        left: 0 !important;
        right: 0 !important;
        width: auto !important;
        display: flex !important;
        justify-content: flex-end !important;
        z-index: 10 !important;
    }

    /* Pulsating Scroll Hint specifically for Tablet sizes (769px to 1024px) */
    .acfe-form .acf-repeater.-table::before {
        content: "⇄ Swipe or scroll table to view more columns";
        font-size: 13px;
        color: var(--color-site-primary-color);
        margin-bottom: 8px;
        opacity: 0.7;
        font-weight: 600;
        animation: mem-pulse 2.5s infinite;
    }
    
    /* Give the Add Event button proper top spacing */
    .acfe-form .acf-repeater.-table .acf-actions {
        padding-top: 15px !important;
    }
}

@keyframes mem-pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.acf-table,
.acf-table>thead>tr>th {
    border: 1px solid var(--color-site-shading-color-2) !important;
}
.acf-table>thead>tr>th label {
    font-size: 0.8rem !important;
    font-family: inherit !important;
    color: var(--color-site-primary-color) !important;
    font-weight: 700;
}
.acf-repeater>.acf-actions .acf-button {
    float: inherit !important;
}

/* --- Ensure Table Cells (Keywords, Affiliations) Use Full Width Safely --- */
.acfe-form .acf-table > tbody > tr > td {
    padding: 8px !important; /* Tight padding to maximize input space */
    box-sizing: border-box !important;
}

.acfe-form .acf-table > tbody > tr > td .acf-input-wrap {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* --- Mobile Optimization for Repeater Tables (< 768px Only) --- */
@media screen and (max-width: 768px) {
    /* Hide the table headers on mobile */
    .acfe-form .acf-table > thead {
        display: none !important;
    }
    
    /* Remove background and borders from main table wrapper on mobile */
    .acfe-form .acf-repeater > table,
    .acfe-form .acf-table,
    .acfe-form .acf-table > thead > tr > th {
        border: none !important;
        background: transparent !important;
        margin: 0 0 8px !important;
    }
    
    /* Force table rows to act like stacked blocks */
    .acfe-form .acf-table > tbody,
    .acfe-form .acf-table > tbody > tr,
    .acfe-form .acf-table > tbody > tr > td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Style each row like a separate clean "Card" */
    .acfe-form .acf-table > tbody > tr {
        border: 1px solid var(--color-site-secondary-color) !important;
        border-radius: 0 !important;
        padding: 15px !important;
        margin-bottom: 20px !important;
        background: #fdfdfd !important;
        position: relative;
    }
    
    /* Remove borders from the individual table cells */
    .acfe-form .acf-table > tbody > tr > td {
        border: none !important;
        padding: 10px 0 !important;
    }
    
    /* Inject the Column Title as a label above the input on mobile */
    .acfe-form .acf-table > tbody > tr > td[data-name]::before {
        display: block;
        font-size: 12px;
        font-weight: 700;
        color: var(--color-site-primary-color);
        margin-bottom: 6px;
        content: attr(data-name); /* Fallback */
        text-transform: capitalize;
    }
    
    /* Specific Label Text Overrides to match your headers */
    .acfe-form .acf-table > tbody > tr > td[data-name="run_no"]::before { content: "#"; }
    .acfe-form .acf-table > tbody > tr > td[data-name="name"]::before { content: "Name of Affiliation"; }
    .acfe-form .acf-table > tbody > tr > td[data-name="address"]::before { content: "Address"; }
    .acfe-form .acf-table > tbody > tr > td[data-name="word"]::before { content: "Tag / Name"; }
    .acfe-form .acf-table > tbody > tr > td[data-name="email"]::before { content: "Email"; }
    .acfe-form .acf-table > tbody > tr > td[data-name="first_name"]::before { content: "First Name"; }
    .acfe-form .acf-table > tbody > tr > td[data-name="last_name"]::before { content: "Last Name"; }
    .acfe-form .acf-table > tbody > tr > td[data-name="affiliation_no"]::before { content: "Affiliation No."; }
    .acfe-form .acf-table > tbody > tr > td[data-name="corr_author"]::before { content: "Corr. Author"; }
    
    /* Hide the label for utility columns */
    .acfe-form .acf-table > tbody > tr > td.acf-row-handle::before,
    .acfe-form .acf-table > tbody > tr > td.remove::before {
        display: none !important;
    }

    /* UX: Place all action icons (+, -, duplicate) in a neat row at the bottom of the card */
    .acfe-form .acf-table .acf-row-handle.remove {
        position: relative !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        border-top: 1px solid var(--color-site-shading-color-2) !important;
        margin-top: 15px !important;
        padding: 15px 0 0 0 !important;
        top: auto !important;
        right: auto !important;
        background: transparent !important;
        height: auto !important;
        visibility: visible !important;
    }
    
    /* Style all icons inside the bottom row uniformly as clean, visible squares */
    .acfe-form .acf-table .acf-row-handle.remove .acf-icon {
        position: relative !important; /* Overrides ACF's absolute positioning */
        display: flex !important; /* Overrides ACF's 'display: none' hidden shift logic */
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        line-height: 1 !important;
        font-size: 16px !important;
        background-color: transparent !important;
        border: 1px solid var(--color-site-primary-color) !important;
        color: var(--color-site-primary-color) !important;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: all 0.2s ease-in-out;
        box-sizing: border-box !important;
    }

    /* Distinct color for minus */
    .acfe-form .acf-table .acf-row-handle.remove .acf-icon.-minus {
        border-color: #dc3232 !important;
        color: #dc3232 !important;
    }

    /* Hover effects */
    .acfe-form .acf-table .acf-row-handle.remove .acf-icon:hover {
        background-color: var(--color-site-primary-color) !important;
        color: #fff !important;
    }
    
    .acfe-form .acf-table .acf-row-handle.remove .acf-icon.-minus:hover {
        background-color: #dc3232 !important;
        color: #fff !important;
    }
}


/* ==========================================================================
   ACF DATEPICKER
   ========================================================================== */

.acf-ui-datepicker {
    z-index: 50 !important;
}
.acf-ui-datepicker .ui-datepicker {
    width: min(75vw, 17rem) !important;
    border-radius: 0 !important;
    border-color: var(--color-site-primary-color) !important;
    z-index: 50 !important;
}
.acf-ui-datepicker .ui-datepicker table {
    table-layout: auto !important;
}
.ui-datepicker th {
    opacity: 1 !important;
    color: var(--color-site-primary-color) !important;
    background: var(--color-site-shading-color-1) !important;
}
.acf-ui-datepicker .ui-datepicker .ui-datepicker-title {
    color: var(--color-site-third-color) !important;
    font-size: 1rem !important;
    margin: 0 !important;
}
.acf-ui-datepicker .ui-datepicker .ui-datepicker-title select {
    margin: 2px 0 !important;
}
.acf-ui-datepicker .ui-datepicker .ui-datepicker-header,
.acf-ui-datepicker .ui-datepicker-buttonpane {
    background: var(--color-site-primary-color) !important;
    color: var(--color-site-third-color) !important;
    margin: 0 !important;
}
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    width: 30% !important;
}
.acf-ui-datepicker .ui-datepicker td .ui-state-default {
    color: var(--color-site-primary-color) !important;
    padding: 0 !important;
}
.acf-ui-datepicker .ui-datepicker .ui-datepicker-unselectable .ui-state-default {
    color: var(--color-site-shading-color-3) !important;
}
.acf-ui-datepicker .ui-datepicker td .ui-state-active,
.acf-ui-datepicker .ui-datepicker td .ui-state-hover {
    background: var(--color-site-secondary-color) !important;
}
.acf-ui-datepicker .ui-datepicker td .ui-state-active a,
.acf-ui-datepicker .ui-datepicker td .ui-state-hover a {
    color: var(--color-site-third-color) !important;
}
.ui-datepicker-prev:before {
    content: "\f341" !important;
    font-family: dashicons !important;
}
.ui-datepicker-next::before {
    content: "\f345" !important;
    font-family: dashicons !important;
}
.acf-ui-datepicker .ui-datepicker .ui-datepicker-next,
.acf-ui-datepicker .ui-datepicker .ui-datepicker-next-hover,
.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev,
.acf-ui-datepicker .ui-datepicker .ui-datepicker-prev-hover {
    height: 40px !important;
    width: inherit !important;
    margin-top: 5px !important;
}


/* ==========================================================================
   ACF PREPEND / APPEND FIELDS (INTEGRATED FLAT DESIGN)
   ========================================================================== */

/* Hide completely empty prepend/append fields injected by ACF so they don't break layout */
.acfe-form .acf-input-prepend:empty,
.acfe-form .acf-input-append:empty {
    display: none !important;
}

/* Use native ACF table-cell behavior to perfectly attach to inputs */
.acfe-form .acf-input-prepend:not(:empty), 
.acfe-form .acf-input-append:not(:empty) {
    display: table-cell !important;
    vertical-align: middle !important;
    font-size: 16px !important; 
    border-radius: 0 !important;
    height: 48px !important;
    line-height: 46px !important; /* Perfect vertical centering */
    background-color: var(--color-site-shading-color-1) !important;
    border: 1px solid var(--color-site-secondary-color) !important;
    color: var(--color-site-primary-color) !important;
    font-weight: 700 !important; 
    padding: 0 15px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    width: 1% !important; /* Keeps the cell tightly hugging the symbol */
}

/* Ensure no double borders when appended/prepended */
.acfe-form .acf-input-prepend:not(:empty) {
    border-right: none !important;
}
.acfe-form .acf-input-append:not(:empty) {
    border-left: none !important;
}


/* ==========================================================================
   ACF MISC / DESCRIPTIONS / FORM ELEMENTS
   ========================================================================== */

/* ACF Field Descriptions */
.acfe-form .acf-field .description,
.acfe-form p.description {
    font-size: 0.7rem !important;
    line-height: 1.4 !important;
}

/* Login form */
.acf-hl.amem-hl {
    display: inline-block !important;
    margin-top: 20px !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: max-content !important;
}
.acf-hl.amem-hl[data-cols] {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.acf-hl.amem-hl[data-cols]>li {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.acf-hl.amem-hl[data-cols="2"] a {
    text-align: center !important;
    width: max-content !important;
}
@media screen and (max-width: 640px) {
    .acf-hl.amem-hl[data-cols]>li {
        width: initial!important;
        padding: 10px !important;
    }
}

/* Header search field */
.w-search-open {
    width: initial !important;
}

/* Safari Select Hack */
select {
    -webkit-appearance: none !important;
    appearance: none !important;
    background-color: #fff !important;
    border: 1px solid var(--color-site-secondary-color) !important;
    border-radius: none !important;
}

/* THIS WAS BREAKING FORMS - Safely scoped so it doesn't affect ACF fields */
input:not([type=submit]):not(.acf-input-wrap input) {
    width: unset !important;
}

.acf-tab-group.acf-tabs-wrapped .acf-title-text {
    display: none !important;
}





/* Versteckt die Beschreibung und macht sie zum Tooltip */
.acf-th.has-generic-tooltip,
.acf-field.has-generic-tooltip {
    position: relative;
    overflow: visible !important;
}

/* Verhindert, dass das Icon in eine neue Zeile rutscht */
.acf-th.has-generic-tooltip label,
.acf-field.has-generic-tooltip > .acf-label label {
    white-space: nowrap;
}

/* Tooltip Styling */
.acf-th.has-generic-tooltip .description,
.acf-field.has-generic-tooltip > .acf-input > .description,
.acf-field.has-generic-tooltip > .acf-label > .description {
    display: none; /* Verstecken */
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    background: #333;
    color: #fff;
    padding: 10px;
    z-index: 99;
    border-radius: 4px;
    font-weight: normal;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    white-space: normal; /* Erlaubt Textumbruch im Tooltip selbst */
}

/* Zeigt die Beschreibung beim Hovern an */
.acf-th.has-generic-tooltip:hover .description,
.acf-field.has-generic-tooltip:hover > .acf-input > .description,
.acf-field.has-generic-tooltip:hover > .acf-label > .description {
    display: block;
}

/* Ein Icon als Superscript hinter das Label setzen */
.acf-th.has-generic-tooltip label:after,
.acf-field.has-generic-tooltip > .acf-label label:after {
    content: "\2139"; /* Unicode für Info-Icon */
    cursor: help;
    font-size: 1em; /* Macht das Icon kleiner */
    vertical-align: super; /* Hebt das Icon nach oben an (Superscript) */
    margin-left: 3px; /* Etwas Abstand zum Text */
    display: inline-block;
    opacity: 0.7; /* Optional: Macht es etwas dezenter */
}