
/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    /* Brand Colors */
    --color1: #3c3c3c;
    --color2: #ec841c;
    --color3: #252525;
    --color4: #5b5b5b;
    --color5: #f23636;
    --color6: #b85c00;
    
    /* Background Colors */
    --backgroundColor-primary: #fff;
    --backgroundColor-secondary: #f5f5f5;
    
    /* Font Colors */
    --fontColor-primary: #252525;
    --fontColor-secondary: #fff;
    
    /* Search Component Colors */
    --search-primary-bg: var(--color1);
    --search-secondary-border: var(--color4);
    --search-highlight-bg: var(--color3);
    --search-merch-link: var(--color4);
    --search-merch-link-hover: var(--color2);
    --search-suggestion-link: var(--color3);
    --search-suggestion-link-hover: var(--color2);
    --search-suggestion-bg: var(--backgroundColor-primary);
    --search-button-bg: var(--color2);
    --search-button-hover-bg: var(--color6);
    --search-button-text: var(--fontColor-secondary);
    --search-category-title: var(--color4);
    
    /* Layout Variables */
    --search-border-radius: 5px;
    --search-width: 500px;
    --search-title-size: 12px;
    --search-shadow: 1px 1px 13px 3px #00000075;
    --search-border: 1px solid #c2c2c2;
}

/* ========================================
   MAIN SEARCH CONTAINER
   ======================================== */
#search.tbcntOpen {
    display: flex;
    position: fixed;
    top: 91px;
    right: 5%;
    width: var(--search-width);
    min-height: 416px;
    margin: 0;
    padding: 1rem;
    background: var(--backgroundColor-secondary);
    border-radius: 1rem;
    box-shadow: var(--search-shadow);
    border: var(--search-border);
}

#search > div {
    max-width: var(--search-width);
    margin: inherit;
}

/* Search Icon */
#search.tbcntOpen .icon-search {
    position: absolute;
    top: 32px;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search Input */
#search.tbcntOpen #txtTerm {
    background: var(--backgroundColor-primary);
    border-radius: 8px;
    font-size: 16px;
    height: 50px;
    padding: 8px 8px 8px 50px;
    margin-bottom: 0.5rem;
    border: var(--search-border);
}

/* ========================================
   SEARCH SUGGESTIONS
   ======================================== */
#searchSuggestions {
    position: static;
    width: 100%;
    height: 250px;
    background: var(--search-suggestion-bg);
    border-radius: var(--search-border-radius);
    overflow-y: auto;
    box-sizing: border-box;
    flex: 1 1 auto;
    margin-bottom: 10px;
    align-self: stretch;
    border: var(--search-border);
}

#searchSuggestions:empty {
    display: block;
    text-align: center;
    padding: 20px;
    color: var(--search-category-title);
    font-size: 16px;
}

#searchSuggestions:empty::before {
    content: "Type to search";
}

.suggestions-list {
    background: var(--search-suggestion-bg);
}

/* ========================================
   SUGGESTION LINKS
   ======================================== */
.search-suggestion-link {
    display: flex;
    flex-flow: column;
    text-decoration: none;
    color: var(--search-suggestion-link);
    cursor: pointer;
    border-bottom: 1px solid #adb3bc69;
    transition: background 0.2s;
    font-weight: normal;
}

.search-suggestion-link:hover,
.search-suggestion-link:focus,
.highlighted-suggestion {
    background-color: var(--backgroundColor-secondary);
    color: var(--search-suggestion-link-hover);
    border-bottom: var(--search-border);
}

.search-suggestion-parent:hover {
    color: var(--search-suggestion-link-hover);
}

/* Suggestion Text Levels */
.search-suggestion-level-0,
.search-suggestion-level-1,
.search-suggestion-level-2 {
    font-size: 14px;
    padding: 12px 16px;
}

.search-suggestion-parents {
    font-size: 10px;
}

.search-suggestion-top-parent {
    font-size: var(--search-title-size);
}

.search-suggestion-parent {
    font-size: 12px;
    font-weight: normal;
    margin-left: 4px;
}

/* ========================================
   SUGGESTIONS WRAPPER & COLUMNS
   ======================================== */
.suggestions-wrapper {
    display: flex !important;
    flex-direction: row;
    gap: 20px;
    position: sticky;
    width: 100%;
    left: 0;
    margin: 0;
    padding: 0;
    border-radius: var(--search-border-radius);
    z-index: 999999999;
}

.suggestions-column {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 300px;
    gap: 0.5rem;
}


/* ========================================
   SEARCH BUTTON
   ======================================== */
.search-button {
    display: flex !important;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0.8rem 1rem;
    background-color: var(--search-primary-bg);
    color: var(--search-button-text);
    border-radius: var(--search-border-radius);
    cursor: pointer;
    font-size: var(--search-title-size);
    transition: background-color 0.2s ease;
    box-sizing: border-box;
    line-height: normal;
    text-align: left;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.search-button.search-button-active {
    background-color: var(--search-button-bg);
}

.search-button:hover {
    background-color: var(--search-button-hover-bg);
}

/* ========================================
   SEARCH TITLES
   ======================================== */
.search-title,
#search > div:first-of-type {
    font-size: var(--search-title-size);
    font-weight: bold;
    color: var(--search-suggestion-link);
}

#search > div:first-of-type:before {
    content: "Product Search";
    padding-bottom: 0.5rem;
    display: inline-block;
    font-size: 1rem;
    text-align: left;
    width: 100%;
}

.search-title {
    border-top: var(--search-border);
    padding-top: 0.5rem;
}

.search-title:before {
    content: "Related to your Search";
}

/* ========================================
   TOP BANNER CONTAINER
   ======================================== */
div#TopBanner1_clSearch1_containerSearch {
    display: flex;
    flex-flow: column;
    width: var(--search-width);
    margin: 0;
    justify-content: flex-start;
}

a#lnkSearch {
    display: none;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */
@media screen and (max-width: 1024px) {
    #search > div {
        margin: inherit;
        max-width: 100%;
    }

    #search.tbcntOpen {
        left: 16px;
        top: 64px;
        width: calc(100% - 32px);
        justify-content: center;
        display: flex;
    }

    .suggestions-wrapper {
        flex-direction: column;
        gap: 12px;
        max-width: 100%;
        border-radius: 0;
    }

    .suggestions-column {
        min-width: unset;
        width: 100%;
    }

    #searchSuggestions {
        min-width: unset;
        width: 100%;
        margin-bottom: 8px;
        max-height: 250px;
    }

    .merchandised-links-container {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--search-secondary-border);
        padding-left: 0;
        padding-top: 15px;
        margin-top: 0;
        max-height: 150px;
    }

    .search-suggestion-link {
        padding: 1em;
    }

    .search-suggestion-level-0,
    .search-suggestion-level-1,
    .search-suggestion-level-2 {
        font-size: 14px;
    }

    .search-suggestion-parents {
        font-size: 9px;
    }

    .search-suggestion-top-parent {
        font-size: 11px;
    }
}


.icon-search {
    order: -1;
}

[data-link="search" i]::before {
    background-color: var(--color1);
    color: #fff;
    padding: .4rem .5rem;
    border-radius: 100%; 
}