.was-search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
    font-family: sans-serif;
}

#was-search-input {
    position: relative;
    z-index: 999;
    box-sizing: border-box;
    width: 100%;
    padding: 15px 52px;
    background-color: #FFF;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%231e73be' d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 20px center;
    background-size: 20px 20px;
    border: 1px solid var(--accent);
    border-radius: 45px;
    font-size: 17px;
    transition: all 0.3s ease;
}

#was-search-input:focus,
#was-search-input:focus-visible {
    outline: thin solid var(--accent);
}

/* X */

#was-clear-search {
    position: absolute;
    z-index: 999;
    top: 50%;
    right: 35px;
    transform: translateY(-50%);
    color: #000000;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    transition: color 0.2s;
}

#was-clear-search:hover {
    color: var(--accent);
}

/* results */
#was-search-results {
    position: absolute;
    z-index: 998;
    top: calc(100% - 24px);
    left: 15px;
    width: calc(100% - 30px);
    max-height: 300px;
    padding-top: 24px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#was-search-results ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#was-search-results li {
    border-bottom: 1px solid #f1f1f1;
}

#was-search-results li:last-child {
    border-bottom: none;
}

#was-search-results a {
    display: block;
    padding: 10px 15px;
    color: #333;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s;
}

#was-search-results a:hover {
    background: #f9f9f9;
    color: #0073aa;
}

#was-search-results a:hover .was-highlight {
    color: var(--accent);
}

.was-loading,
.was-no-result,
.was-error {
    padding: 10px 15px;
    color: #666;
    font-size: 0.9em;
}

.was-highlight {
    font-weight: 600;
    color: #000;
}

/* Hiệu ứng nổi bật khi dùng phím mũi tên hoặc di chuột vào */
#was-search-results li.was-item-active a,
#was-search-results a:hover {
    background: #f9f9f9;
    color: var(--accent);
}

#was-search-results li.was-item-active a .was-highlight {
    color: var(--accent);
}