.pha-search-wrap {
            position: relative;
        }

        .pha-search-form {
            position: relative;
        }

        .pha-search-input {
            padding-right: 88px !important;
        }

        .pha-search-clear {
            position: absolute;
            right: 62px;
            top: 50%;
            transform: translateY(-50%);
            width: 24px;
            height: 24px;
            border: 0;
            background: transparent;
            color: var(--color-content-faded, #727f9f);
            cursor: pointer;
            font-size: 22px;
            line-height: 1;
            display: none;
            z-index: 5;
            padding: 0;
        }

        .pha-search-clear.is-visible {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .pha-search-form .pha-search-loader {
            position: absolute;
            right: 66px;
            top: 50%;
            width: 18px;
            height: 18px;
            margin-top: -9px;
            border-radius: 50%;
            border: 2px solid rgba(0,0,0,0.12);
            border-top-color: var(--color-content-primary, #00897b);
            animation: pha-search-spin 0.75s linear infinite;
            display: none !important;
            box-sizing: border-box !important;
            min-width: 18px !important;
            max-width: 18px !important;
            min-height: 18px !important;
            max-height: 18px !important;
            padding: 0 !important;
            z-index: 6;
        }

        .pha-search-form .pha-search-loader.is-visible {
            display: block !important;
        }

        @keyframes pha-search-spin {
            to {
                transform: rotate(360deg);
            }
        }

        .pha-ajax-search-results {
            position: absolute;
            left: 0;
            right: 0;
            top: calc(100% + 8px);
            background: var(--color-content-bg, #ffffff);
            border: 1px solid var(--color-content-border, #e3e7f0);
            box-shadow: 0 12px 28px rgba(0,0,0,0.14);
            border-radius: 4px;
            z-index: 100050;
            max-height: 560px;
            overflow-y: auto;
            display: none;
        }

        .pha-ajax-search-results.is-visible {
            display: block;
        }

        .pha-search-section-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 14px;
            background: var(--color-content-bg-alt, #f2f4f7);
            color: var(--color-content-heading, #0f131f);
            font-size: 13px;
            font-weight: 800;
            text-transform: uppercase;
        }

        .pha-search-section-head span:last-child {
            text-transform: none;
            font-weight: 700;
            color: var(--color-content-heading, #0f131f);
        }

        .pha-search-product,
        .pha-search-post {
            display: grid;
            grid-template-columns: 62px 1fr auto;
            gap: 14px;
            padding: 12px 14px;
            border-bottom: 1px solid var(--color-content-border, #e3e7f0);
            text-decoration: none !important;
            color: var(--color-content-text, #424242) !important;
            transition: background 0.18s ease;
        }

        .pha-search-product:hover,
        .pha-search-post:hover {
            background: var(--color-content-bg-alt, #f2f4f7);
        }

        .pha-search-thumb {
            width: 58px;
            height: 58px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .pha-search-thumb img {
            width: 58px;
            height: 58px;
            object-fit: contain;
            display: block;
        }

        .pha-search-title {
            color: var(--color-content-heading, #0f131f);
            font-size: 15px;
            font-weight: 700;
            line-height: 1.35;
            margin-bottom: 3px;
        }

        .pha-search-cat,
        .pha-search-date {
            color: var(--color-content-text, #424242);
            font-size: 13px;
            line-height: 1.35;
        }

        .pha-search-price {
            color: var(--color-content-primary, #00897b);
            font-size: 14px;
            font-weight: 700;
            white-space: nowrap;
            align-self: center;
            text-align: right;
        }

        .pha-search-price del {
            color: var(--color-content-faded, #727f9f);
            font-weight: 400;
            margin-right: 8px;
        }

        .pha-search-price ins {
            text-decoration: none;
        }

        .pha-search-footer {
            display: block;
            padding: 13px 14px;
            background: var(--color-content-bg-alt, #f2f4f7);
            color: var(--color-content-heading, #0f131f) !important;
            text-decoration: underline !important;
            font-size: 15px;
        }

        .pha-search-empty {
            padding: 18px 14px;
            color: var(--color-content-faded, #727f9f);
            font-size: 14px;
            text-align: center;
        }

        @media (max-width: 767px) {
            .pha-ajax-search-results {
                max-height: 440px;
            }

            .pha-search-product,
            .pha-search-post {
                grid-template-columns: 54px 1fr;
            }

            .pha-search-price {
                grid-column: 2;
                text-align: left;
            }
        }
					   /* Fix ajax search clear X button so it does not become a big red button */
.pha-search-form .pha-search-clear {
    position: absolute !important;
    right: 66px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;

    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;

    background: transparent !important;
    color: var(--color-content-faded, #727f9f) !important;

    font-size: 20px !important;
    line-height: 20px !important;
    font-weight: 400 !important;

    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
    z-index: 8 !important;

    display: none !important;
    align-items: center !important;
    justify-content: center !important;
}

.pha-search-form .pha-search-clear.is-visible {
    display: flex !important;
}

.pha-search-form .pha-search-clear:hover {
    background: var(--color-content-bg-alt, #f2f4f7) !important;
    color: var(--color-content-primary, #00897b) !important;
}

/* Keep the real search submit button normal */
.pha-search-form button[type="submit"] {
    width: 56px !important;
    min-width: 56px !important;
    height: 46px !important;
    min-height: 46px !important;
    border-radius: 0 9px 9px 0 !important;
    background: var(--color-content-primary, #00897b) !important;
    color: var(--color-content-bg, #ffffff) !important;
}

/* Make sure input uses full available width */
.pha-search-form .pha-search-input {
    width: 100% !important;
    min-width: 0 !important;
    padding-right: 92px !important;
}
			   /* Remove browser default blue search clear X */
.pha-search-form input[type="search"]::-webkit-search-cancel-button,
.pha-search-form input[type="search"]::-webkit-search-decoration,
.pha-search-form input[type="search"]::-webkit-search-results-button,
.pha-search-form input[type="search"]::-webkit-search-results-decoration {
    display: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* For Edge/IE old clear button */
.pha-search-form input[type="search"]::-ms-clear,
.pha-search-form input[type="search"]::-ms-reveal {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* The mobile menu is moved outside the desktop header: keep its SVG strokes. */
.pha-search-form button[type="submit"] .pha-ico,
.pha-search-form button[type="submit"] .pha-ico * {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pha-search-form button[type="submit"]::before,
.pha-search-form button[type="submit"]::after { display: none !important; }
