/*
 * BEZAR_USED_PHONE_CATEGORY_SEARCH_V1
 */

.bezar-used-phone-search {
    width: 100%;
    margin-bottom: 22px;
}


.bezar-used-phone-search-form {
    display: flex;
    align-items: stretch;

    gap: 8px;

    width: 100%;
}


.bezar-used-phone-search-input-wrap {
    position: relative;

    flex: 1 1 auto;

    min-width: 0;
}


.bezar-used-phone-search-input-wrap input[type="search"] {
    width: 100%;
    height: 46px;

    margin: 0;

    padding:
        0
        44px
        0
        43px;

    border:
        1px solid
        rgba(0, 0, 0, .14);

    border-radius: 10px;

    background: #fff;

    color: #222;

    font-size: 14px;
    font-weight: 400;

    box-shadow:
        0 1px 4px
        rgba(0, 0, 0, .04);

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}


.bezar-used-phone-search-input-wrap
input[type="search"]:focus {
    outline: none;

    border-color:
        rgba(20, 133, 211, .65);

    box-shadow:
        0 0 0 3px
        rgba(20, 133, 211, .10);
}


.bezar-used-phone-search-input-wrap
input[type="search"]::placeholder {
    color: #999;
}


.bezar-used-phone-search-icon {
    position: absolute;

    top: 50%;
    left: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #777;

    transform:
        translateY(-50%);

    pointer-events: none;
}


.bezar-used-phone-search-clear {
    position: absolute;

    top: 50%;
    right: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    border-radius: 50%;

    color: #777;

    font-size: 22px;
    font-weight: 400;
    line-height: 1;

    text-decoration: none;

    transform:
        translateY(-50%);

    transition:
        background .15s ease,
        color .15s ease;
}


.bezar-used-phone-search-clear:hover {
    color: #222;

    background:
        rgba(0, 0, 0, .06);
}


.bezar-used-phone-search-button {
    flex: 0 0 auto;

    min-width: 118px;
    height: 46px;

    padding:
        0
        20px;

    border: 0;
    border-radius: 10px;

    color: #fff;
    background: #1286cf;

    font-size: 12px;
    font-weight: 700;
    line-height: 46px;

    text-align: center;

    cursor: pointer;

    transition:
        opacity .15s ease,
        transform .15s ease;
}


.bezar-used-phone-search-button:hover {
    opacity: .92;
}


.bezar-used-phone-search-button:active {
    transform:
        translateY(1px);
}


.bezar-used-phone-search-status {
    margin-top: 8px;

    color: #777;

    font-size: 12px;
    line-height: 1.4;
}


.bezar-used-phone-search-status strong {
    color: #333;
    font-weight: 600;
}


/*
 * Uklanjamo browser WebKit X
 * jer koristimo svoj kontrolisani X.
 */
