@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/PeydaWeb-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/peydaWeb-extralight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/peydaWeb-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/PeydaWeb-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/PeydaWeb-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/PeydaWeb-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/PeydaWeb-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/PeydaWeb-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/PeydaWeb-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NabzDigits";
  src: url("../fonts/peyda/PeydaWeb-Thin-Digits.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0660-0669, U+06F0-06F9;
}
@font-face {
  font-family: "NabzDigits";
  src: url("../fonts/peyda/peydaWeb-extralight-Digits.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0660-0669, U+06F0-06F9;
}
@font-face {
  font-family: "NabzDigits";
  src: url("../fonts/peyda/peydaWeb-light-Digits.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0660-0669, U+06F0-06F9;
}
@font-face {
  font-family: "NabzDigits";
  src: url("../fonts/peyda/PeydaWeb-Regular-Digits.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0660-0669, U+06F0-06F9;
}
@font-face {
  font-family: "NabzDigits";
  src: url("../fonts/peyda/PeydaWeb-Medium-Digits.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0660-0669, U+06F0-06F9;
}
@font-face {
  font-family: "NabzDigits";
  src: url("../fonts/peyda/PeydaWeb-SemiBold-Digits.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0660-0669, U+06F0-06F9;
}
@font-face {
  font-family: "NabzDigits";
  src: url("../fonts/peyda/PeydaWeb-Bold-Digits.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0660-0669, U+06F0-06F9;
}
@font-face {
  font-family: "NabzDigits";
  src: url("../fonts/peyda/PeydaWeb-ExtraBold-Digits.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0660-0669, U+06F0-06F9;
}
@font-face {
  font-family: "NabzDigits";
  src: url("../fonts/peyda/PeydaWeb-Black-Digits.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+0660-0669, U+06F0-06F9;
}

/* Render Western and Arabic-Indic digits with Persian glyphs; values stay unchanged. */
/* Shared notifications: keep the physical top-right position in RTL and LTR. */
.nbz-toast-region {
    position: fixed;
    top: calc(20px + env(safe-area-inset-top, 0px));
    right: calc(20px + env(safe-area-inset-right, 0px));
    bottom: auto;
    left: auto;
    z-index: 2147483647;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 400px;
    max-width: calc(100vw - 40px);
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
    pointer-events: none;
    direction: rtl;
    font-family: 'NabzDigits', 'Peyda', 'IRANSans', Tahoma, system-ui, sans-serif;
}
body.admin-bar .nbz-toast-region, body.wp-admin .nbz-toast-region { top: calc(52px + env(safe-area-inset-top, 0px)); }
.nbz-toast-region .nbz-toast {
    --nbz-toast-color: #1d4ed8;
    --nbz-toast-tint: #eff6ff;
    --nbz-toast-border: #bfdbfe;
    position: relative;
    display: flex;
    align-items: flex-start;
    flex: none;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    min-height: 88px;
    margin: 0;
    padding: 18px 16px;
    border: 1px solid var(--nbz-toast-border);
    border-right: 4px solid var(--nbz-toast-color);
    border-radius: 16px;
    background: var(--nbz-toast-tint);
    color: #172033;
    box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .22), 0 2px 6px rgba(15, 23, 42, .04);
    font: inherit;
    font-size: 15px;
    line-height: 1.8;
    text-align: right;
    pointer-events: auto;
    animation: nbz-notification-in .2s ease-out;
}
.nbz-toast-region .nbz-toast--success { --nbz-toast-color: #15803d; --nbz-toast-tint: #f0fdf4; --nbz-toast-border: #bbf7d0; }
.nbz-toast-region .nbz-toast--error { --nbz-toast-color: #b91c1c; --nbz-toast-tint: #fef2f2; --nbz-toast-border: #fecaca; }
.nbz-toast-region .nbz-toast--warning { --nbz-toast-color: #b45309; --nbz-toast-tint: #fffbeb; --nbz-toast-border: #fde68a; }
.nbz-toast-region .nbz-toast__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    border: 1px solid var(--nbz-toast-border);
    border-radius: 12px;
    background: #fff;
    color: var(--nbz-toast-color);
}
.nbz-toast-region .nbz-toast__icon svg { display: block; width: 24px; height: 24px; }
.nbz-toast-region .nbz-toast__content { flex: 1; min-width: 0; }
.nbz-toast-region .nbz-toast__title { display: block; margin: 0 0 2px; color: var(--nbz-toast-color); font-size: 15px; font-weight: 700; line-height: 1.5; }
.nbz-toast-region .nbz-toast__message { display: block; overflow-wrap: anywhere; white-space: pre-line; }
.nbz-toast-region .nbz-toast__close {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    margin: -4px 0 0 -4px;
    padding: 4px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    box-shadow: none;
    cursor: pointer;
}
.nbz-toast-region .nbz-toast__close svg { display: block; width: 18px; height: 18px; }
.nbz-toast-region .nbz-toast__close:hover { background: #fff; color: var(--nbz-toast-color); }
.nbz-toast-region .nbz-toast__close:focus-visible { outline: 2px solid var(--nbz-toast-color); outline-offset: 2px; }
.nbz-toast-region .nbz-toast.is-leaving { pointer-events: none; animation: nbz-notification-out .2s ease-in forwards; }
@keyframes nbz-notification-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes nbz-notification-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(24px); } }
@media (max-width: 782px) {
    body.admin-bar .nbz-toast-region, body.wp-admin .nbz-toast-region { top: calc(62px + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 480px) {
    .nbz-toast-region { top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); max-width: calc(100vw - 24px); gap: 10px; }
    .nbz-toast-region .nbz-toast { padding: 16px 12px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .nbz-toast-region .nbz-toast, .nbz-toast-region .nbz-toast.is-leaving { animation: none; }
}
