/* Deactivate James' thingy */

#searchModal{
    display: none !important;
}


/* Color and border variables for consistency */
:root {
    --searchSuggestions-primary-bg: #0e1d2d;
    --searchSuggestions-primary-border: ;
    --searchSuggestions-secondary-border: #0e1d2d;
    --searchSuggestions-highlight-bg: #000000;
    --searchSuggestions-merch-link: #333;
    --searchSuggestions-merch-link-hover: #404098;
    --searchSuggestions-suggestion-link: #3b3b3b;
    --searchSuggestions-suggestion-link-hover: #3b3b3b;
    --searchSuggestions-suggestion-bg: #fafafa;
    --searchSuggestions-button-bg: #2559e5;
    --searchSuggestions-button-hover-bg: #2d66ff;
    --searchSuggestions-button-text: #fff;
    --searchSuggestions-category-title: #666;
    --searchSuggestions-border-radius: 10px;
    --searchSuggestions-width: 420px;
    --searchSuggestions-title-size: 12px;
}

#search.tbcntOpen  {
    display: flex;
    margin: 0;
    justify-content: end;
    min-height: 416px;
    padding-bottom: 32px;
    position: fixed;
    right: 5%;
    top: 91px;
    background: #fff;
    width: var(--searchSuggestions-width);
    padding: 32px;
    border-radius: 1rem;
}
#search.tbcntOpen .icon-search {
    top: 26px;
    height: 50px;
    width: 50px;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
}


#search > div {
    max-width: var(--searchSuggestions-width);
    margin: inherit;
}

#search.tbcntOpen #txtTerm {
    background: #efefef;
    border-radius: 8px;
    font-size: 16px;
    height: auto;
    padding: 8px 8px 8px 50px;
    height: 50px;
}


/* The container for showing suggestions */
#searchSuggestions {
    position: static;
    background: var(--searchSuggestions-primary-bg);
    /* border: 1px solid var(--searchSuggestions-primary-border); */
    height: 250px;
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
    top: 45px;
    border-radius: var(--searchSuggestions-border-radius);
    flex: 1 1 auto;
    margin-bottom: 10px;
    align-self: stretch;
    background: #fff;
}

#searchSuggestions:empty {
    display: block;
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 16px;
}

#searchSuggestions:empty::before {
    content: "Type to search";
}

.suggestions-list {
    background: var(--searchSuggestions-suggestion-bg);
}


/* Each suggestion link style */
.search-suggestion-link {
    text-decoration: none;
    color: var(--searchSuggestions-button-bg);
    cursor: pointer;
    /* -webkit-tap-highlight-color: transparent; */
    display: flex;
    flex-flow: column;
    border-bottom: 1px solid #adb3bc69;
    border-radius: 0;
    transition: background 0.2s;
    font-weight: normal;
}

/* Highlight on hover or keyboard navigation */
.search-suggestion-link:hover,
.search-suggestion-link:focus,
.highlighted-suggestion {
    background-color: var(--cg-color-7);
    color: var(--searchSuggestions-suggestion-link-hover);
    border-bottom: 1px solid #adb3bc69;
}

.search-suggestion-parent:hover{
    color: var(--searchSuggestions-suggestion-link-hover);
}

/* Different font sizes for different levels */
.search-suggestion-level-0,
.search-suggestion-level-1,
.search-suggestion-level-2 {
    font-size: 14px;
    padding: 12px 16px;
}

/* Styling for the parent text in suggestions */
.search-suggestion-parents {
    font-size: 10px;
}

.search-suggestion-top-parent {
    font-size: var(--searchSuggestions-title-size);
}

.search-suggestion-parent {
    font-size: 12px;
    font-weight: normal;
    margin-left: 4px;
}

/* Merchandised links container */
.suggestions-wrapper {
    display: flex !important;
    flex-direction: row;
    gap: 20px;
    position: sticky;
    border-radius: var(--searchSuggestions-border-radius);
    padding: 0;
    z-index: 999999999;
    width: 100%;
    left: 0;
    margin-top: 0;
    margin-left: 0;
}

