.datis-search-widget {
    position: relative;
}

.datis-search-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* لایه تمام صفحه */
.datis-search-layer {
    position: absolute;
    opacity: 0;
    display: none;
}

.datis-search-widget.is-open .datis-search-layer {
    opacity: 1;
    display: flex;
}




.datis-search-close {
    display: none;
}

.datis-search-widget.is-open .datis-search-close {
    display: block;
}

.datis-search-widget.is-open .datis-search-toggle {
    display: none !important;
}

/* کارت وسط صفحه */
.datis-search-panel {
    position: absolute;
    max-width: 372px;
    width: 372px;
    margin: 0;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 16px;
    z-index: 1;
    height: 472px;
    box-sizing: border-box;
    top: 0;
    left: -10px;
}

.datis-search-close {
    position: relative;
    top: 0;
    left: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.datis-search-input-row {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px 8px 12px;
    gap: 12px;
    height: 40px;
    background: #EFEEF7;
    border-radius: 12px;
    box-sizing: border-box;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 19px;
    text-align: center;
    color: #090625;
    font-family: inherit;
}

.datis-search-input-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.datis-search-input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1 1 auto;
    font-size: 16px;
    color: #090625;
    font-family: inherit;
    font-weight: 400;
    line-height: 19px;
}

.datis-search-input::placeholder {
    color: #8D8A9C;
}

.datis-search-input-label {
    flex: 0 0 auto;
    font-size: 14px;
    color: #8D8A9C;
}


.datis-search-tabs {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 2px solid #E3E0F0;
    margin: 15px 0;
    box-sizing: border-box;
    max-width: 100%;
}

.datis-search-tab {
    position: relative;
    border: none;
    background: transparent;
    padding: 10px 0 14px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(9, 6, 37, 0.5);
}

.datis-search-tab.is-active {
    color: var(--datis-primary-color);
    font-weight: 600;
}

.datis-search-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--datis-primary-color);
    border-radius: 999px;
}

/* نتایج و خالی */
.datis-search-body {
    min-height: 220px;
    position: relative;
}

.datis-search-loader {
    display: none;
}

.datis-search-results {
    display: block;
}

.datis-search-empty {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    color: #8D8A9C;
}

.datis-search-scroll-hint {
    position: absolute;
    width: 100%;
    bottom: 10px;
    left: 0;
    background: linear-gradient(0, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 35%, #fff 50%, rgba(255, 255, 255, 0.85) 65%, rgba(255, 255, 255, 0) 100%);
    height: 110px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.datis-search-scroll-circle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-item {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 16px;
    gap: 16px;
    width: 340px;
    height: 94px;
    border: 1px solid rgba(9, 6, 37, 0.5);
    border-radius: 12px;
}

.search-result-thumb {
    width: 68px;
    height: 62px;
    border-radius: 12px;
    overflow: hidden;
}

.search-results-list-inner {
    overflow: scroll;
    max-height: 270px;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-result-link {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}

.search-result-title {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 36px;
    text-align: right;
    color: #090625;
    width: 230px;
}


.datis-hl{
  color: var(--datis-primary-color);
  font-weight: 700;
  background: transparent;
}


@media (max-width: 768px) {


    .datis-search-panel {
        width: 350px;
        left: -50px;
        top: 10px;
    }


}