/* =========================================================
   TCC UNIVERSAL SEARCH V1
   ========================================================= */

.tcc-universal-search {
    position: relative;
    width: 100%;
    max-width: 760px;
    z-index: 1055;
}


/* =========================================================
   SEARCH BOX
   ========================================================= */

.tcc-universal-search-box {
    position: relative;
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 46px;

    background: #ffffff;
    border: 1px solid #d7dde5;
    border-radius: 12px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.tcc-universal-search-box:focus-within {
    border-color: #5577a6;

    box-shadow:
        0 0 0 3px rgba(60, 100, 150, 0.10);
}


/* =========================================================
   SEARCH ICON
   ========================================================= */

.tcc-universal-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 46px;

    font-size: 1.05rem;
    color: #667085;
}


/* =========================================================
   INPUT
   ========================================================= */

.tcc-universal-search-input {
    flex: 1;

    width: 100%;
    height: 44px;

    padding: 0 44px 0 0;

    border: 0;
    outline: none;

    background: transparent;

    font-size: 0.95rem;
    color: #1f2937;
}


.tcc-universal-search-input::placeholder {
    color: #98a2b3;
}


/* Hide browser-native clear button */

.tcc-universal-search-input::-webkit-search-cancel-button {
    display: none;
}


/* =========================================================
   CLEAR
   ========================================================= */

.tcc-universal-search-clear {
    position: absolute;

    right: 12px;
    top: 50%;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #667085;

    cursor: pointer;
}


.tcc-universal-search-clear:hover {
    background: #f2f4f7;
    color: #101828;
}


/* =========================================================
   LOADER
   ========================================================= */

.tcc-universal-search-loader {
    position: absolute;

    right: 14px;
    top: 50%;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    color: #667085;
}


/* =========================================================
   DROPDOWN
   ========================================================= */

.tcc-universal-search-dropdown {
    position: absolute;

    top: calc(100% + 8px);
    left: 0;
    right: 0;

    width: 100%;

    max-height: 520px;

    overflow-x: hidden;
    overflow-y: auto;

    background: #ffffff;

    border: 1px solid #e4e7ec;
    border-radius: 14px;

    box-shadow:
        0 18px 40px rgba(16, 24, 40, 0.15);

    z-index: 2000;
}


/* =========================================================
   HEADER
   ========================================================= */

.tcc-search-dropdown-heading {
    padding: 12px 16px 8px;

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.05em;

    color: #667085;
    text-transform: uppercase;
}


/* =========================================================
   RESULT
   ========================================================= */

.tcc-search-result {
    display: flex;
    align-items: flex-start;

    width: 100%;

    padding: 12px 16px;

    border: 0;
    border-bottom: 1px solid #f2f4f7;

    background: #ffffff;

    text-decoration: none;
    text-align: left;

    cursor: pointer;
}


.tcc-search-result:last-child {
    border-bottom: 0;
}


.tcc-search-result:hover,
.tcc-search-result.is-active {
    background: #f8fafc;
}


/* =========================================================
   RESULT ICON
   ========================================================= */

.tcc-search-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    margin-right: 12px;

    border-radius: 9px;

    background: #f2f4f7;

    color: #344054;

    font-size: 1rem;
}


/* =========================================================
   RESULT CONTENT
   ========================================================= */

.tcc-search-result-content {
    flex: 1;
    min-width: 0;
}


.tcc-search-result-title {
    display: block;

    margin-bottom: 2px;

    font-size: 0.93rem;
    font-weight: 650;

    line-height: 1.35;

    color: #101828;
}


.tcc-search-result-meta {
    display: block;

    font-size: 0.78rem;
    line-height: 1.35;

    color: #667085;
}


.tcc-search-result-description {
    display: block;

    margin-top: 4px;

    font-size: 0.79rem;
    line-height: 1.4;

    color: #667085;

    overflow: hidden;

    display: -webkit-box;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* =========================================================
   TYPE BADGE
   ========================================================= */

.tcc-search-result-type {
    flex-shrink: 0;

    margin-left: 10px;
    margin-top: 2px;

    padding: 3px 7px;

    border-radius: 20px;

    background: #f2f4f7;

    font-size: 0.67rem;
    font-weight: 600;

    color: #475467;
}


/* =========================================================
   EMPTY / MESSAGE
   ========================================================= */

.tcc-search-message {
    padding: 24px 18px;

    text-align: center;

    font-size: 0.88rem;
    color: #667085;
}


.tcc-search-message-icon {
    display: block;

    margin-bottom: 7px;

    font-size: 1.4rem;

    color: #98a2b3;
}


/* =========================================================
   VIEW ALL
   ========================================================= */

.tcc-search-view-all {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 13px 16px;

    border: 0;
    border-top: 1px solid #e4e7ec;

    background: #f8fafc;

    text-decoration: none;

    font-size: 0.84rem;
    font-weight: 650;

    color: #344054;

    cursor: pointer;
}


.tcc-search-view-all:hover {
    background: #f2f4f7;
    color: #101828;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .tcc-universal-search {
        max-width: 100%;
    }


    .tcc-universal-search-box {
        min-height: 44px;
        border-radius: 10px;
    }


    .tcc-universal-search-input {
        height: 42px;

        font-size: 0.9rem;
    }


    .tcc-universal-search-dropdown {
        max-height: 65vh;

        border-radius: 12px;
    }


    .tcc-search-result {
        padding: 11px 12px;
    }


    .tcc-search-result-description {
        display: none;
    }


    .tcc-search-result-type {
        display: none;
    }
}


.tcc-header-search-area {
    flex: 1;

    display: flex;
    justify-content: center;

    margin-left: 30px;
    margin-right: 30px;
}


.tcc-header-search-area .tcc-universal-search {
    width: 100%;
    max-width: 720px;
}


@media (max-width: 991.98px) {

    .tcc-header-search-area {
        order: 3;

        width: 100%;

        margin:
            12px 0
            0 0;
    }


    .tcc-header-search-area
    .tcc-universal-search {
        max-width: 100%;
    }

}