.ess-wrapper {
    position: relative;
    max-width: 500px;
    margin: 20px auto;
    font-family: inherit;
}

.ess-input-wrapper {
    position: relative;
}

#ess-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

#ess-input:focus {
    outline: none;
    border-color: #007cba;
}

.ess-clear {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-size: 22px;
    color: #999;
    cursor: pointer;
    display: none;
    line-height: 1;
}

.ess-clear:hover {
    color: #000;
}

.ess-loader {
    position: absolute;
    top: 14px;
    right: 15px;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    display: none;
    animation: ess-spin 1s linear infinite;
}

@keyframes ess-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#ess-results {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none;
    position: absolute;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

#ess-results li {
    border-bottom: 1px solid #eee;
}

#ess-results li:last-child {
    border-bottom: none;
}

#ess-results a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

#ess-results a:hover {
    background: #f0f8ff;
}