.mobile-search-toggle,
.mobile-search-panel {
    display: none;
}

@media (min-width: 768px) {
    #header .header-top__cart #_desktop_cart .header > a:hover,
    #header .header-top__cart #_desktop_cart .header > a:focus {
        color: #1f1f1f !important;
    }

    #header .header-top__cart #_desktop_cart .header > a:hover::before,
    #header .header-top__cart #_desktop_cart .header > a:focus::before {
        color: #1f1f1f !important;
        background: transparent !important;
    }

    #header .header-top__cart #_desktop_cart .header > a:hover .text,
    #header .header-top__cart #_desktop_cart .header > a:focus .text {
        color: #1f1f1f !important;
    }

    #header .header-top__cart #_desktop_cart .header > a:hover .cart-qty,
    #header .header-top__cart #_desktop_cart .header > a:focus .cart-qty {
        color: #3b3b3b !important;
    }
}

@media (max-width: 767px) {
    #header .header-nav .top-nav > .mobile-search-toggle,
    #header .header-nav .top-nav > #_mobile_cart,
    #header .header-nav .top-nav > #_mobile_user_info {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        margin: 0 0 0 8px !important;
        padding: 0 !important;
    }

    #header .header-nav .mobile-search-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid rgba(239, 79, 125, .35);
        border-radius: 50%;
        background: #fff;
        color: #ef4f7d;
        box-shadow: 0 2px 8px rgba(80, 38, 54, .08);
        cursor: pointer;
    }

    #header .header-nav .mobile-search-toggle svg,
    #header .header-nav .mobile-search-panel button svg {
        width: 21px;
        height: 21px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
    }

    #header .header-nav .mobile-search-toggle[aria-expanded="true"] {
        border-color: #ef4f7d;
        background: #ef4f7d;
        color: #fff;
    }

    #header .header-nav .top-nav > #_mobile_cart .blockcart,
    #header .header-nav .top-nav > #_mobile_cart .blockcart .header,
    #header .header-nav .top-nav > #_mobile_user_info .user-info,
    #header .header-nav .top-nav > #_mobile_user_info .user-info a {
        width: 40px;
        height: 40px;
        margin: 0 !important;
        padding: 0 !important;
    }

    #header .header-nav .top-nav > #_mobile_cart .cart-preview .header,
    #header .header-nav .top-nav > #_mobile_cart .cart-preview a {
        background: #ff7bb0 !important;
        color: #fff !important;
    }

    #header .header-nav .top-nav > #_mobile_cart .cart-preview a::before,
    #header .header-nav .top-nav > #_mobile_cart .cart-preview a:hover::before,
    #header .header-nav .top-nav > #_mobile_cart .cart-preview a:focus::before,
    #header .header-nav .top-nav > #_mobile_cart .cart-preview a:active::before {
        color: #fff !important;
    }

    #header .header-nav .top-nav > #_mobile_cart .cart-preview .header:hover,
    #header .header-nav .top-nav > #_mobile_cart .cart-preview .header:focus-within {
        background: #ef4f7d !important;
    }

    #header .header-nav .mobile-search-toggle:focus-visible,
    #header .header-nav .mobile-search-panel input:focus-visible,
    #header .header-nav .mobile-search-panel button:focus-visible {
        outline: 3px solid rgba(239, 79, 125, .3);
        outline-offset: 2px;
    }

    #header .header-nav .mobile-search-panel {
        display: block;
        padding: 0 0 12px;
    }

    #header .header-nav .mobile-search-panel[hidden] {
        display: none !important;
    }

    #header .header-nav .mobile-search-panel form {
        display: flex;
        width: 100%;
        height: 44px;
        margin: 0;
        overflow: hidden;
        border: 1px solid #efc5d2;
        border-radius: 999px;
        background: #fff;
        box-shadow: 0 5px 16px rgba(80, 38, 54, .09);
    }

    #header .header-nav .mobile-search-panel input {
        min-width: 0;
        flex: 1 1 auto;
        height: 42px;
        padding: 0 8px 0 18px;
        border: 0;
        background: transparent;
        color: #2f2f2f;
        font-size: 15px;
        box-shadow: none;
    }

    #header .header-nav .mobile-search-panel input::placeholder {
        color: #8b7f83;
    }

    #header .header-nav .mobile-search-panel button {
        display: inline-flex;
        flex: 0 0 50px;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 42px;
        padding: 0;
        border: 0;
        border-radius: 0 999px 999px 0;
        background: #ef4f7d;
        color: #fff;
    }
}

@media (max-width: 359px) {
    #header .header-nav .top-nav > .mobile-search-toggle,
    #header .header-nav .top-nav > #_mobile_cart,
    #header .header-nav .top-nav > #_mobile_user_info {
        margin-left: 6px !important;
    }
}
