﻿/* *** search default header html code - layout *** */

.uws-search-icon {
    position: relative;
}

    .uws-search-icon.active #uwsSearchToggle {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    /* search icon */

    .uws-search-icon .nav-link {
        position: relative;
        z-index: 1;
        transition: opacity .2s ease;
    }

        .uws-search-icon .nav-link i {
            font-size: 17px;
        }

/* search box */

.uws-search-box {
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%) translateX(10px);
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 7px 12px;
    background: #4575a2;
    border-radius: 50px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    z-index: 1001;
}

    /* search acitive */

    .uws-search-box.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(-50%) translateX(0);
    }      

   

/* search form */

#uwsSearchForm {
    display: flex;
    align-items: center;
}

/* search input */

.uws-search-input {
    width: 0;
    opacity: 0;
    border: 0;
    background: #fff;
    color: #333;
    height: 36px;
    border-radius: 50px;
    padding: 0;
    font-size: 14px;
    transition: width .28s ease, opacity .20s ease, padding .28s ease, box-shadow .2s ease;
}

    /* search focus */

    .uws-search-input:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
    }

    /* search placeholder */

    .uws-search-input::placeholder {
        color: #888;
    }

/* search active input */

.uws-search-box.active .uws-search-input {
    width: 220px;
    opacity: 1;
    padding: 0 14px;
}

/* search button */

.uws-search-btn {
    width: 36px;
    height: 36px;
    margin-left: 6px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .2s ease, opacity .2s ease;
    flex-shrink: 0;
}

    .uws-search-btn:hover {
        background: rgba(255,255,255,0.12);
    }

/* search important for overlay */

/*.navbar,
.navbar-collapse,
.container,
.container-fluid {
    overflow: visible !important;
}*/



.gsc-resultsHeader,
.gsc-above-wrapper-area {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important; 
    padding-right: 0 !important; 
}


/* Complete reset of width and outer margins for all main covers */
.gsc-results-wrapper-nooverlay,
.gsc-resultsbox-visible,
.gsc-wrapper,
.gsc-results {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important; 
    padding-right: 0 !important; 
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Forces the result row itself (the white box) to use 100% width on any display */
.gsc-webResult.gsc-result {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Ensures that the inner table fills the entire box and the text and image align correctly*/
table.gsc-table-result {
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}





/* search responsive - mobile */

/* =========================================================
   MOBILE / TABLET SEARCH
========================================================= */

@media (max-width: 991px) {

    .uws-search-box {
        right: 0;
        top: calc(100% + 10px);
        transform: translateY(0) translateX(0);
    }

        .uws-search-box.active .uws-search-input {
            width: 180px;
        }


    /* wrapper */

    .uws-search-icon {
        width: 100%;
        margin-top: 12px;
    }

    /* schovat horní lupu */

    #uwsSearchToggle {
        display: none;
    }

    /* search box */

    .uws-search-box {
        position: relative;
        top: auto;
        right: auto;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        width: 100%;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        overflow: visible;
    }

    /* form */

    #uwsSearchForm {
        width: 100%;
        position: relative;
    }

    /* input */

    .uws-search-input {
        width: 100% !important;
        opacity: 1 !important;
        height: 44px;
        padding: 0 55px 0 18px !important;
        border-radius: 50px;
        background: #ffffff;
        font-size: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    /* button */

    .uws-search-btn {
        position: absolute;
        top: 50%;
        right: 6px;
        transform: translateY(-50%);
        width: 34px;
        height: 34px;
        background: #4575a2;
        border-radius: 50%;
        margin-left: 0;
    }
}

@media (min-width: 992px) {

    .uws-search-box.active .uws-search-btn {
        opacity: 0;
        pointer-events: none;
        width: 0;
        margin: 0;
        overflow: hidden;
    }

    .uws-search-box.active .uws-search-input {
        padding-right: 18px;
    }

    .navbar-collapse {
        overflow: visible !important;
    }
}


/* *** detail setting search - items result ***  */


/* 1. Unifying the font and color of the main headings in the results */
.gsc-webResult .gs-title a.gs-title,
.gsc-webResult .gs-title a.gs-title b {
    font-family: 'Segoe UI', Roboto !important;
    color: #4575a2 !important;
}

.gsc-webResult.gsc-result:hover a.gs-title {
    font-family: 'Segoe UI', Roboto !important;
    text-decoration: underline !important;
}

.gsc-webResult.gsc-result a.gs-title {
    transition: border-color 0.4s ease-in-out !important;
}

.gsc-webResult.gsc-result:hover a.gs-title:hover,
.gsc-webResult.gsc-result:hover a.gs-title:hover b,
.gsc-webResult.gsc-result:hover a.gs-title:hover strong {
    color: green !important;
}



/* 2. Editing the text label (result perex) */
.gsc-webResult .gs-snippet {
    font-family: 'Segoe UI', Roboto !important;
    color: #4A4A4A !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* 3. Styling a single result into a clean box */
.gsc-webResult.gsc-result {
    padding: 15px !important;
    margin-bottom: 15px !important;
    border: 1px solid #EAEAEA !important;
    border-radius: 4px !important;
    background-color: #FFFFFF !important;
}

/* 4. Hide the ugly default border of the entire search engine */
.gsc-control-cse {
    border: none !important;
    padding: 0 !important;
    background-color: transparent !important;
}

/* 5. Modifying the design of the pagination buttons (1, 2, 3...) at the bottom of the page */
.gsc-cursor-page {
    color: #005A36 !important;
    border: 1px solid #EAEAEA !important;
    padding: 5px 10px !important;
    margin: 0 3px !important;
    text-decoration: none !important;
    border-radius: 3px !important;
}

.gsc-cursor-current-page {
    background-color: #005A36 !important;
    color: #FFFFFF !important;
    border-color: #005A36 !important;
}

