.wcss-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: visible !important;
    clear: both;
}

.wcss-search-bar {
    display: flex;
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s;
}

.wcss-search-bar:focus-within {
    border-color: #666;
}

.wcss-input {
    flex: 1;
    width: 100%;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin: 0;
    border-radius: 0;
    height: auto;
    min-height: 36px;
}

.wcss-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.wcss-button {
    flex-shrink: 0;
    border: none !important;
    outline: none !important;
    background: transparent;
    padding: 0 10px;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
    margin: 0;
    border-radius: 0;
    min-height: 36px;
}

.wcss-button:hover {
    color: #333;
}

.wcss-button svg {
    display: block;
}

.wcss-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 2px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 9999999;
    max-height: 360px;
    overflow-y: auto;
}

.wcss-results.active {
    display: block;
}

.wcss-result-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none !important;
    color: #333 !important;
    border-bottom: 1px solid #f3f4f6;
    gap: 10px;
    transition: none;
}

.wcss-result-item:last-child {
    border-bottom: none;
}

.wcss-result-item:hover {
    background: #f9fafb;
}

.wcss-result-image {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcss-result-image img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

.wcss-result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wcss-result-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wcss-result-price {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.wcss-result-price del {
    font-weight: 400;
    color: #999;
    margin-inline-end: 4px;
    font-size: 11px;
}

.wcss-result-price ins {
    text-decoration: none;
}

.wcss-no-results {
    padding: 16px 12px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

@media (max-width: 480px) {
    .wcss-input {
        padding: 7px 10px;
        font-size: 16px;
        min-height: 34px;
    }
    .wcss-button {
        padding: 0 8px;
        min-height: 34px;
    }
    .wcss-result-item {
        padding: 7px 10px;
        gap: 8px;
    }
    .wcss-result-image,
    .wcss-result-image img {
        width: 36px;
        height: 36px;
    }
}