.bezar-used-phone-search-input-wrap
input[type="search"]::-webkit-search-cancel-button {
    display: none;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {

    .bezar-used-phone-search {
        margin-bottom: 16px;
    }


    .bezar-used-phone-search-form {
        gap: 6px;
    }


    .bezar-used-phone-search-input-wrap
    input[type="search"] {
        height: 42px;

        padding-left: 38px;
        padding-right: 35px;

        font-size: 13px;
    }


    .bezar-used-phone-search-icon {
        left: 11px;
    }


    .bezar-used-phone-search-icon svg {
        width: 18px;
        height: 18px;
    }


    .bezar-used-phone-search-button {
        min-width: 88px;
        height: 42px;

        padding-left: 12px;
        padding-right: 12px;

        font-size: 10px;
        line-height: 42px;
    }


    .bezar-used-phone-search-clear {
        right: 8px;
    }
}


/* ============================================================
   BEZAR_USED_PHONE_SEARCH_COMPACT_V3
   Kompaktan search ispod SEO teksta
   ============================================================ */

.bezar-used-phone-search {
    width: 100%;
    max-width: 620px;

    margin-top: 18px;
    margin-bottom: 22px;
}


.bezar-used-phone-search-form {
    gap: 6px;
}


.bezar-used-phone-search-input-wrap
input[type="search"] {
    height: 38px;

    padding:
        0
        38px
        0
        36px;

    border-radius: 7px;

    font-size: 13px;
}


.bezar-used-phone-search-icon {
    left: 11px;
}


.bezar-used-phone-search-icon svg {
    width: 17px;
    height: 17px;
}


.bezar-used-phone-search-clear {
    right: 8px;

    width: 22px;
    height: 22px;

    font-size: 19px;
}


.bezar-used-phone-search-button {
    min-width: 96px;
    height: 38px;

    padding:
        0
        15px;

    border-radius: 7px;

    font-size: 10px;
    line-height: 38px;
}


.bezar-used-phone-search-status {
    margin-top: 5px;

    font-size: 11px;
}


/*
 * MOBILE
 */
@media (max-width: 767px) {

    .bezar-used-phone-search {
        max-width: none;

        margin-top: 14px;
        margin-bottom: 17px;
    }


    .bezar-used-phone-search-input-wrap
    input[type="search"] {
        height: 38px;

        font-size: 12px;
    }


    .bezar-used-phone-search-button {
        min-width: 82px;
        height: 38px;

        padding:
            0
            10px;

        line-height: 38px;

        font-size: 9px;
    }
}


/* ============================================================
   BEZAR_USED_PHONE_SEARCH_FINAL_V5
   ============================================================ */

/*
 * Finalna kompaktna velicina.
 *
 * Ne koristimo display:none.
 * Ako JS jednog dana ne pronadje poziciju,
 * search ce i dalje ostati vidljiv.
 */
.bezar-used-phone-search {
    width: 100%;
    max-width: 560px;

    margin-top: 16px;
    margin-bottom: 22px;
}


.bezar-used-phone-search-form {
    display: flex;
    align-items: stretch;

    gap: 6px;
}


.bezar-used-phone-search-input-wrap
input[type="search"] {
    height: 38px !important;

    padding:
        0
        36px
        0
        36px !important;

    border-radius: 7px !important;

    font-size: 12px !important;
}


.bezar-used-phone-search-icon {
    left: 11px !important;
}


.bezar-used-phone-search-icon svg {
    width: 17px;
    height: 17px;
}


.bezar-used-phone-search-button {
    min-width: 94px !important;
    height: 38px !important;

    padding:
        0
        14px !important;

    border-radius: 7px !important;

    font-size: 10px !important;
    line-height: 38px !important;
}


.bezar-used-phone-search-status {
    margin-top: 5px;

    font-size: 11px;
}


/*
 * MOBILE
 */
@media (max-width: 767px) {

    .bezar-used-phone-search {
        max-width: none;

        margin-top: 13px;
        margin-bottom: 18px;
    }


    .bezar-used-phone-search-input-wrap
    input[type="search"] {
        height: 38px !important;

        font-size: 12px !important;
    }


    .bezar-used-phone-search-button {
        min-width: 82px !important;

        height: 38px !important;

        padding:
            0
            10px !important;

        line-height: 38px !important;

        font-size: 9px !important;
    }
}


/* ============================================================
   BEZAR_USED_PHONE_SEARCH_POSITION_V6
   FINALNI DIZAJN
   ============================================================ */


/*
 * Glavna kategorija:
 * ispod category dugmadi i DESNO.
 */
.bezar-used-phone-search-after-categories {
    width: min(100%, 500px) !important;
    max-width: 500px !important;

    margin:
        14px
        0
        22px
        auto !important;
}


/*
 * Podkategorija:
 * ista dimenzija, takođe desno.
 */
.bezar-used-phone-search-after-description {
    width: min(100%, 500px) !important;
    max-width: 500px !important;

    margin:
        16px
        0
        22px
        auto !important;
}


/* ============================================================
   FORMA
   ============================================================ */

.bezar-used-phone-search-form {
    display: flex !important;
    align-items: center !important;

    gap: 0 !important;

    width: 100%;

    padding: 3px;

    border:
        1px solid
        rgba(20, 35, 50, .12);

    border-radius: 10px;

    background: #fff;

    box-shadow:
        0 4px 16px
        rgba(25, 45, 65, .06);

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}


/*
 * Fokus cele forme.
 */
.bezar-used-phone-search-form:focus-within {
    border-color:
        rgba(18, 134, 207, .48);

    box-shadow:
        0 5px 18px
        rgba(18, 134, 207, .10);
}


/* ============================================================
   INPUT
   ============================================================ */

.bezar-used-phone-search-input-wrap {
    flex: 1 1 auto;

    min-width: 0;
}


.bezar-used-phone-search
.bezar-used-phone-search-input-wrap
input[type="search"] {
    width: 100% !important;
    height: 38px !important;

    margin: 0 !important;

    padding:
        0
        38px
        0
        37px !important;

    border: 0 !important;
    border-radius: 8px !important;

    outline: none !important;

    background:
        transparent !important;

    box-shadow:
        none !important;

    color: #292929 !important;

    font-size: 12px !important;
    font-weight: 400 !important;
}


.bezar-used-phone-search
input[type="search"]::placeholder {
    color: #a1a1a1;

    opacity: 1;
}


/* ============================================================
   SEARCH IKONICA
   ============================================================ */

.bezar-used-phone-search-icon {
    left: 11px !important;

    color: #7a7a7a !important;
}


.bezar-used-phone-search-icon svg {
    width: 17px;
    height: 17px;
}


/* ============================================================
   X
   ============================================================ */

.bezar-used-phone-search-clear {
    right: 7px !important;

    width: 23px !important;
    height: 23px !important;

    color: #888 !important;

    font-size: 18px !important;

    background:
        #f4f5f6;
}


.bezar-used-phone-search-clear:hover {
    color: #222 !important;

    background:
        #eceeef !important;
}


/* ============================================================
   BUTTON
   ============================================================ */

.bezar-used-phone-search
.bezar-used-phone-search-button {
    flex:
        0
        0
        auto;

    min-width: 96px !important;
    height: 38px !important;

    margin: 0 !important;

    padding:
        0
        15px !important;

    border: 0 !important;
    border-radius: 8px !important;

    background:
        #1687d9 !important;

    color:
        #fff !important;

    box-shadow: none !important;

    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 38px !important;

    letter-spacing: .2px;

    text-align: center;

    transition:
        background .15s ease,
        transform .15s ease;
}


.bezar-used-phone-search
.bezar-used-phone-search-button:hover {
    background:
        #0876c2 !important;
}


.bezar-used-phone-search
.bezar-used-phone-search-button:active {
    transform:
        translateY(1px);
}


/* ============================================================
   STATUS PRETRAGE
   ============================================================ */

.bezar-used-phone-search-status {
    margin-top: 6px;

    padding-left: 2px;

    color: #888;

    font-size: 11px;
}


/* ============================================================
   MOBILNI
   ============================================================ */

@media (max-width: 767px) {

    /*
     * Na telefonu search koristi celu sirinu.
     * Desno poravnanje tu nema smisla.
     */
    .bezar-used-phone-search-after-categories,
    .bezar-used-phone-search-after-description {
        width: 100% !important;
        max-width: none !important;

        margin:
            12px
            0
            18px
            0 !important;
    }


    .bezar-used-phone-search-form {
        padding: 2px;

        border-radius: 9px;
    }


    .bezar-used-phone-search
    .bezar-used-phone-search-input-wrap
    input[type="search"] {
        height: 38px !important;

        padding-left: 34px !important;

        font-size: 11px !important;
    }


    .bezar-used-phone-search-icon {
        left: 9px !important;
    }


    .bezar-used-phone-search-icon svg {
        width: 16px;
        height: 16px;
    }


    .bezar-used-phone-search
    .bezar-used-phone-search-button {
        min-width: 84px !important;

        height: 38px !important;

        padding:
            0
            10px !important;

        line-height: 38px !important;

        font-size: 9px !important;
    }

}


/* ============================================================
   BEZAR_USED_PHONE_SEARCH_SORT_ROW_V9
   ============================================================ */


/*
 * Toolbar u kom su:
 *
 * SEARCH LEVO
 * SORTIRAJ PO DESNO
 */
.bezar-search-sort-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    gap: 20px !important;

    width: 100% !important;
}


