:root {
    --ccc: var(--wp--preset--color--primary);
}

.wp-block-search__inside-wrapper,
.wp-block-search__inside-wrapper input,
.wp-block-search__button-inside {
    background: transparent;
    border: 0;
}

.wp-block-search__button-inside input[type="search"] {
    background: transparent;
    color: #fff;
}

.wp-block-search__button-inside input[type="search"]::placeholder {
    color: #fff;
}

.wp-block-search,
.woocommerce-product-search {
    position: relative;
}

.wc-live-search-output {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff; color: #222;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    display: none;
    min-width: 320px;
}

.wc-live-search-output a {
    color: inherit;
}

.wc-ls-section {
    padding: 10px 16px
}

.wc-ls-section + .wc-ls-section {
    border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}

.wc-ls-section-header {
    font-size: 11px;
    font-weight: bold;
    color: color-mix(in srgb, currentColor 50%, transparent);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
    padding-bottom: 6px;
}

.wc-ls-product,
.wc-ls-category {
    display: flex;
    align-items: center;
    padding: 7px 0;
    text-decoration: none;
}

.wc-ls-product:hover,
.wc-ls-category:hover {
    background: color-mix(in srgb, currentColor 6%, white);
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
}

.wc-ls-product-img {
    flex-shrink: 0;
    margin-right: 12px;
}

.wc-ls-product-img img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

.wc-ls-product-name {
    font-size: small;
    line-height: 1.3;
}

.wc-ls-category {
    gap: 10px;
    font-size: small;
}

.wc-ls-category:hover {
    color: color-mix(in srgb, currentColor 65%, var(--ccc));
}

.wc-ls-cat-icon {
    flex-shrink: 0;
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f5a623'%3E%3Cpath d='M10 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.wc-ls-brands-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0 6px;
}

.wc-ls-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    border-radius: 6px;
    text-decoration: none;
    font-size: small;
    font-weight: 600;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.wc-ls-brand:hover {
    border-color: color-mix(in srgb, currentColor 65%, var(--ccc));
    color: color-mix(in srgb, currentColor 65%, var(--ccc));
}

.wc-ls-brand-name {
    white-space: nowrap;
}

.wc-ls-brand-logo {
    max-width: 70px;
    max-height: 32px;
    object-fit: contain;
    display: block;
    width: 100%;
    height: 100%;
}

.wc-ls-all-results {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 16px;
    background: var(--ccc);
    color: #fff !important;
    text-decoration: none !important;
    font-size: small;
    font-weight: bold;
    border-radius: 0 0 8px 8px;
    margin-top: 4px;
    transition: background 0.15s, color 0.15s;
}

.wc-ls-all-results:hover {
    background: color-mix(in srgb, #2271b1 82%, black);
    color: color-mix(in srgb, currentColor 70%, var(--ccc));
}

.wc-live-search-loading {
    text-align: center;
    padding: 20px;
}

.wc-live-search-loading img {
    width: 32px;
    height: 32px;
}

.wc-live-search-no-results,
.wc-live-search-error {
    padding: 14px 16px;
    color: color-mix(in srgb, currentColor 50%, transparent);
    font-style: italic;
    font-size: small;
}