﻿.global-search-modal .modal-content div {
    padding: 0;
}
.global-search-modal {
    background-color: rgb(0 0 0 / 35%);
    overflow-x: hidden !important;
}
.modal-content .global-search-hint {
    font-size: 1rem !important;
    color: #061b2b;
    margin: 0 !important;
    text-align: left;
    padding: .5rem 2.5rem !important;
    position: absolute;
    left: 0;
    top: calc(100% + 2px);
    border-radius: .375rem;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.3), 0 4px 4px 0 rgba(0, 0, 0, 0.2);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    background-color: #fff;
    width: 100%;
}
.global-search-modal .global-search-modal__dialog {
    max-width: 100%;
    width: 100%;
    margin: 0px auto !important;
}
.global-search-modal .modal-content {
    border-radius: 12px;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    border: none;
    padding: 24px;
    max-height: 85vh;
    overflow-y: auto;
}
.global-search-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 !important;
}
.global-search-modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #061b2b;
    margin: 0;
    padding: 0;
}
.global-search-modal__close {
    background: none;
    border: none;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    color: #061b2b;
    padding: 0;
    font-weight: 700;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Search bar ---- */
.global-search-modal__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f5f7f9;
    border: 1px solid transparent;
    border-radius: 6px;
    margin-bottom: 1rem;
    padding: 0 !important;
}
.global-search-modal__input-wrap:focus-within {
    border-color: #0072ce;
}
.global-search-modal__dialog .global-search-modal__input-icon {
    color: #6b7280;
    margin: 0;
    font-size: 1rem;
    font-weight: 300;
    position: absolute !important;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%) !important;
    z-index: 0;
    background-image: url("/Assets/img/search-icon-gray.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: .875rem;
    width: 1rem;
    height: 1rem;
}
.global-search-modal__input {
    flex: 1;
    border: none;
    background: transparent;
    padding: .625rem 1rem .625rem 2.5rem;
    outline: none !important;
    color: #061b2b;
    position: relative;
    width: 100%;
    border-radius: .375rem;
    font-size: 1rem;
    line-height: 1;
    height: 2.5rem;
}
.global-search-modal__input:focus {
    outline: none !important;
    border: none !important
}
.global-search-modal__clear-btn {
    background: none;
    border: none;
    color: #6B7282;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    font-weight: 700;
    height: 1rem;
    width: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}
.global-search-modal__submit-btn {
    display: none;
}

/* ---- Chip-style columns (default state) ---- */
.global-search-modal__panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 0 !important;
}
.global-search-modal__col {
    min-width: 12.5rem;
    padding: .75rem !important;
    border-right: 1px solid #d5dfe5;
}
.global-search-modal__col:last-child {
    border-right: none;
}
.global-search-modal__col h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #061b2b;
    padding: 0;
    margin: 0 0 .5rem;
}
.global-search-modal__chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 0 !important;
}
.global-search-modal__chips--center {
    justify-content: center;
}
.global-search-modal__chip {
    display: inline-flex;
    align-items: center;
    background-color: #EDF0F2;
    color: #061b2b;
    text-decoration: none;
    padding: 0 !important;
    border-radius: .375rem;
    font-size: 0.875rem;
    position: relative;
}
.global-search-modal__chip a {
    color: inherit;
    text-decoration: none;
    font-size: .875rem;
    line-height: 1;
    padding: .375rem .5rem .375rem 2rem !important;
    border-radius: inherit;
    border: 1px solid transparent;
    display: inline-block;
    position: relative;
    z-index: 1;
}
.global-search-recent-searches .global-search-modal__chip a {
    padding: .375rem 1.75rem .375rem.5rem !important;
}
.global-search-modal__chip-remove {
    background: none;
    border: none;
    color: #061b2b;
    cursor: pointer;
    font-size: .75rem;
    line-height: 1;
    padding: 0;
    font-weight: 700;
    height: 100%;
    width: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}
.global-search-modal__chip img {
    background: none;
    padding: 0;
    height: 1.25rem;
    width: 1.25rem;
    position: absolute;
    left: .5rem;
    top: 50%;
    transform: translateY(-50%);
    object-fit: contain;
    object-position: center;
    border: 0;
    margin: 0;
}
.global-search-modal__chip.global-search-modal__chip--action img {
    background-color: #007CAD;
    padding: .25rem;
    border-radius: .25rem;
}
.global-search-modal__chip:hover {
    background: #e5e7eb;
    text-decoration: none;
}

.global-search-modal__chip .fa {
    color: #061b2b;
    font-size: 0.875rem;
}
.global-search-modal__chip-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}


