.ajex-live-search-container {
    border-radius: 10px;
    position: relative;
    margin-top: 34px;
}

.ajex-group-item-title mark {
    color: #000000;
    border-bottom: 1px solid #959595;
    background: white;
}

.ajex-search-input-wrapper {
    position: relative;
    width: 100%;
}

li.search-result-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#ajex-search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    font-size: 15px;
    border: 1.5px solid #e3e8ef;
    border-radius: 6px;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.3s;
    color: #222;
    font-family: inherit;
    outline: none;
    box-shadow: 0 2px 8px rgba(16, 30, 54, 0.04);
}

#ajex-search-input:focus {
    border-color: #999;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(150, 150, 150, 0.2);
}

/* Search icon inside input */
.ajex-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: #b0b8c9;
    pointer-events: none;
}

.ajex-search-shortcut {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
    align-items: center;
    pointer-events: none;
}

.ajex-shortcut-key {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    font-family: inherit;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 12px;
    margin: auto;
    padding: 4px 6px;
}

#ajex-search-input:focus + .ajex-search-shortcut,
#ajex-search-input:not(:placeholder-shown) + .ajex-search-shortcut {
    display: none;
}


#ajex-search-results {
    position: absolute;
    top: 55px;
    left: 0;
    right: 0;
    background: #fff;

    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(16, 30, 54, 0.10);
    z-index: 1000;
    max-height: 420px;
    overflow-y: auto;
    margin-top: 8px;
    padding: 0;
}

.search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f2f7;
    transition: background 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item a {
    text-decoration: none;
    color: #222;
    display: block;
}

.search-result-item h3 {
    margin: 0;
    font-size: 14px;
    color: #222;
    font-weight: 400;
    line-height: 21px;
    letter-spacing: 0.01em;
    margin-bottom: 4px;
    flex: 1;
}

.post-type-label {
    display: inline-block;
    font-size: 12px;
    color: #666;
    background: #f3f6fa;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    flex: 0;
    min-width: 62px;
    text-align: center;
}

.search-result-item:hover .post-type-label {
    background: #e8f0fe;
    color: #2563eb;
}

.search-result-item:hover {
    background-color: #f3f6fa;
}

.search-result-item:hover h3 {
    color: #2563eb;
}

.search-result-item p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* See more link */

.see-more-results .see-more-link {
    text-align: center;
    margin: 8px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    font-size: 13px;
    border: 1px solid #ececec;
    border-radius: 6px;
    padding: 8px 12px;
    color: #545454;
    line-height: 16px;
}

.see-more-link:hover {
    color: #fcfcfc !important;
    background-color: #000000;
}

/* Loading spinner */
.loading {
    padding: 24px 0;
    text-align: center;
    color: #666;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ajex-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #e3e8ef;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: ajex-spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes ajex-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.no-results,
.error {
    padding: 24px 0;
    text-align: center;
    color: #b0b8c9;
    font-size: 16px;
}

/* Grouped Results Layout */
.ajex-grouped-results {
    padding: 0px;
}

.ajex-group-section {
    margin-bottom: 0px;
}

.ajex-group-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: oklch(0.556 0 0);
    margin-bottom: 6px;
    padding: 12px 18px 10px 18px;
    background: none;
    line-height: 16px;
    border-bottom: 1px solid #ededed;
}

.ajex-group-title {
    color: #666;
}

.ajex-group-icon {
    font-size: 14px;
}

.ajex-group-list {
    list-style: none;
    margin: 0;
    padding: 0px 8px;
}

.ajex-group-item {
    margin-bottom: 0px;
    border-radius: 8px;
    transition: background 0.2s;
}

.ajex-group-item:last-child {
    margin-bottom: 0;
}

.ajex-group-item a {
    text-decoration: none;
    color: #222;
    display: flex;
    align-items: center;
    padding: 12px 8px;
    gap: 5px;
}

li.ajex-group-item a:hover {
    text-decoration: none !important;
}

.ajex-item-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
}

.ajex-item-icon-circle svg {
    width: 14px;
    height: 14px;
    stroke: #888;
}

.ajex-group-item-title {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 20px;
}

.ajex-group-item:hover {
    background: #f4f5f7;
}

.ajex-group-item:hover .ajex-group-item-title {
    color: #000;
}