/**
 * Mobile FiboSearch inside Breakdance full-screen search modal.
 */

.fresh-mobile-search--source {
    display: none !important;
}

.fresh-mobile-search--mounted {
    display: none !important;
}

/* FiboSearch inside the Breakdance full-screen lightbox. */
@media (max-width: 1119px) {
    .bde-search-form-19-579 .search-form__lightbox-container .fresh-mobile-fibosearch.dgwt-wcas-search-wrapp {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        position: relative;
    }

    .bde-search-form-19-579 .search-form__lightbox-container .fresh-mobile-fibosearch .dgwt-wcas-search-form {
        margin: 0;
        width: 100%;
    }

    .bde-search-form-19-579 .search-form__lightbox-container .fresh-mobile-fibosearch .dgwt-wcas-sf-wrapp {
        position: relative;
        width: 100%;
    }

    .bde-search-form-19-579 .search-form--full-screen .search-form__lightbox-container,
    .bde-search-form-19-579 .search-form--full-screen .search-form__lightbox-container:focus-within {
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        outline: none !important;
        padding: 0 !important;
    }

    .bde-search-form-19-579 .search-form--full-screen.is-active .search-form__lightbox {
        background-color: rgba(0, 0, 0, 0.8) !important;
    }

    .bde-search-form-19-579 .search-form__lightbox-container .fresh-mobile-fibosearch .dgwt-wcas-search-form,
    .bde-search-form-19-579 .search-form__lightbox-container .fresh-mobile-fibosearch .dgwt-wcas-sf-wrapp {
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .bde-search-form-19-579 .search-form__lightbox-container .fresh-mobile-fibosearch .dgwt-wcas-search-input {
        height: 52px !important;
        min-height: 52px !important;
        border: 1px solid #919eab !important;
        border-radius: 999px !important;
        background: #fff !important;
        color: #1b2233 !important;
        font-size: 16px !important;
        font-style: normal !important;
        font-weight: 600 !important;
        line-height: 52px !important;
        padding: 0 76px 0 32px !important;
        box-shadow: none !important;
        margin: 0 !important;
        outline: none !important;
    }

    .bde-search-form-19-579 .search-form__lightbox-container .fresh-mobile-fibosearch .dgwt-wcas-search-input:focus,
    .bde-search-form-19-579 .search-form__lightbox-container .fresh-mobile-fibosearch.dgwt-wcas-open .dgwt-wcas-search-input,
    .bde-search-form-19-579 .search-form__lightbox-container .fresh-mobile-fibosearch .dgwt-wcas-open .dgwt-wcas-search-input {
        border: 1px solid #919eab !important;
        border-radius: 999px !important;
        background: #fff !important;
        box-shadow: none !important;
        outline: none !important;
    }

    .bde-search-form-19-579 .search-form__lightbox-container .fresh-mobile-fibosearch .dgwt-wcas-search-input::placeholder {
        color: #8b98a7 !important;
        opacity: 1 !important;
        font-style: normal !important;
        font-weight: 400 !important;
    }

    .bde-search-form-19-579 .search-form__lightbox-container .fresh-mobile-fibosearch.dgwt-wcas-style-solaris.dgwt-wcas-no-submit .dgwt-wcas-ico-magnifier {
        position: absolute !important;
        right: 28px !important;
        left: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 24px !important;
        height: 24px !important;
        background: url("https://dev.creativelunch.com/fruit/wp-content/uploads/2026/06/search_icon.svg") center / contain no-repeat !important;
        filter: none !important;
    }

    .bde-search-form-19-579 .search-form__lightbox-container .fresh-mobile-fibosearch.dgwt-wcas-style-solaris.dgwt-wcas-no-submit .dgwt-wcas-ico-magnifier path {
        display: none !important;
    }

    .bde-search-form-19-579 .search-form__lightbox-container .fresh-mobile-fibosearch .dgwt-wcas-preloader,
    .bde-search-form-19-579 .search-form__lightbox-container .fresh-mobile-fibosearch .dgwt-wcas-close {
        width: 16px !important;
        height: 16px !important;
        right: 62px !important;
        left: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        opacity: 0.55;
        filter: none !important;
    }

    /* No second overlay/back arrow — we are already inside the BD modal. */
    .bde-search-form-19-579 .fresh-mobile-fibosearch .dgwt-wcas-om-bar,
    .bde-search-form-19-579 .fresh-mobile-fibosearch .dgwt-wcas-om-return,
    .bde-search-form-19-579 .fresh-mobile-fibosearch .dgwt-wcas-om-clear,
    .bde-search-form-19-579 .fresh-mobile-fibosearch .dgwt-wcas-enable-mobile-form {
        display: none !important;
    }

    html.dgwt-wcas-overlay-mobile-on .bde-search-form-19-579 .fresh-mobile-fibosearch .dgwt-wcas-search-wrapp {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        transform: none !important;
    }

    .bde-search-form-19-579 .search-form--full-screen.is-active .search-form__lightbox,
    .bde-search-form-19-579 .search-form--full-screen.is-active .search-form__lightbox-container {
        overflow: visible;
    }

    /* Popular searches panel (matches desktop CodeBlock 287). */
    .bde-search-form-19-579 .fresh-mobile-fibosearch .ff-popular-searches--mobile-modal {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 12px);
        z-index: 40;
        padding: 24px 20px 28px;
        background: #fff !important;
        border: 0 !important;
        border-radius: 24px !important;
        box-shadow: 0 24px 50px rgba(27, 34, 51, 0.24) !important;
    }

    .bde-search-form-19-579 .fresh-mobile-fibosearch .ff-popular-searches--mobile-modal.is-visible {
        display: block;
    }

    .bde-search-form-19-579 .fresh-mobile-fibosearch .ff-popular-title {
        color: #7a2a8c;
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        margin: 0 0 18px;
    }

    .bde-search-form-19-579 .fresh-mobile-fibosearch .ff-popular-pills {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bde-search-form-19-579 .fresh-mobile-fibosearch .ff-popular-pills button {
        width: 100%;
        justify-content: center;
        border: 0;
        border-radius: 999px;
        background: #f3eef6;
        color: #7a2a8c;
        padding: 10px 22px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .bde-search-form-19-579 .fresh-mobile-fibosearch .ff-popular-pills button:hover {
        background: #ffd85a;
        color: #1b2233;
    }

    /* FiboSearch results while the mobile modal is open (suggestions mount on body). */
    body.fresh-mobile-search-modal-open .dgwt-wcas-suggestions-wrapp {
        background: #fff !important;
        border: 0 !important;
        border-radius: 24px !important;
        box-shadow: 0 24px 50px rgba(27, 34, 51, 0.24) !important;
        overflow: hidden;
        padding: 24px 20px 28px !important;
    }

    body.fresh-mobile-search-modal-open .dgwt-wcas-suggestion-headline {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 0 14px !important;
        background: transparent !important;
    }

    body.fresh-mobile-search-modal-open .dgwt-wcas-suggestion-headline .dgwt-wcas-st {
        color: #b285bd !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
    }

    body.fresh-mobile-search-modal-open .dgwt-wcas-suggestion-product {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        padding: 12px 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    body.fresh-mobile-search-modal-open .dgwt-wcas-suggestion-product:hover,
    body.fresh-mobile-search-modal-open .dgwt-wcas-suggestion-product.dgwt-wcas-suggestion-selected {
        background: #f8f3fa !important;
        border-radius: 14px !important;
    }

    body.fresh-mobile-search-modal-open .dgwt-wcas-suggestion-product .dgwt-wcas-si {
        width: 72px !important;
        height: 72px !important;
        min-width: 72px !important;
        margin-right: 18px !important;
    }

    body.fresh-mobile-search-modal-open .dgwt-wcas-suggestion-product img {
        width: 72px !important;
        height: 72px !important;
        min-width: 72px !important;
        border-radius: 10px !important;
        object-fit: cover !important;
    }

    body.fresh-mobile-search-modal-open .dgwt-wcas-suggestion a {
        text-decoration: none !important;
    }

    body.fresh-mobile-search-modal-open .dgwt-wcas-suggestion-title,
    body.fresh-mobile-search-modal-open .dgwt-wcas-suggestion strong {
        color: #1b2233 !important;
        font-weight: 700 !important;
    }

    body.fresh-mobile-search-modal-open .dgwt-wcas-suggestion strong {
        color: #7a2a8c !important;
    }

    .bde-search-form-19-579 .search-form--full-screen.is-active .fresh-mobile-fibosearch .dgwt-wcas-suggestions-wrapp {
        top: calc(100% + 8px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin-top: 0 !important;
        border-radius: 24px !important;
        box-shadow: 0 24px 50px rgba(27, 34, 51, 0.24) !important;
        z-index: 30 !important;
    }
}