/*
 * Search vise nema spoljne margine
 * kao kada je stajao sam ispod kategorija.
 */
.bezar-used-phone-search-in-sort-row {
    flex:
        0
        1
        500px;

    width: 100% !important;
    max-width: 500px !important;

    margin:
        0
        auto
        0
        0 !important;
}


/*
 * Sorting ostaje desno.
 */
.bezar-search-sort-row
.woocommerce-ordering {
    flex:
        0
        0
        auto;

    margin-left: auto !important;
}


/*
 * Ako Woodmart koristi drugi sorting wrapper.
 */
.bezar-search-sort-row
.wd-shop-tools {
    margin-left: auto;
}


/*
 * Malo kompaktniji izgled u toolbaru.
 */
.bezar-used-phone-search-in-sort-row
.bezar-used-phone-search-form {
    min-height: 40px;
}


/*
 * TABLET
 */
@media (max-width: 1024px) {

    .bezar-search-sort-row {
        gap: 12px !important;
    }

    .bezar-used-phone-search-in-sort-row {
        flex-basis: 430px;
        max-width: 430px !important;
    }

}


/*
 * MOBILE
 *
 * Na telefonu ih ipak stavljamo jedan ispod drugog,
 * da search ne postane previse uzak.
 */
@media (max-width: 767px) {

    .bezar-search-sort-row {
        flex-direction: column !important;
        align-items: stretch !important;

        gap: 10px !important;
    }


    .bezar-used-phone-search-in-sort-row {
        flex:
            1
            1
            auto;

        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
    }


    .bezar-search-sort-row
    .woocommerce-ordering {
        align-self: flex-end;

        margin-left: auto !important;
    }

}


