﻿.search-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20000;
}

    .search-modal.show {
        display: block;
    }

.search-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(1px);
}

.search-modal__dialog {
    position: relative;
    margin: 8vh auto;
    width: min(680px,92vw);
    max-height: 84vh;
    background: #fff;
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 20px 48px rgba(16,24,40,.18);
    overflow: auto;
    animation: popIn .16s ease-out;
}

@keyframes popIn {
    from {
        transform: scale(.98);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.search-modal__close {
    position: absolute;
    inset-inline-end: 10px;
    inset-block-start: 10px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 999px;
    cursor: pointer;
}

    .search-modal__close img {
        width: 16px;
        height: 16px;
    }

body.modal-open {
    overflow: hidden;
}
.suggestions h3 {
    color: #1B8354;
    font-size: 1.5rem;
    line-height: 2.2rem;
    margin-bottom: .75rem;
    text-align: center;
}

/* الحاوية: ترتيب من اليمين لليسار + تباعد جميل */
.chips {
    direction: rtl;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

/* الشريحة الخضراء */
.suggestion-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #EAF6EF; /* أخضر فاتح */
    border: 1px solid #CFEADF; /* حدود خضراء فاتحة */
    color: #1B8354; /* نص أخضر */
    padding: .35rem .9rem;
    border-radius: .6rem !important; /* كبسولة */
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s ease,border-color .15s ease,transform .05s ease;
    cursor: pointer;
}

    .suggestion-btn:hover {
        background: #E4F2EA;
        border-color: #B8E0CF;
    }

    .suggestion-btn:active {
        transform: translateY(1px);
    }

    .suggestion-btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px #E0F1E9;
    }

    .suggestion-btn .plus-icon {
        width: 14px;
        height: 14px;
    }
.chips {
    direction: rtl;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem
}

.chip {
    display: inline-flex;
    align-items: center;
    background: #EAF6EF;
    border: 1px solid #CFEADF;
    color: #1B8354;
    padding: .35rem .9rem;
    border-radius: .6rem;
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer
}

    .chip:hover {
        background: #E4F2EA;
        border-color: #B8E0CF
    }

.chips {
    direction: rtl;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem
}

/* الحالة الافتراضية = لون الهوفر الأخضر */
.chip {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    background: #E4F2EA; /* نفس لون الهوفر السابق */
    border: 1px solid #B8E0CF;
    color: #1B8354;
    padding: .35rem .9rem;
    border-radius: .6rem;
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none !important;
}

    /* أزل أي تسطير في كل الحالات للروابط */
    .chip:link,
    .chip:visited,
    .chip:hover,
    .chip:focus,
    .chip:active {
        text-decoration: none !important;
        color: #1B8354;
    }

    /* تمييز بسيط عند المرور */
    .chip:hover {
        filter: brightness(.98);
    }

    .chip:focus {
        outline: 0;
        box-shadow: 0 0 0 3px #eaf6ef;
    }
.search-modal__close {
    width: 28px; /* كان 36px */
    height: 28px;
    inset-inline-end: 8px; /* مسافة عن الحافة */
    inset-block-start: 8px;
}

    .search-modal__close img {
        width: 12px; /* كان 16px */
        height: 12px;
    }

/* أبعد الكتابة عن أيقونة البحث داخل الـinput */
.ds-text-input.customized-search {
    padding-inline-start: 3rem; /* كان ~2.4rem — زودناها */
}
/* لو ودك تبعد الأيقونة نفسها شوي (اختياري) */
.overlay-search-form .search-icon {
    inset-inline-start: 1rem; /* كان .75rem */
}