.pfcs-mobile-search {
    --pfcs-search-border: #dedede;
    --pfcs-search-text: #202124;
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: var(--pfcs-mobile-search-bg, #fff);
    border-bottom: 1px solid var(--pfcs-search-border);
    color: var(--pfcs-search-text);
    position: relative;
    z-index: 990;
}

.pfcs-mobile-search[hidden],
.pfcs-mobile-search__panel[hidden],
.pfcs-mobile-search__results[hidden] {
    display: none !important;
}

.pfcs-mobile-search--sticky {
    position: sticky;
    top: 0;
}

.admin-bar .pfcs-mobile-search--sticky {
    top: 46px;
}

.pfcs-mobile-search *,
.pfcs-mobile-search *::before,
.pfcs-mobile-search *::after {
    box-sizing: border-box;
}

.pfcs-mobile-search__form {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
}

.pfcs-mobile-search__field {
    display: flex;
    width: 100%;
    min-height: 46px;
}

.pfcs-mobile-search .pfcs-mobile-search__field input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 46px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--pfcs-search-border);
    border-right: 0;
    border-radius: 7px 0 0 7px;
    background: #fff;
    color: var(--pfcs-search-text);
    font: inherit;
    font-size: 16px;
    line-height: 1;
    box-shadow: none;
    appearance: none;
}

.pfcs-mobile-search .pfcs-mobile-search__field input[type="search"]:focus {
    border-color: var(--pfcs-mobile-search-accent, #e50064);
    outline: 2px solid rgba(229, 0, 100, .18);
    outline-offset: 0;
}

.pfcs-mobile-search__submit,
.pfcs-mobile-search__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 0;
    background: var(--pfcs-mobile-search-accent, #e50064);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    box-shadow: none;
}

.pfcs-mobile-search__submit {
    flex: 0 0 50px;
    width: 50px;
    height: 46px;
    padding: 0;
    border-radius: 0 7px 7px 0;
}

.pfcs-mobile-search__submit:hover,
.pfcs-mobile-search__submit:focus,
.pfcs-mobile-search__toggle:hover,
.pfcs-mobile-search__toggle:focus {
    filter: brightness(.92);
    background: var(--pfcs-mobile-search-accent, #e50064);
    color: #fff;
}

.pfcs-mobile-search__submit svg,
.pfcs-mobile-search__toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.pfcs-mobile-search__toggle {
    width: 100%;
    padding: 10px 16px;
    border-radius: 7px;
}

.pfcs-mobile-search--icon .pfcs-mobile-search__panel {
    padding-top: 10px;
}

.pfcs-mobile-search__results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: min(420px, 62vh);
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--pfcs-search-border);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
    z-index: 1002;
}

.pfcs-mobile-search__result {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    min-height: 68px;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    color: var(--pfcs-search-text);
    text-decoration: none;
}

.pfcs-mobile-search__result:last-child {
    border-bottom: 0;
}

.pfcs-mobile-search__result:hover,
.pfcs-mobile-search__result:focus {
    background: #f7f7f8;
    color: var(--pfcs-search-text);
}

.pfcs-mobile-search__result--no-image {
    grid-template-columns: minmax(0, 1fr);
}

.pfcs-mobile-search__image {
    display: block;
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 5px;
    background: #f5f5f5;
}

.pfcs-mobile-search__name,
.pfcs-mobile-search__price,
.pfcs-mobile-search__sku {
    display: block;
}

.pfcs-mobile-search__name {
    font-size: 14px;
    font-weight: 650;
    line-height: 1.3;
}

.pfcs-mobile-search__price {
    margin-top: 3px;
    color: var(--pfcs-mobile-search-accent, #e50064);
    font-size: 13px;
    font-weight: 650;
}

.pfcs-mobile-search__sku {
    margin-top: 2px;
    color: #6b7280;
    font-size: 11px;
}

.pfcs-mobile-search__message,
.pfcs-mobile-search__all {
    display: block;
    padding: 14px;
    text-align: center;
    color: #52525b;
    font-size: 13px;
}

.pfcs-mobile-search__all {
    border-top: 1px solid #eee;
    color: var(--pfcs-mobile-search-accent, #e50064);
    font-weight: 650;
    text-decoration: none;
}

.pfcs-mobile-search__all:hover,
.pfcs-mobile-search__all:focus {
    background: #f7f7f8;
    color: var(--pfcs-mobile-search-accent, #e50064);
}

@media (min-width: 783px) {
    .admin-bar .pfcs-mobile-search--sticky {
        top: 32px;
    }
}
