/* ── Multiselect optgroup labels ──────────────────────────────────────────── */

.ms-options li.optgroup > span {
    padding-left: 8px !important;
}

.ui-autocomplete {
    font-size: 14px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ── [appcast_search_autocomplete] shortcode ────────────────────────────────── */

.appcast-ac-wrap {
    position: relative;
    width: 100%;
}

.appcast-ac-form {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.appcast-ac-field-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.appcast-ac-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.4;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff !important;
    color: #222 !important;
    outline: none;
    transition: border-color 0.15s;
}

.appcast-ac-input:focus {
    border-color: #666;
}

.appcast-ac-submit {
    flex: 0 0 auto;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    border: none;
    background: #333;
    color: #fff;
    white-space: nowrap;
    transition: background 0.15s;
}

.appcast-ac-submit:hover {
    background: #111;
}

.appcast-ac-dropdown {
    position: absolute;
    top: calc( 100% + 2px );
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba( 0, 0, 0, 0.12 );
    overflow: hidden;
}

.appcast-ac-group-label {
    padding: 10px 16px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
}

.appcast-ac-group-label:not( :first-child ) {
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
}

.appcast-ac-item {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border-top: 1px solid #f5f5f5;
    transition: background 0.1s;
}

.appcast-ac-item:first-of-type {
    border-top: none;
}

.appcast-ac-item:hover,
.appcast-ac-item--active {
    background: #f5f7fa;
}

.appcast-ac-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

.appcast-ac-item-count {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
    line-height: 1.3;
}