.suggestions-column {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 300px;
    gap: 0.5rem;
}

.merchandised-links-container:empty{
    display: none;
}

.merchandised-links-container {
    flex: 1;
    border-left: 1px solid var(--searchSuggestions-secondary-border);
    padding-left: 20px;
    background: #fff;
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-flow: column;
}

.merchandised-category {
    margin-bottom: .5rem;
    display: flex;
    flex-flow: column;
    border-bottom: 1px solid var(--searchSuggestions-secondary-border);
    padding-bottom: .5rem;
}

.merchandised-category h3 {
    font-size: 14px;
    color: var(--searchSuggestions-category-title);
    margin-block: .5rem;
}

.merchandised-link {
    display: block;
    padding: 8px 0;
    color: var(--searchSuggestions-merch-link);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    border-radius: var(--searchSuggestions-border-radius);
    padding: 5px 0;
}

.merchandised-link:hover {
    color: var(--searchSuggestions-merch-link-hover);
}

/* Search button styles */
.search-button {
    display: flex !important;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0.8rem 1rem;
    height: auto;
    background-color: #888;
    color: var(--searchSuggestions-button-text);
    /* border: 1px solid var(--searchSuggestions-primary-border); */
    border-radius: var(--searchSuggestions-border-radius);
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
    line-height: normal;
    text-align: left;
    font-size: var(--searchSuggestions-title-size);
    margin: 0.5rem 0 1.5rem;
    justify-content: space-between;
    align-items: center;
}

.search-button.search-button-active {
    background-color: var(--searchSuggestions-button-bg);
}

.search-button:after {
  content:"test";
  display: inline-block;
  width: 16px;
  height: 16px;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23000'%3E%3Cpath d='M11.086 7.757L15.328 12l-4.242 4.243l-1.414-1.414L12.5 12L9.672 9.172z'/%3E%3Cpath fill-rule='evenodd' d='M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11s11-4.925 11-11S18.075 1 12 1m9 11a9 9 0 1 0-18 0a9 9 0 0 0 18 0' clip-rule='evenodd'/%3E%3C/g%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.search-button:hover {
    background-color: var(--searchSuggestions-button-hover-bg);
}

/* Mobile Responsive Styles */
@media screen and (max-width: 1024px) {
    #search > div {
        margin: inherit;
        max-width: 100%;
    }
    .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(--searchSuggestions-secondary-border);
        padding-left: 0;
        padding-top: 15px;
        margin-top: 0;
        max-height: 150px;
    }

    /* Adjust suggestion styles for mobile */
    .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;
    }

    #search.tbcntOpen  {
        left: 16px;
        top: 64px;
        width: calc(100% - 32px);
        x;
        justify-content: flex-start;
    }
}

        /* James Tweaks */

        /* Search Suggestions Title */



.search-title, #search > div:first-of-type {
    font-size:var(--searchSuggestions-title-size);
    font-weight: bold;
    color: #444;
}

#search > div:first-of-type:before {
    content:"Product Search";
    padding-bottom: 0.5rem;
    display: inline-block;
}
.search-title {
    border-top: 1px solid #cacaca;
    padding-top: 0.5rem;
}
.search-title:before {
    content:"Related to your Search"
}







/* Recommended */

/* ul.suggestions-list > li:nth-child(1) a:before{
    content: "Recomended";
    padding: .5rem .8rem;
    font-size: 12px;
    letter-spacing: 1px;
    border-radius: 50px;
    background: #2559e5;
    color: #fff;
    width: fit-content;
    margin-left: 60%;
    order: 2;
}

ul.suggestions-list > li:nth-child(1) a{
    background: #e6f1fa;
    flex-flow: row wrap;
    width: 100%;
    line-height: normal;
    display: flex;
    align-items: center;
}


ul.suggestions-list > li:nth-child(1) a span{
    width: 100%;
    order: 3;
} */
