@font-face {
    font-family: "EbadiToastPeyda";
    src: url("../fonts/Peyda-Regular.woff2") format("woff2"),
         url("../fonts/Peyda-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "EbadiToastPeyda";
    src: url("../fonts/Peyda-Bold.woff2") format("woff2"),
         url("../fonts/Peyda-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.ebadi-toast-wrap {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2147483000;
    width: min(360px, calc(100vw - 24px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    direction: rtl;
    font-family: "EbadiToastPeyda", Peyda, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Tahoma, Arial !important;
}

.ebadi-toast {
    position: relative;
    overflow: hidden;
    min-height: 58px;
    border: 1px solid rgba(195, 151, 89, .28);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(195, 151, 89, .13), rgba(255, 255, 255, .06) 36%),
        rgba(255, 255, 255, .97);
    box-shadow: 0 16px 34px rgba(55, 38, 17, .16), 0 4px 12px rgba(55, 38, 17, .08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #241f1a;
    padding: 10px 12px 11px 38px;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 9px;
    align-items: center;
    pointer-events: auto;
    font-family: "EbadiToastPeyda", Peyda, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Tahoma, Arial !important;
    transform: translateY(14px) scale(.985);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
}

.ebadi-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ebadi-toast.is-leaving {
    opacity: 0;
    transform: translateY(12px) scale(.98);
}

.ebadi-toast__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24);
}

.ebadi-toast__body {
    min-width: 0;
}

.ebadi-toast__title {
    margin: 0 0 2px;
    color: #221d18;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.ebadi-toast__message {
    color: #5f574e;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.ebadi-toast__close {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 23px;
    height: 23px;
    border: 0;
    border-radius: 8px;
    background: rgba(195, 151, 89, .10);
    color: #7a633f;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.ebadi-toast__close:hover {
    background: rgba(195, 151, 89, .18);
    color: #4c3820;
}

.ebadi-toast__bar {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    transform-origin: right center;
    animation: ebadi-toast-timeout linear forwards;
}

.ebadi-toast--success .ebadi-toast__icon,
.ebadi-toast--success .ebadi-toast__bar {
    background: linear-gradient(135deg, #2ca36c, #178050);
    color: #fff;
}

.ebadi-toast--error .ebadi-toast__icon,
.ebadi-toast--error .ebadi-toast__bar {
    background: linear-gradient(135deg, #d94a42, #b72626);
    color: #fff;
}

.ebadi-toast--warning .ebadi-toast__icon,
.ebadi-toast--warning .ebadi-toast__bar {
    background: linear-gradient(135deg, #C39759, #9f7136);
    color: #fff;
}

.ebadi-toast--info .ebadi-toast__icon,
.ebadi-toast--info .ebadi-toast__bar {
    background: linear-gradient(135deg, #C39759, #8d642d);
    color: #fff;
}

.ebadi-toast--success {
    border-color: rgba(44, 163, 108, .24);
}

.ebadi-toast--error {
    border-color: rgba(217, 74, 66, .24);
}

.ebadi-toast--warning {
    border-color: rgba(195, 151, 89, .34);
}

.ebadi-toast--info {
    border-color: rgba(195, 151, 89, .34);
}

@keyframes ebadi-toast-timeout {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 640px) {
    .ebadi-toast-wrap {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
    }

    .ebadi-toast {
        border-radius: 12px;
        padding: 10px 11px 11px 36px;
    }
}