/* ============================================================
   BEZAR_USED_PHONE_SEARCH_SORT_TEXT_V10
   ============================================================ */


/*
 * POTPUNO NOV RED:
 *
 * SEARCH                                   SORTIRAJ PO
 */
.bezar-search-sort-final-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    gap: 24px !important;

    width: 100% !important;

    margin:
        0
        0
        20px
        0 !important;
}


/*
 * SEARCH LEVO
 */
.bezar-used-phone-search-final-left {
    flex:
        0
        1
        500px !important;

    width: 500px !important;
    max-width: 500px !important;

    margin:
        0 !important;
}


/*
 * SORTIRAJ PO DESNO
 */
.bezar-sort-final-right {
    flex:
        0
        0
        auto !important;

    width: auto !important;

    margin:
        0
        0
        0
        auto !important;

    padding: 0 !important;
}


/*
 * Elementor nekad daje widgetu 100% sirinu.
 * Ovde to namenski ponistavamo samo za sorting widget.
 */
.bezar-search-sort-final-row
.bezar-sort-final-right.elementor-element {
    width: auto !important;
    max-width: none !important;

    align-self: center !important;
}


/*
 * Search forma je kompaktna.
 */
.bezar-used-phone-search-final-left
.bezar-used-phone-search-form {
    width: 100% !important;

    margin: 0 !important;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1024px) {

    .bezar-search-sort-final-row {
        gap: 15px !important;
    }


    .bezar-used-phone-search-final-left {
        flex-basis:
            420px !important;

        width: 420px !important;
        max-width: 420px !important;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {

    .bezar-search-sort-final-row {
        flex-direction:
            column !important;

        align-items:
            stretch !important;

        gap: 10px !important;

        margin-bottom:
            16px !important;
    }


    .bezar-used-phone-search-final-left {
        flex:
            1
            1
            auto !important;

        width:
            100% !important;

        max-width:
            none !important;
    }


    .bezar-sort-final-right {
        align-self:
            flex-end !important;

        margin-left:
            auto !important;
    }

}


/* ============================================================
   BEZAR USED PHONE SEARCH - DESKTOP RIGHT / MOBILE TOP
   ============================================================ */

.bezar-search-sort-final-row {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 0 18px 0 !important;
}

.bezar-used-phone-search-final-left {
    width: 430px !important;
    max-width: 430px !important;
    flex: 0 0 430px !important;
    margin: 0 !important;
}

.bezar-used-phone-search-final-left .bezar-used-phone-search-form {
    width: 100% !important;
    margin: 0 !important;
}

.bezar-sort-final-right {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
}

.bezar-used-phone-search-form {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
}

.bezar-used-phone-search-form input[type="search"],
.bezar-used-phone-search-form input[type="text"] {
    height: 48px !important;
    border-radius: 14px 0 0 14px !important;
    border: 1px solid #d8dee8 !important;
    border-right: 0 !important;
    padding: 0 16px !important;
    box-shadow: none !important;
}

.bezar-used-phone-search-form button,
.bezar-used-phone-search-form input[type="submit"] {
    height: 48px !important;
    min-width: 108px !important;
    border-radius: 0 14px 14px 0 !important;
    border: 1px solid #2f8de4 !important;
    background: #2f8de4 !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 0 18px !important;
}

@media (max-width: 767px) {

    .bezar-search-sort-final-row {
        display: block !important;
        margin: 0 !important;
    }

    .bezar-used-phone-search-mobile-top {
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 12px 0 !important;
    }

    .bezar-used-phone-search-mobile-top .bezar-used-phone-search-form {
        width: 100% !important;
    }

    .bezar-used-phone-search-mobile-top .bezar-used-phone-search-form input[type="search"],
    .bezar-used-phone-search-mobile-top .bezar-used-phone-search-form input[type="text"] {
        height: 44px !important;
        font-size: 14px !important;
    }

    .bezar-used-phone-search-mobile-top .bezar-used-phone-search-form button,
    .bezar-used-phone-search-mobile-top .bezar-used-phone-search-form input[type="submit"] {
        height: 44px !important;
        min-width: 96px !important;
        font-size: 13px !important;
    }
}


/* ============================================================
   BEZAR_USED_PHONE_SEARCH_STABLE_RETURN_V11
   FINALNA STABILNA POZICIJA
   ============================================================ */

.bezar-used-phone-search-stable-right {
    display: block !important;

    width: 100% !important;
    max-width: 535px !important;

    margin:
        18px
        0
        28px
        auto !important;

    padding: 0 !important;
}


/*
 * Forma
 */
.bezar-used-phone-search-stable-right
.bezar-used-phone-search-form {
    display: flex !important;
    align-items: center !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 3px !important;

    gap: 0 !important;

    border:
        1px solid
        rgba(20, 35, 50, .12) !important;

    border-radius: 11px !important;

    background: #fff !important;

    box-shadow:
        0 4px 16px
        rgba(25, 45, 65, .06) !important;
}


/*
 * Input
 */
.bezar-used-phone-search-stable-right
.bezar-used-phone-search-input-wrap {
    flex: 1 1 auto !important;

    min-width: 0 !important;
}


.bezar-used-phone-search-stable-right
input[type="search"] {
    width: 100% !important;
    height: 42px !important;

    margin: 0 !important;

    padding:
        0
        38px
        0
        38px !important;

    border: 0 !important;
    outline: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

    font-size: 13px !important;
}


/*
 * Dugme
 */
.bezar-used-phone-search-stable-right
.bezar-used-phone-search-button {
    flex: 0 0 auto !important;

    min-width: 102px !important;
    height: 42px !important;

    margin: 0 !important;

    padding:
        0
        16px !important;

    border: 0 !important;
    border-radius: 9px !important;

    background: #1687d9 !important;

    color: #fff !important;

    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 42px !important;

    text-align: center !important;
}


.bezar-used-phone-search-stable-right
.bezar-used-phone-search-button:hover {
    background: #0876c2 !important;
}


/*
 * MOBILE:
 * puna sirina, prirodno uklopljena.
 */
@media (max-width: 767px) {

    .bezar-used-phone-search-stable-right {
        width: 100% !important;
        max-width: none !important;

        margin:
            14px
            0
            20px
            0 !important;
    }


    .bezar-used-phone-search-stable-right
    input[type="search"] {
        height: 40px !important;

        font-size: 12px !important;
    }


    .bezar-used-phone-search-stable-right
    .bezar-used-phone-search-button {
        min-width: 88px !important;
        height: 40px !important;

        padding:
            0
            10px !important;

        line-height: 40px !important;

        font-size: 9px !important;
    }

}
