/* WooCommerce Custom Filter & Grid — search bar widget */
.wcfg-search-form {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    width: 100%;
    max-width: 100%;
    padding: 0 5px 0 14px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 999px;
    font-family: var(--wcfg-font, -apple-system, BlinkMacSystemFont, sans-serif);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.wcfg-search-form:focus-within {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, .18);
}
.wcfg-search-form.no-button { padding-right: 12px; }

.wcfg-search-lead-icon { flex: 0 0 auto; color: #9ca3af; }

.wcfg-search-form .wcfg-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0 4px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    font: inherit;
    font-size: 14px;
    color: #111827;
    -webkit-appearance: none;
    appearance: none;
}
.wcfg-search-form .wcfg-search-input::-webkit-search-cancel-button,
.wcfg-search-form .wcfg-search-input::-webkit-search-decoration { -webkit-appearance: none; display: none; }

.wcfg-search-form .wcfg-search-clear {
    flex: 0 0 auto;
    width: 24px; height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.wcfg-search-form .wcfg-search-clear:hover { background: #e5e7eb; color: #111827; }
.wcfg-search-form .wcfg-search-clear[hidden] { display: none; }

.wcfg-search-form .wcfg-search-submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: calc(100% - 10px);
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #2271b1;
    color: #fff;
    cursor: pointer;
    transition: filter .18s ease, transform .18s ease;
}
.wcfg-search-form .wcfg-search-submit:hover { filter: brightness(.92); }
.wcfg-search-form .wcfg-search-submit:active { transform: scale(.94); }

/* Search chip text in the grid's active-filter row */
.wcfg-chip.wcfg-chip--search::before { content: "Search: "; opacity: .7; margin-right: 3px; }
