.awffs-search-wrapper {
    display: block;
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
}

.awffs-search-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 0 12px 0 14px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.awffs-search-container:focus-within {
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

.awffs-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #6b7280;
}

.awffs-search-icon-svg {
    display: block;
}

.awffs-search-input,
#awffs-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    margin: 0;
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #111827;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.awffs-search-input::placeholder,
#awffs-search-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.awffs-close-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.awffs-search-container.has-value .awffs-close-icon,
.awffs-search-container:focus-within .awffs-close-icon {
    opacity: 1;
    pointer-events: auto;
}

.awffs-close-icon:hover {
    background: #f3f4f6;
    color: #111827;
}

.awffs-close-icon-svg {
    display: block;
}

.awffs-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    z-index: 9999;
    width: 100%;
    max-height: min(70vh, 420px);
    overflow: auto;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.awffs-result-section {
    margin-bottom: 20px;
}

.awffs-section-title {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
    text-transform: uppercase;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.awffs-category-item {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.awffs-products .awffs-product-item {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.awffs-product-image {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 10px;
}

.awffs-product-link {
    font-size: 14px;
    color: #333;
    text-decoration: none;
}

.awffs-product-link:hover {
    text-decoration: underline;
}

.awffs-see-all {
    text-align: right;
    margin-top: 10px;
}

.awffs-see-all-link {
    font-size: 14px;
    color: #777;
    text-decoration: none;
}

.awffs-see-all-link:hover {
    text-decoration: underline;
}

.awffs-no-results {
    margin: 0;
    padding: 10px 0;
    text-align: center;
    color: #999;
    font-style: italic;
}
