/* Blockart top-right notifications - see /assets/js/ba-notify.js */
.ba-notify-box { position: fixed; top: 20px; right: 20px; z-index: 100000; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.ba-notify { --nc: #513a47; --nbg: #f7f1f4; position: relative; display: flex; align-items: flex-start; gap: 12px; width: 360px; max-width: calc(100vw - 40px);
    padding: 14px 40px 16px 14px; background: #fff; border-left: 4px solid var(--nc); border-radius: 12px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(42, 25, 35, .16), 0 2px 6px rgba(42, 25, 35, .08); font-family: "Rubik", sans-serif; color: #2e2e2e;
    pointer-events: auto; opacity: 0; transform: translateX(110%); transition: transform .35s cubic-bezier(.2, .9, .3, 1.15), opacity .3s ease; }
.ba-notify.in { opacity: 1; transform: translateX(0); }
.ba-notify.out { opacity: 0; transform: translateX(110%); transition: transform .3s ease-in, opacity .25s ease-in; }

.ba-notify--success { --nc: #1f8a4c; --nbg: #e6f4ec; }
.ba-notify--error   { --nc: #c62f4f; --nbg: #fde8ee; }
.ba-notify--warning { --nc: #c77800; --nbg: #fff3df; }
.ba-notify--info    { --nc: #513a47; --nbg: #f4ecf0; }

.ba-notify__icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--nbg); color: var(--nc); }
.ba-notify__icon svg { width: 22px; height: 22px; }
.ba-notify__body { flex: 1; min-width: 0; padding-top: 1px; }
.ba-notify__title { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--nc); margin-bottom: 2px; }
.ba-notify__msg { font-size: 14px; line-height: 1.45; color: #3a3a3a; word-wrap: break-word; }
.ba-notify__close { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: #8a7d84;
    font-size: 20px; line-height: 26px; text-align: center; cursor: pointer; padding: 0; }
.ba-notify__close:hover, .ba-notify__close:focus-visible { background: #f1eaee; color: #2e2e2e; }
.ba-notify__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--nc); opacity: .35; transform-origin: left; animation: baNotifyBar linear forwards; }
.ba-notify.paused .ba-notify__bar { animation-play-state: paused; }
@keyframes baNotifyBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (max-width: 575px) {
    .ba-notify-box { top: 12px; right: 12px; left: 12px; align-items: stretch; }
    .ba-notify { width: auto; max-width: none; transform: translateY(-130%); }
    .ba-notify.in { transform: translateY(0); }
    .ba-notify.out { transform: translateY(-130%); }
}
@media (prefers-reduced-motion: reduce) {
    .ba-notify, .ba-notify.in, .ba-notify.out { transition: opacity .2s; transform: none; }
}

/* Button loader - see /assets/js/ba-busy.js */
.ba-busy { pointer-events: none; cursor: progress; opacity: .85; }
.ba-spin { display: inline-block; width: 1em; height: 1em; margin-right: .5em; vertical-align: -.15em; border: 2px solid currentColor;
    border-right-color: transparent; border-radius: 50%; animation: baSpin .7s linear infinite; }
@keyframes baSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ba-spin { animation-duration: 1.6s; } }