/* ---- Search results state ---- */
.global-search-modal__results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: #6b7280;
    margin: 0;
    padding: 1rem 0 !important;
    font-size: 1rem;
    border-bottom: 1px solid #E0E5EA;
}
.global-search-modal__results-header .search-result-text {
    font-weight: 600;
}
.global-search-modal__results-header .search-result-count-text {
    font-size: 0.875rem;
    font-weight: 400;
}
.global-search-modal__results-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .875rem 1rem;
    border: 1px solid transparent;
    border-bottom: 1px solid #E0E5EA;
    text-decoration: none;
    color: #061b2b;
    font-weight: 700;
    font-size: 0.9375rem;
}
.result-text {
    overflow: hidden;
    display: block;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: calc(100% - 20px);
    line-height: 100%;
}
.global-search-modal__results-list a:hover {
    background: #e8f0f4;
}
.global-search-modal__results-list a .fa {
    color: #6b7280;
    font-size: 1.25rem;
    line-height: 1;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.global-search-modal__view-more_wrapper {
    text-align: center;
    margin: 0;
    padding: .75rem !important;
}
.global-search-modal__view-more {
    display: inline-block;
    text-align: center;
    background: #007CAE;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    padding: .75rem 1.5rem;
    font-size: 1.125rem;
    border-radius: .375rem;
    line-height: 1.25rem;
    border: 1px solid transparent;
}
.global-search-modal__view-more:hover {
    background: #007CAE;
    color: #fff;
    text-decoration: none;
}

/* ---- No results state ---- */
.global-search-modal__no-results {
    text-align: center;
    padding: 0 !important;
}
.global-search-modal__no-results-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    background-color: #e1f2f7;
    color: #007096;
    border-radius: 1rem;
    margin-bottom: 1rem;
}
.global-search-modal__no-results-icon img {
    margin: 0;
    border: none;
    max-width: 2.125rem;
}
.global-search-modal__no-results h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #061b2b;
    margin-top: 0;
    margin-bottom: 1rem;
    padding: 0;
}
.global-search-modal__no-results h3 span.searchText {
    display: inline-block;
    word-break: break-all;
}
.modal-content .global-search-modal__no-results p {
    color: #6b7280;
    max-width: 25rem;
    margin: 0 auto 1rem !important;
    width: 100%;
    font-size: 1rem !important;
    line-height: 1.4 !important;
    border-bottom: 1px solid #e0e5ea;
    padding: 0 1.5rem 1rem 1.5rem !important;
}
.global-search-modal .searchdrop-down:empty {
    pointer-events: none;
}

.global-search-modal__no-results-suggest {
    padding: 0 !important;
}
.global-search-modal__no-results-suggest > span {
    display: block;
    font-size: 0.875rem;
    line-height: 1;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 1rem;
}
.global-search-no-result-chips .global-search-modal__chip a {
    padding: .375rem .5rem !important;
}

@media (max-width: 767.98px) {
    .global-search-modal .modal-content {
        max-height: 100dvh;
        padding: 1rem;
        width: 100%;
    }
    .global-search-modal__panels {
        gap: 0;
        grid-template-columns: repeat(1, 1fr);
    }
    .global-search-modal__title {
        font-size: 1.25rem;
    }
    .global-search-modal__input-wrap {
        padding: 0 .5rem !important;
        margin-bottom: .75rem;
    }
    .global-search-modal__input {
        padding: .625rem 1rem .625rem 2rem;
        font-size: 0.875rem;
    }
    @supports (-webkit-touch-callout: none) {
        .global-search-modal__input {
            font-size:1rem;
        }
    }
    .global-search-modal__col {
        border-right: 0px;
        border-bottom: 1px solid #d5dfe5;
    }
    .global-search-modal__col:last-child{
        border-bottom: 0px;
        padding-bottom: 0px !important;
    }
    .global-search-modal__results-list a{
        padding: 12px;
    }
    .global-search-modal__results-header {
        font-size: 0.875rem;
        font-weight: 600;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: .75rem 0 !important;
    }
    .global-search-modal__view-more{
        width: 100%;
    }
    .global-search-modal__no-results h3 {
        font-size: 1.25rem;
    }
    .modal-content .global-search-modal__no-results p {
        max-width: 100%;
        margin: 0 auto 0.75rem !important;
        padding: 0 1.5rem .75rem 1.5rem !important;
    }
    .global-search-modal__no-results-suggest > span{
        margin-bottom: .75rem;
    }
    .global-search-modal__chip-remove {
        font-size: .75rem;
    }
}
