/* مكونات إشعارات المتجر ولوحة التحكم — مشتركة بين الصفحات. */
.notification-bell{position:relative;border:0;cursor:pointer}.notification-bell svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.notification-bell__badge{position:absolute;top:-4px;inset-inline-end:-5px;min-width:16px;height:16px;padding:0 4px;display:grid;place-items:center;border:2px solid #fff;border-radius:99px;background:#a95370;color:white;font:700 9px/1 Arial,sans-serif}.notification-bell__badge[hidden]{display:none}
.notification-dialog,.notification-promo-dialog{width:min(440px,calc(100vw - 24px));max-width:none;max-height:min(78dvh,700px);padding:0;border:1px solid #efdee5;border-radius:20px;background:#fff;color:#51414a;box-shadow:0 24px 90px #291a243d;overflow:hidden}.notification-dialog::backdrop,.notification-promo-dialog::backdrop{background:#21171dcc;backdrop-filter:blur(4px)}.notification-dialog__panel{display:flex;flex-direction:column;max-height:min(78dvh,700px)}.notification-dialog__head{display:flex;align-items:center;justify-content:space-between;padding:17px 19px;border-bottom:1px solid #f0e6eb;background:linear-gradient(120deg,#fff,#fff8fa)}.notification-dialog__head h2{margin:3px 0 0;color:#45323c;font-size:1.05rem}.notification-dialog__head button,.notification-promo-dialog section>button{width:34px;height:34px;border:0;border-radius:50%;background:#f8edf2;color:#83566a;font-size:1.25rem;cursor:pointer}.notification-dialog__actions{display:flex;justify-content:space-between;gap:8px;padding:10px 15px;border-bottom:1px solid #f4edf0}.notification-dialog__actions button{padding:7px 10px;border:1px solid #ecdce3;border-radius:9px;background:#fff;color:#755565;font:600 .67rem/1.5 var(--font-ar);cursor:pointer}.notification-dialog__actions button:first-child{background:#a86b86;color:#fff;border-color:#a86b86}.notification-dialog__actions button:disabled{opacity:.55;cursor:not-allowed}.notification-dialog__status{margin:0;padding:8px 16px;background:#fbf7f9;color:#897984;font-size:.62rem;line-height:1.65}.notification-dialog__list{overflow:auto;overscroll-behavior:contain}.notification-empty{display:grid;justify-items:center;gap:7px;padding:36px 22px;color:#9b8c94;text-align:center}.notification-empty>span{font-size:1.8rem;color:#bd879d}.notification-empty>b{color:#66515d;font-size:.78rem}.notification-empty p{max-width:280px;margin:0;font-size:.66rem;line-height:1.8}.notification-item{position:relative;display:grid;grid-template-columns:9px minmax(0,1fr) 28px;gap:10px;padding:14px 16px;border-bottom:1px solid #f3edf0;background:white}.notification-item.is-unread{background:#fffafd}.notification-item__dot{width:7px;height:7px;margin-top:7px;border-radius:50%;background:transparent}.notification-item.is-unread .notification-item__dot{background:#b75f7d;box-shadow:0 0 0 4px #f7e8ee}.notification-item__content{min-width:0}.notification-item__content>b{display:block;color:#493943;font-size:.76rem;line-height:1.6}.notification-item__content p{margin:4px 0;color:#766a72;font-size:.67rem;line-height:1.75;overflow-wrap:anywhere}.notification-item__content time{color:#a3979e;font-size:.56rem}.notification-item__content>a{display:inline-flex;gap:5px;margin-top:8px;color:#9e5671;font-size:.65rem;font-weight:700;text-decoration:none}.notification-item>button{align-self:start;width:26px;height:26px;border:0;border-radius:50%;background:#faf4f7;color:#987787;font-size:1rem;cursor:pointer}
.notification-toast{position:fixed;z-index:1500;top:calc(var(--header-h,76px) + 16px);inset-inline-end:18px;width:min(350px,calc(100vw - 30px));padding:16px 18px;border:1px solid #f0dfe6;border-inline-start:4px solid #ad6c86;border-radius:15px;background:#fff;box-shadow:0 15px 44px #30202b26;animation:notificationEnter .28s cubic-bezier(.2,.8,.2,1) both;color:#51414a}.notification-toast--banner{top:0;inset-inline:0;width:100%;border:0;border-radius:0;border-bottom:1px solid #efdee5;padding:12px 20px;text-align:center;background:linear-gradient(100deg,#fff9fb,#fff)}.notification-toast>b{display:block;padding-inline-end:25px;color:#573e4b;font-size:.78rem}.notification-toast>p{margin:6px 0;color:#766a72;font-size:.68rem;line-height:1.7}.notification-toast>a{color:#a25773;font-size:.65rem;font-weight:700;text-decoration:none}.notification-toast>button{position:absolute;top:8px;inset-inline-end:8px;width:28px;height:28px;border:0;border-radius:50%;background:#f8edf2;color:#80556a;font-size:1.1rem;cursor:pointer}.notification-toast--banner>button{top:50%;transform:translateY(-50%)}.notification-toast--banner>b{padding:0}.notification-promo-dialog section{position:relative;display:grid;justify-items:center;gap:10px;padding:34px 26px;text-align:center}.notification-promo-dialog section>button{position:absolute;top:10px;inset-inline-end:10px}.notification-promo-dialog h2{margin:0;color:#513c48;font-size:1.15rem}.notification-promo-dialog p{margin:0;color:#766a72;font-size:.75rem;line-height:1.9}.notification-promo-dialog a{margin-top:5px}
@keyframes notificationEnter{from{opacity:0;transform:translateY(-10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.notification-admin-preview{display:grid;gap:6px;margin:0 18px 14px;padding:14px 16px;border:1px solid #efdfe5;border-inline-start:4px solid #ad6c86;border-radius:12px;background:#fffafd}.notification-admin-preview>span{color:#a66c84;font-size:.57rem;font-weight:700}.notification-admin-preview>b{color:#4e3c46;font-size:.75rem}.notification-admin-preview>p{margin:0;color:#776a72;font-size:.64rem;line-height:1.8}.notification-admin-preview>a{width:max-content;color:#a25773;font-size:.63rem;font-weight:700}.notification-admin-preview[data-style="banner"]{border-radius:7px;text-align:center}.notification-admin-preview[data-style="dialog"]{max-width:520px;margin-inline:auto;margin-bottom:14px;border-radius:18px;text-align:center;box-shadow:0 7px 23px #30202b15}.notification-admin-list{display:grid}.notification-admin-row{display:grid;grid-template-columns:60px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 18px;border-top:1px solid var(--adm-line)}.notification-admin-row__status{width:max-content;padding:4px 8px;border-radius:99px;background:#f8eaf0;color:#a35270;font-size:.54rem;font-weight:700}.notification-admin-row__status.is-read{background:#f3f1f2;color:#8b8287}.notification-admin-row>div{min-width:0}.notification-admin-row b{color:var(--adm-ink);font-size:.66rem}.notification-admin-row p{margin:4px 0;color:var(--adm-muted);font-size:.58rem;line-height:1.7}.notification-admin-row time{color:#a49aa0;font-size:.52rem}.notification-admin-row .admin-btn{min-height:30px;padding:5px 9px;font-size:.56rem}.admin-panel__foot{display:flex;justify-content:flex-start;padding:0 18px 16px}.admin-panel__foot .admin-btn{min-height:37px}
@media(max-width:600px){.notification-dialog{width:calc(100vw - 18px);max-height:82dvh;border-radius:17px}.notification-dialog__panel{max-height:82dvh}.notification-dialog__head{padding:14px}.notification-dialog__actions{padding:9px 11px}.notification-dialog__actions button{font-size:.59rem}.notification-item{padding:12px}.notification-toast{top:calc(var(--header-h,70px) + 10px);inset-inline-end:10px;width:calc(100vw - 20px)}.notification-toast--banner{top:0;inset-inline:0;width:100%}.notification-admin-preview{margin-inline:11px}.notification-admin-row{grid-template-columns:50px minmax(0,1fr);gap:8px;padding:11px}.notification-admin-row .admin-btn{grid-column:2;justify-self:start}.admin-panel__foot{padding-inline:11px}}
@media(prefers-reduced-motion:reduce){.notification-toast{animation:none}}
/* بطاقة المنتج المرتبطة بالإشعار: صورة مصغرة واضحة ووجهة قابلة للنقر. */
.notification-product-card{display:grid;grid-template-columns:52px minmax(0,1fr) 22px;align-items:center;gap:10px;margin:8px 0;padding:7px;border:1px solid #f0e4e9;border-radius:12px;background:linear-gradient(120deg,#fff,#fff8fb);color:#54414b;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.notification-product-card:hover{transform:translateY(-1px);border-color:#e4c7d4;box-shadow:0 7px 16px #55324412}
.notification-product-card img{width:52px;height:52px;border-radius:8px;object-fit:cover;background:#f7f1f4}
.notification-product-card span{min-width:0}.notification-product-card b,.notification-product-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notification-product-card b{color:#513e48;font-size:.65rem;line-height:1.6}.notification-product-card small{margin-top:2px;color:#95858e;font-size:.54rem}.notification-product-card i{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#f6eaf0;color:#9a5b75;font-size:.68rem;font-style:normal}
.notification-item__content>.notification-product-card{max-width:340px;grid-template-columns:46px minmax(0,1fr) 20px;margin:9px 0 4px}.notification-item__content>.notification-product-card img{width:46px;height:46px}.notification-item__content>.notification-product-card b{font-size:.62rem}.notification-item__content>.notification-product-card small{font-size:.52rem}
.notification-item__extra,.notification-promo-dialog .notification-item__extra{display:block;width:max-content;max-width:100%;margin:7px 0;padding:4px 9px;border:1px solid #f2e3d0;border-radius:99px;background:#fffaf2;color:#946b32;font-size:.55rem;font-weight:700}
.notification-promo-dialog .notification-product-card{width:min(100%,330px);text-align:start}.notification-promo-dialog .notification-item__extra{margin-inline:auto}
.notification-toast__extra{display:block;width:max-content;max-width:100%;margin:4px 0 7px;padding:3px 8px;border-radius:99px;background:#fff8ed;color:#91682f;font-size:.52rem;font-weight:700}
.notification-toast--position-top-end{top:calc(var(--header-h,76px) + 16px);inset-inline-end:18px;inset-inline-start:auto;bottom:auto}.notification-toast--position-top-start{top:calc(var(--header-h,76px) + 16px);inset-inline-start:18px;inset-inline-end:auto;bottom:auto}.notification-toast--position-bottom-end{top:auto;bottom:18px;inset-inline-end:18px;inset-inline-start:auto}.notification-toast--position-bottom-start{top:auto;bottom:18px;inset-inline-start:18px;inset-inline-end:auto}
.notification-toast--banner.notification-toast--position-top{top:0;bottom:auto}.notification-toast--banner.notification-toast--position-bottom{top:auto;bottom:0}
.notification-admin-preview__type{width:max-content;color:#a66c84;font-size:.57rem;font-weight:700}.notification-admin-preview__extra{width:max-content;max-width:100%;padding:4px 8px;border-radius:999px;background:#fff7eb;color:#946b32;font-size:.55rem}.notification-admin-preview .notification-product-card{width:min(100%,340px);margin:4px 0}
.notification-admin-preview[hidden],.notification-product-card[hidden]{display:none!important}.notification-target-fields{grid-column:1/-1;padding:12px;border:1px solid #efe3e8;border-radius:12px;background:#fdf9fb}.notification-target-fields__head{display:grid;gap:3px;margin-bottom:10px}.notification-target-fields__head>b{color:#59444f;font-size:.68rem}.notification-target-fields__head>small{color:#978992;font-size:.57rem;line-height:1.7}.notification-type-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:0}.notification-type-fields[hidden],.notification-target-fields[hidden]{display:none!important}.notification-admin-row__target{color:#9a5b75!important;font-size:.54rem!important}
.notification-toast--position-bottom-end,.notification-toast--position-bottom-start{animation-name:notificationEnterBottom}.notification-toast--position-bottom-end:not(.notification-toast--banner) .notification-toast__mark,.notification-toast--position-bottom-start:not(.notification-toast--banner) .notification-toast__mark{top:12px}
@keyframes notificationEnterBottom{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:600px){.notification-toast--position-top-end{top:calc(var(--header-h,70px) + 8px);inset-inline-end:12px}.notification-toast--position-top-start{top:calc(var(--header-h,70px) + 8px);inset-inline-start:12px}.notification-toast--position-bottom-end{bottom:12px;inset-inline-end:12px}.notification-toast--position-bottom-start{bottom:12px;inset-inline-start:12px}.notification-type-fields{grid-template-columns:1fr}.notification-target-fields{padding:10px}}
@media(prefers-reduced-motion:reduce){.notification-product-card{transition:none}.notification-product-card:hover{transform:none}.notification-toast--position-bottom-end,.notification-toast--position-bottom-start{animation:none}}
/* إشعارات متمايزة بصريًا حسب النوع دون تغيير شكل التنبيه الأصلي لكل منصة. */
.notification-toast{--notice-accent:#ad6c86;border-inline-start-color:var(--notice-accent);padding-top:14px}
.notification-toast--type-offer{--notice-accent:#bd8743}.notification-toast--type-product{--notice-accent:#728e77}.notification-toast--type-order{--notice-accent:#6e88a8}.notification-toast--type-info{--notice-accent:#778c98}
.notification-toast__mark{position:absolute;top:14px;inset-inline-start:14px;display:grid;place-items:center;width:28px;height:28px;border-radius:10px;background:color-mix(in srgb,var(--notice-accent) 12%,white);color:var(--notice-accent);font-size:.8rem;font-weight:800}
.notification-toast__type{display:block;width:max-content;margin:0 0 5px;padding:3px 8px;border-radius:99px;background:color-mix(in srgb,var(--notice-accent) 10%,white);color:var(--notice-accent);font-size:.55rem;font-weight:750}
.notification-toast>b{padding-inline-start:36px}
.notification-toast--banner{padding-inline:56px}.notification-toast--banner .notification-toast__mark{top:50%;transform:translateY(-50%)}.notification-toast--banner .notification-toast__type{margin-inline:auto}
.notification-promo-dialog{--notice-accent:#ad6c86;border-top:4px solid var(--notice-accent)}.notification-promo-dialog--offer{--notice-accent:#bd8743}.notification-promo-dialog--product{--notice-accent:#728e77}.notification-promo-dialog--order{--notice-accent:#6e88a8}.notification-promo-dialog--info{--notice-accent:#778c98}
.notification-promo-dialog__type{display:grid;place-items:center;min-width:108px;padding:6px 12px;border:1px solid color-mix(in srgb,var(--notice-accent) 24%,white);border-radius:99px;background:color-mix(in srgb,var(--notice-accent) 9%,white);color:var(--notice-accent);font-size:.68rem;font-weight:750}
.notification-admin-preview{--notice-accent:#ad6c86;border-inline-start-color:var(--notice-accent)}.notification-admin-preview[data-type="offer"]{--notice-accent:#bd8743}.notification-admin-preview[data-type="product"]{--notice-accent:#728e77}.notification-admin-preview[data-type="order"]{--notice-accent:#6e88a8}.notification-admin-preview[data-type="info"]{--notice-accent:#778c98}
.notification-admin-row__type{display:block;width:max-content;margin-bottom:3px;padding:2px 7px;border-radius:99px;background:#f7edf1;color:#a25773;font-size:.5rem}
.notification-admin-row__type[data-type="offer"]{background:#fbf2e5;color:#9b6a2f}.notification-admin-row__type[data-type="product"]{background:#edf4ee;color:#58765e}.notification-admin-row__type[data-type="order"]{background:#edf2f8;color:#526c90}.notification-admin-row__type[data-type="info"]{background:#eef3f4;color:#5e747e}
.notification-item__type{display:block;width:max-content;margin-bottom:3px;padding:2px 7px;border-radius:99px;background:#f7edf1;color:#a25773;font-size:.5rem;font-weight:750}.notification-item__type[data-type="offer"]{background:#fbf2e5;color:#9b6a2f}.notification-item__type[data-type="product"]{background:#edf4ee;color:#58765e}.notification-item__type[data-type="order"]{background:#edf2f8;color:#526c90}.notification-item__type[data-type="info"]{background:#eef3f4;color:#5e747e}
/* إشعار الموقع: كرت أخف وأقصر يحترم مساحة الهاتف أثناء التصفح. */
.notification-toast:not(.notification-toast--banner){width:min(308px,calc(100vw - 24px));inset-inline-end:12px;padding:12px 13px 11px;border-radius:15px;box-shadow:0 10px 28px #30202b20;backdrop-filter:blur(10px)}
.notification-toast:not(.notification-toast--banner) .notification-toast__mark{top:12px;inset-inline-start:12px;width:25px;height:25px;border-radius:9px;font-size:.72rem}
.notification-toast:not(.notification-toast--banner) .notification-toast__type{margin-bottom:4px;padding:2px 7px;font-size:.49rem}
.notification-toast:not(.notification-toast--banner)>b{padding-inline-start:32px;padding-inline-end:26px;font-size:.71rem;line-height:1.45}
.notification-toast:not(.notification-toast--banner)>p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:4px 0 7px;font-size:.62rem;line-height:1.55}
.notification-toast:not(.notification-toast--banner)>a{display:inline-flex;align-items:center;min-height:25px;padding:3px 9px;border:1px solid color-mix(in srgb,var(--notice-accent) 22%,white);border-radius:99px;background:color-mix(in srgb,var(--notice-accent) 7%,white);font-size:.57rem}
.notification-toast:not(.notification-toast--banner)>button{top:7px;inset-inline-end:7px;width:23px;height:23px;font-size:.95rem}
.notification-toast--banner{padding-block:9px!important}.notification-toast--banner .notification-toast__type{font-size:.5rem}.notification-toast--banner>b{font-size:.7rem}.notification-toast--banner>p{margin:3px 0;font-size:.6rem}
@media(max-width:600px){.notification-toast:not(.notification-toast--banner){top:calc(var(--header-h,70px) + 8px);inset-inline-end:12px;width:min(296px,calc(100vw - 24px));padding:11px 12px 10px}.notification-toast--banner{top:0;inset-inline:0;width:100%;padding-inline:50px}}
.notification-toast:not(.notification-toast--banner)>.notification-product-card{display:grid;grid-template-columns:44px minmax(0,1fr) 20px;align-items:center;width:100%;margin:7px 0;padding:6px;border:1px solid #f0e4e9;border-radius:10px;background:#fff9fb;text-decoration:none}
.notification-toast:not(.notification-toast--banner)>.notification-product-card img{width:44px;height:44px;max-width:none;object-fit:cover}
.notification-toast:not(.notification-toast--banner)>.notification-product-card b{padding:0;font-size:.6rem}.notification-toast:not(.notification-toast--banner)>.notification-product-card small{font-size:.5rem}.notification-toast:not(.notification-toast--banner)>.notification-product-card i{font-style:normal}
.notification-type-fields{padding:0}
.notification-toast:not(.notification-toast--banner).notification-toast--position-top-end{top:calc(var(--header-h,76px) + 16px);bottom:auto;inset-inline-end:12px;inset-inline-start:auto}
.notification-toast:not(.notification-toast--banner).notification-toast--position-top-start{top:calc(var(--header-h,76px) + 16px);bottom:auto;inset-inline-start:12px;inset-inline-end:auto}
.notification-toast:not(.notification-toast--banner).notification-toast--position-bottom-end{top:auto;bottom:18px;inset-inline-end:12px;inset-inline-start:auto}
.notification-toast:not(.notification-toast--banner).notification-toast--position-bottom-start{top:auto;bottom:18px;inset-inline-start:12px;inset-inline-end:auto}
.notification-toast--banner.notification-toast--position-bottom{top:auto;bottom:0}
@media(max-width:600px){.notification-toast:not(.notification-toast--banner).notification-toast--position-top-start{top:calc(var(--header-h,70px) + 8px);inset-inline-start:12px;inset-inline-end:auto}.notification-toast:not(.notification-toast--banner).notification-toast--position-bottom-end{top:auto;bottom:12px;inset-inline-end:12px;inset-inline-start:auto}.notification-toast:not(.notification-toast--banner).notification-toast--position-bottom-start{top:auto;bottom:12px;inset-inline-start:12px;inset-inline-end:auto}.notification-toast--banner.notification-toast--position-bottom{top:auto;bottom:0}}
@media(max-width:600px){.notification-toast:not(.notification-toast--banner).notification-toast--position-bottom-end,.notification-toast:not(.notification-toast--banner).notification-toast--position-bottom-start{bottom:calc(84px + env(safe-area-inset-bottom,0px))}body.mobile-bottom-nav-disabled .notification-toast:not(.notification-toast--banner).notification-toast--position-bottom-end,body.mobile-bottom-nav-disabled .notification-toast:not(.notification-toast--banner).notification-toast--position-bottom-start{bottom:calc(12px + env(safe-area-inset-bottom,0px))}}
@keyframes notificationDialogEnter{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
.notification-promo-dialog[open] section{animation:notificationDialogEnter .24s cubic-bezier(.2,.8,.2,1) both}
@media(prefers-reduced-motion:reduce){.notification-toast--position-bottom-end,.notification-toast--position-bottom-start,.notification-promo-dialog[open] section{animation:none}}
