/**
 * For the full copyright and license information, please view the
 * LICENSE.md file that was distributed with this source code.
 */
/* ps_searchbar.css */
/* ============================================================
   DESKTOP SEARCH POPUP
   ============================================================ */

.cs-header-main__search {
    grid-area: search;

    position: relative;

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

.cs-search-desktop {
    position: relative;

    align-items: center;
    justify-content: center;
}


/* Loupe */

.cs-search-desktop__trigger {
    width: 40px;
    height: 40px;

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

    padding: 0;

    border: 0;

    background: transparent;
    color: var(--cs-text);

    cursor: pointer;
}

.cs-search-desktop__trigger:hover {
    color: var(--cs-brown);
}

.cs-search-desktop__trigger .material-icons {
    font-size: 22px;
}


/* Popup */

.cs-search-desktop__popup {
    position: absolute;

    top: calc(100% + 8px);
    left: 50%;

    z-index: 1200;

    width: 340px;

    padding: 14px;

    background: #ffffff;

    border: 1px solid var(--cs-border);

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.14);

    transform: translateX(-50%);
}

.cs-search-desktop__popup[hidden] {
    display: none !important;
}


/* Formulaire */

.cs-search-desktop__popup
.ps-searchbar {
    position: relative;

    width: 100%;
}

.cs-search-desktop__popup
.ps-searchbar__form {
    position: relative;

    width: 100%;

    display: flex;
    align-items: center;
}

.cs-search-desktop__popup
.ps-searchbar__input {
    width: 100%;
    height: 44px;

    padding:
        0
        42px
        0
        40px;

    border:
        1px solid
        var(--cs-border-dark);

    border-radius: 0;

    background: #ffffff;

    box-shadow: none;
}

.cs-search-desktop__popup
.ps-searchbar__input:focus {
    border-color: var(--cs-beige-dark);
}

.cs-search-desktop__popup
.ps-searchbar__magnifier {
    position: absolute;

    left: 12px;

    z-index: 2;

    color: var(--cs-text);

    font-size: 20px;

    pointer-events: none;
}

.cs-search-desktop__popup
.ps-searchbar__clear {
    position: absolute;

    right: 6px;

    z-index: 2;
}


/* Résultats autocomplete */

.cs-search-desktop__popup
.ps-searchbar__dropdown {
    position: absolute;

    top: calc(100% + 6px);
    left: 0;

    z-index: 1210;

    width: 100%;

    background: #ffffff;

    border:
        1px solid
        var(--cs-border);

    box-shadow:
        0 10px 20px
        rgba(0, 0, 0, 0.10);
}
