#historyUpdates{
    background-color: rgb(255, 43, 43);
    
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;

    padding: 2px;

    aspect-ratio: 1;

    border-radius: 50%;

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;
}

.searchHistory{
    width: 100%;
    height: 100%;

    position: absolute;
    z-index: 100;

    backdrop-filter: blur(10px);
}

.searchHistory .searchList{
    position: absolute;
    bottom: 0;

    height: 80%;
    width: 100%;

    background-color: var(--color-results-panel-bg);

    border-top-right-radius: 1.3rem;
    border-top-left-radius: 1.3rem;

    -webkit-box-shadow: 0px -7px 27px 2px rgba(0,0,0,0.65);
    box-shadow: 0px -7px 27px 2px rgba(0,0,0,0.65);

    transition: transform 0.3s ease;

    padding-top: 5px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    flex-direction: column;

    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;

      scrollbar-width: none;
  
  /* Hide scrollbar for IE, Edge, and older browsers */
  -ms-overflow-style: none; 
}

.searchHistory .searchList .search#hide {
    width: 100%;
    height: 24px; /* fixed instead of 3% */
    min-height: 24px; /* belt and suspenders */
    background-color: transparent;
    margin-top: 5px;
    margin-bottom: 10px;
    display: flex;
    align-content: center;
    justify-content: center;
    border: 0px solid transparent;
    box-shadow: none;
    cursor: grab;
}

.searchHistory .searchList .search#hide .line {
    width: 25%;
    height: 10px; /* fixed instead of 40% */
    background-color: var(--color-result-hide-bar, rgba(128, 128, 128, 0.4));
    border-radius: 1.5rem;
    box-shadow: 5px 5px 17px -4px rgba(0,0,0,0.72);
}
.searchHistory .searchList .search{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    position: relative;
    z-index: 0;

    width: 90%;

    height: 22%;
    max-height: 45%;

    padding: 5px;
    margin-bottom: 20px;

    border-radius: 1.3rem;
    border: 3px solid var(--color-result-card-border);

    -webkit-box-shadow: 0px 6px 20px 2px rgba(0,0,0,0.65);
    box-shadow: 0px 6px 20px 2px rgba(0,0,0,0.65);

    overflow: visible;

    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.searchHistory .searchList .search #seenNotif{
    background-color: rgb(255, 43, 43);
    
    position: absolute;
    top: -12px;
    right: -12px;
    width: 24px;
    height: 24px;
    z-index: 1;

    padding: 2px;

    aspect-ratio: 1;

    border-radius: 50%;

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: large;
}

/* SQUARE IMAGE GRID */
.searchHistory .searchList .search .imageWindow {
    max-width: 30%;
    aspect-ratio: 1;
    height: unset;

    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    border-radius: 1rem;
    flex-shrink: 0;
}

.searchHistory .searchList .search .imageWindow img {
    width: 50%;
    height: 50%;
    object-fit: cover;
    display: block;
}

.searchHistory .searchList .search .imageWindow img:nth-child(1),
.searchHistory .searchList .search .imageWindow img:nth-child(2),
.searchHistory .searchList .search .imageWindow img:nth-child(3),
.searchHistory .searchList .search .imageWindow img:nth-child(4) {
    border-radius: 0;
}

.searchHistory .searchList .search .viewMore{
    width: 100%;

    background-color: var(--color-result-view-more-bg);

    border: 1px solid var(--color-result-view-more-border);
    border-radius: 0.3rem;
    margin-bottom: 5px;

    color: var(--color-result-title-text);

    margin-top: 3%;
}

.searchHistory .searchList .search.expanded {
    height: 70% !important;
    max-height: 70% !important;
}

.searchHistory .searchList .search .shortInfo{
    width: 100%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0;
}

.searchHistory .searchList .search .moreInfo{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: row;
    width: 70%;
    height: 100%;
    
    margin-top: 3.2%;
    margin-left: 2%;
}

/* TITLE FIT */
.searchHistory .searchList .search .moreInfo .texts{
    width: 65%;
    height: 90%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.searchHistory .searchList .search .moreInfo h1{
    width: 100%;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.2;
    word-break: break-word;
}

.searchHistory .searchList .search .moreInfo p{
    color: gray;
    font-size: small;
    width: 100%;
    margin: 0;
}

.searchHistory .searchList .search .moreInfo .buttons{

    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
   
    gap: 5px;
}

.searchHistory .searchList .search .moreInfo .buttons #remove{
    background-color: var(--color-btn-primary-border-red);
    height: 30%;
}

