@media (max-width: 991.98px) {
    html body.pb-mobile-search-open { overflow: hidden !important; overscroll-behavior: none; }

    dialog.pb-mobile-catalog-search[open] {
        position: fixed;
        inset: 0;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        height: var(--pb-search-height, 100dvh);
        max-width: none;
        max-height: none;
        margin: 0;
        padding: 0;
        border: 0;
        color: #262b34;
        background: #f5f6f7;
        font-family: inherit;
        text-align: start;
        overflow: hidden;
    }

    .pb-mobile-catalog-search [hidden] { display: none !important; }

    .pb-mobile-search-head {
        flex: none;
        padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 14px max(14px, env(safe-area-inset-left));
        background: #fff;
        border-bottom: 1px solid #e2e5e9;
    }

    .pb-mobile-search-top,
    .pb-mobile-search-section-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .pb-mobile-catalog-search #pb-mobile-search-title {
        margin: 0;
        color: inherit;
        font-family: inherit;
        font-size: clamp(19px, 5.2vw, 23px);
        font-weight: 700;
        line-height: 1.2;
        text-transform: none;
    }

    .pb-mobile-search-icon {
        position: relative;
        flex: none;
        display: grid;
        place-items: center;
        margin: 0;
        padding: 0;
        color: #49515c;
        cursor: pointer;
    }

    .pb-mobile-search-icon::before,
    .pb-mobile-search-icon::after {
        content: "";
        position: absolute;
        width: 14px;
        height: 1.6px;
        border-radius: 2px;
        background: currentColor;
        transform: rotate(45deg);
    }

    .pb-mobile-search-icon::after { transform: rotate(-45deg); }

    .pb-mobile-search-close {
        width: 44px;
        height: 44px;
        border: 1px solid #e0e3e7;
        border-radius: 12px;
        background: #f3f4f6;
    }

    .pb-mobile-search-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
        gap: 8px;
        margin: 10px 0 0;
    }

    .pb-mobile-search-field {
        display: flex;
        align-items: center;
        min-width: 0;
        min-height: 48px;
        padding-inline-start: 11px;
        border: 1px solid #dbe0e6;
        border-radius: 12px;
        background: #f4f5f7;
    }

    .pb-mobile-search-field:focus-within {
        border-color: #a76670;
        box-shadow: inset 0 0 0 1px #a76670;
    }

    .pb-mobile-search-glass {
        position: relative;
        flex: 0 0 13px;
        width: 13px;
        height: 13px;
        border: 1.7px solid #66717e;
        border-radius: 50%;
        box-sizing: border-box;
    }

    .pb-mobile-search-glass::after {
        content: "";
        position: absolute;
        width: 6px;
        height: 1.7px;
        right: -4px;
        bottom: -2px;
        background: #66717e;
        border-radius: 2px;
        transform: rotate(45deg);
    }

    .pb-mobile-catalog-search #pb-mobile-search-query {
        flex: 1 1 0;
        width: 100%;
        min-width: 0;
        min-height: 44px;
        position: static;
        margin: 0;
        padding: 0 6px 0 11px;
        color: #262b34;
        background: transparent;
        border: 0;
        outline: none;
        box-shadow: none;
        font-family: inherit;
        font-size: 16px;
        appearance: none;
    }

    .pb-mobile-catalog-search #pb-mobile-search-query::placeholder { color: #59636f; font-size: 14px; opacity: 1; }
    .pb-mobile-catalog-search #pb-mobile-search-query::-webkit-search-cancel-button { appearance: none; }

    .pb-mobile-search-clear {
        width: 40px;
        height: 44px;
        border: 0;
        border-radius: 8px;
        background: transparent;
    }

    .pb-mobile-search-submit {
        min-height: 48px;
        margin: 0;
        padding: 0 15px;
        border: 0;
        border-radius: 12px;
        color: #fff;
        background: #8b2736;
        font-family: inherit;
        font-size: 14px;
        font-weight: 650;
    }

    .pb-mobile-search-submit:active { background: #6f1e2a; }

    .pb-mobile-search-body {
        flex: 1 1 auto;
        min-height: 0;
        padding: 17px max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
        overflow: auto;
        overscroll-behavior: contain;
    }

    .pb-mobile-catalog-search h3 {
        margin: 0 0 9px;
        color: #343d48;
        font-family: inherit;
        font-size: 15px;
        font-weight: 650;
        line-height: 1.35;
        text-transform: none;
    }

    .pb-mobile-search-recent { margin-bottom: 20px; }
    .pb-mobile-search-section-head h3 { margin: 0; }

    .pb-mobile-catalog-search .pb-mobile-search-categories {
        display: block;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }


    .pb-mobile-search-forget {
        min-height: 36px;
        padding: 0 6px;
        border: 0;
        border-radius: 7px;
        background: transparent;
        color: #822e38;
        font-family: inherit;
        font-size: 13px;
    }

    .pb-mobile-catalog-search ul { list-style: none; padding: 0; margin: 0; }
    .pb-mobile-search-history { display: flex; flex-wrap: wrap; gap: 7px; }
    .pb-mobile-search-history li { min-width: 0; max-width: 100%; }

    .pb-mobile-search-history button,
    .pb-mobile-search-shortcuts a {
        display: flex;
        align-items: center;
        min-height: 44px;
        max-width: 100%;
        padding: 7px 11px;
        border: 1px solid #dfe3e7;
        border-radius: 10px;
        background: #fff;
        color: #343d48;
        font-family: inherit;
        font-size: 14px;
        text-align: left;
        text-decoration: none;
        overflow-wrap: anywhere;
        box-sizing: border-box;
    }

    .pb-mobile-search-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .pb-mobile-search-shortcuts a { justify-content: space-between; gap: 5px; }
    .pb-mobile-search-shortcuts span { color: #8b2736; font-size: 19px; line-height: 1; }

    .pb-mobile-search-viewed,
    .pb-mobile-search-examples { margin-top: 20px; }

    .pb-mobile-catalog-search .pb-mobile-search-status {
        margin: 0 0 8px;
        color: #59636f;
        font-size: 14px;
        line-height: 1.4;
    }

    .pb-mobile-search-results:not(:empty) {
        border: 1px solid #e1e5e9;
        border-radius: 12px;
        background: #fff;
        overflow: hidden;
    }

    .pb-mobile-search-results li + li { border-top: 1px solid #eaedf0; }

    .pb-mobile-search-results a {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 68px;
        padding: 7px 9px;
        color: #262b34;
        text-decoration: none;
    }

    .pb-mobile-search-results a:focus-visible,
    .pb-mobile-search-results a:active { background: #f4f5f7; }

    .pb-mobile-search-results img {
        flex: 0 0 52px;
        width: 52px;
        height: 52px;
        border: 1px solid #edf0f3;
        border-radius: 8px;
        background: #fff;
        object-fit: contain;
    }

    .pb-mobile-search-details { display: grid; gap: 4px; min-width: 0; }
    .pb-mobile-search-name { font-size: 14px; font-weight: 550; line-height: 1.28; overflow-wrap: anywhere; }
    .pb-mobile-search-prices { display: flex; align-items: baseline; gap: 2px 7px; flex-wrap: wrap; line-height: 1.25; }
    .pb-mobile-search-price { color: #9e252d; font-size: 15px; font-weight: 700; }
    .pb-mobile-search-old-price { color: #646d77; font-size: 12px; }
    .pb-mobile-search-rating { color: #785b1e; font-size: 12px; }

    .pb-mobile-catalog-search :is(button, a):focus-visible {
        outline: 2px solid #8b2736;
        outline-offset: -2px;
    }
}

@media (max-width: 340px) {
    .pb-mobile-catalog-search #pb-mobile-search-query::placeholder { font-size: 13px; }
    .pb-mobile-search-shortcuts a { padding-inline: 8px; font-size: 13px; }
}
