.sb-search-container {
    position: relative;
    width: 100%;
    font-family: inherit;
}

.sb-search-wrapper {
    display: flex;
    align-items: stretch; /* Ensures button fills height */
    border: 1px solid #c2c2c2; /* Default border, overwritten by Elementor */
    border-radius: 4px; /* Default radius, overwritten by Elementor */
    background: #fff;
    overflow: hidden;
}

.sb-search-input {
    flex-grow: 1;
    border: none !important; /* Force remove default theme borders on input */
    padding: 12px 15px;
    font-size: 16px;
    outline: none !important;
    box-shadow: none !important;
}

.sb-search-button {
    background: #f1f1f1; /* Default, overwritten by Elementor */
    border: none;
    border-left: 1px solid #c2c2c2; /* Separator line */
    padding: 0 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sb-search-button i,
.sb-search-button svg {
    color: #333; /* Default icon color */
    fill: #333; /* Default SVG fill */
    font-size: 18px;
    transition: all 0.3s ease;
}

/* Autocomplete Dropdown Styles */
.sb-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin: 0;
    padding: 0;
    list-style: none;
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
}

.sb-search-results li {
    border-bottom: 1px solid #f5f5f5;
    margin: 0;
}

.sb-search-results li:last-child {
    border-bottom: none;
}

.sb-search-results li a,
.sb-search-results li span {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background 0.2s ease;
}

.sb-search-results li a:hover {
    background: #f9f9f9;
}