.searchHistory .searchList .search .moreInfo button{
    width: max-content;
    background-color: var(--color-btn-primary-border);
    height: 45%;
    border-radius: 0.5rem;
    border: 0;
    margin-right: 5px;

    color: var(--color-btn-primary-text);
    transition: all 0.1s ease;
}

.searchHistory .searchList .search .moreInfo button:active{
    transform: scale(0.95);
    border-radius: 0.6rem;
}

.searchHistory .searchList .search .moreInfo button span{
    font-size: 10px;
}

.searchHistory .searchList .search .longInfo{
    width: 100%;
    height: 68%;
    display: flex;
    flex-direction: column;
}

.searchHistory .searchList .search .longInfo .otherResults {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;

    flex: 1;
    min-height: 0;

    width: 100%;
    height: 100%;
    background-color: var(--color-results-panel-bg);
    box-sizing: border-box;
    padding-top: 5px;

    scrollbar-width: none;
    -ms-overflow-style: none;

    overflow-y: auto;
    overflow-x: hidden;

    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(.25,.8,.25,1);

    touch-action: none;

    border-bottom-left-radius: 1.3rem;
    border-bottom-right-radius: 1.3rem;

    position: relative;
}

.searchHistory .searchList .search .longInfo .otherResults::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    height: 60px;
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--color-results-panel-bg)
    );
    border-bottom-left-radius: 1.3rem;
    border-bottom-right-radius: 1.3rem;
    pointer-events: none;
}

.searchHistory .searchList .search .longInfo .otherResults .result{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;

    width: 95%;
    min-height: 70px;
    max-height: 50%;

    padding: 10px 5px 10px;

    margin-bottom: 20px;

    border-radius: 1.3rem;
    border: 3px solid var(--color-result-card-border);

    overflow: hidden;

    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.searchHistory .searchList .search .longInfo .otherResults .result .source{
    color: var(--color-result-source-label);
    font-size: 13px;
}

.searchHistory .searchList .search .longInfo .otherResults .result p{
    text-align: left;
    color: var(--color-result-title-text);
    height: 80%;
    width: 60%;

    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    font-size: 14px;
    padding-left: 5px;
    padding-right: 5px;
    margin-top: -5px;

    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

/* SQUARE RESULT IMAGE */
.searchHistory .searchList .search .longInfo .otherResults .result img{
    height: 60px;
    width: 60px;
    max-width: unset;
    object-fit: cover;
    border-radius: 0.4rem;
    flex-shrink: 0;
}

.searchHistory .searchList .search .longInfo .otherResults .result button{
    max-width: 30%;
    width: 15%;
    min-width: 55px;
    background-color: var(--color-btn-primary-border);
    align-self: stretch;
    border-radius: 0.5rem;
    border: 0;
    margin-right: 5px;
    margin-left: auto;

    color: var(--color-btn-primary-text);
    transition: all 0.1s ease;
    font-size: 12px;
}

.searchHistory .searchList .search .longInfo .otherResults .result button:active{
    transform: scale(0.95);
    border-radius: 0.6rem;
}

.searchHistory .searchList #loading{
    width: 80%;
    height: auto;
}

.searchHistory .searchList #freeAccWarn{
    width: 90%;
    background: #E6F1FB;
    border: 0.5px solid #378ADD;
    border-left: 3px solid #185FA5;
    border-radius: 0.75rem;
    padding: 14px 16px;
    box-sizing: border-box;

    display: flex;
    align-items: flex-start;
    gap: 14px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    margin-bottom: 10px;
}

.searchHistory .searchList #freeAccWarn .left{
    flex-shrink: 0;
    width: 15%;
    height: 100%;
    background: #B5D4F4;
    border-radius: 0.5rem;

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20PX;
    color: #0C447C;
}

.searchHistory .searchList #freeAccWarn p{
    width: 100%;
    height: 100%;

    font-size: larger;
    margin: 0;

    font-weight: 400;
}

.searchHistory .searchList #freeAccWarn a{
    color: rgb(103, 20, 255);
    text-decoration: underline;
    font-weight: 600;
}

.searchHistory .searchList #noSearchHistory{
    margin: 0;
    width: 70%;
    height: 100%;
    
    text-align: center;
    font-size: x-large;

}

.searchHistory .searchList #noSearchHistory span{
    font-weight: 600;
    font-size: xx-large;
}