#search {
    width: 100%;
}

/* INPUT */

#search .pagefind-ui__search-input {
    height: calc(2.875rem + 2px);

    padding-right: 120px !important;
    padding-left: 3rem !important;

    font-size: 1.25rem;

    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* FOCUS */

#search .pagefind-ui__search-input:focus {
    border-color: #dc3545;
    outline: 0;

    box-shadow:
        0 0 0 .2rem rgba(220,53,69,.25);
}

/* UKRYJ DOMYŚLNY CLEAR */

#search .pagefind-ui__search-clear {
    display: none;
}

/* WYNIKI */

#search .pagefind-ui__results {
    margin-top: 2rem;
}

/* POJEDYNCZY WYNIK */

#search .pagefind-ui__result {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

/* TYTUŁ */

#search .pagefind-ui__result-title {
    margin-bottom: .5rem;
}

#search .pagefind-ui__result-title a {
    color: #dc3545;

    font-size: 1.1rem;
    font-weight: 600;

    text-decoration: none;
}

#search .pagefind-ui__result-title a:hover {
    text-decoration: underline;
}

/* OPIS */

#search .pagefind-ui__result-excerpt {
    color: #6c757d;
    font-size: .95rem;
    line-height: 1.5;
}

/* INFO O WYNIKACH */

#search .pagefind-ui__message {
    margin-top: 1rem;
    color: #6c757d;
}

/* LOADER */

#search .pagefind-ui__drawer {
    margin-top: .5rem;
}

/* =========================
   SEARCH WRAPPER
========================= */

.search-wrapper {
    position: relative;
    width: 100%;
}

/* INPUT */

#search .pagefind-ui__search-input {
    height: calc(2.875rem + 2px);

    padding-right: 120px !important;
    padding-left: 1rem !important;

    font-size: 1.25rem;

    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* BUTTON */

#searchButton {
    position: absolute;

    top: 0;
    right: 0;

    height: calc(2.875rem + 2px);

    padding-left: 1.5rem;
    padding-right: 1.5rem;

    border-top-left-radius: 0;
    border-bottom-left-radius: 0;

    z-index: 5;
}

/* IKONA LUPY */

#search .pagefind-ui__search-icon {
    left: 1rem !important;
}

/* INPUT */

#search .pagefind-ui__search-input {
    padding-left: 3.2rem !important;
}

/* WYNIKI NA PEŁNĄ SZEROKOŚĆ */

#search .pagefind-ui__drawer {
    position: absolute;

    left: calc(-45vw + 50%);
    width: 60vw;

    background: #fff;

    padding: 2rem 4rem;

    margin-top: 1rem;

    z-index: 999;

    box-shadow:
        0 10px 30px rgba(0,0,0,.1);
}