.sl-search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.sl-search-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.sl-search-input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    height: 45px;
    box-sizing: border-box;
    font-size: 16px;
    outline: none;
}

.sl-search-button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 45px;
    background: #e8f3ee;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    padding: 0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sl-search-button:hover {
    background: #d1e7dd;
}

.sl-search-preview {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.sl-search-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.sl-search-item:last-child {
    border-bottom: none;
}

.sl-search-item:hover {
    background: #f9f9f9;
}

.sl-search-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 3px;
}

.sl-search-item-title {
    font-size: 14px;
    font-weight: 500;
}

.sl-search-no-results {
    padding: 15px;
    text-align: center;
    color: #888;
}

.sl-search-container.is-loading .sl-search-spinner {
    display: flex !important;
}

.sl-search-spinner {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sl-search-spinner svg {
    animation: sl-rotate 2s linear infinite;
    width: 100%;
    height: 100%;
}

.sl-search-spinner circle {
    stroke: #666;
    stroke-linecap: round;
    animation: sl-dash 1.5s ease-in-out infinite;
}

@keyframes sl-rotate {
    100% { transform: rotate(360deg); }
}

@keyframes sl-dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

.sl-search-container.is-loading .sl-search-input {
    padding-right: 80px;
}
