.dy-toasts {
    position: fixed;
    z-index: 500;
    right: 18px;
    bottom: 18px;
    top: auto;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}

.dy-toast {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 32px;
    gap: 10px;
    align-items: center;
    padding: 12px 12px 12px 12px;
    border: 1px solid #ead4f4;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 36px rgba(80, 3, 96, 0.16);
    color: #32104f;
    pointer-events: auto;
}
.dy-toast-ico {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fae6f2;
    color: #500360;
}
.dy-toast-ico svg { width: 18px; height: 18px; }
.dy-toast.is-success .dy-toast-ico { background: #e7f6ee; color: #1f8a4c; }
.dy-toast.is-error .dy-toast-ico { background: #fde8ef; color: #b4234a; }
.dy-toast.is-warning .dy-toast-ico { background: #fff4e5; color: #c9842a; }

.dy-toast strong { display: block; font-size: 13px; }
.dy-toast p { margin: 2px 0 0; color: #6b4c7a; font-size: 13px; font-weight: 650; }
.dy-toast button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #9a8aa8;
    cursor: pointer;
}
.dy-toast button svg { width: 16px; height: 16px; }
.dy-toast.is-success { border-color: #cfead9; }
.dy-toast.is-error { border-color: #f6c9d6; }
.dy-toast.is-warning { border-color: #f3e0c2; }
.dy-toast.is-info { border-color: #ead4f4; }

html[data-dy-theme="dark"] .dy-toast {
    background: rgba(28, 12, 34, 0.94);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.08);
}
html[data-dy-theme="dark"] .dy-toast p { color: #e8d5f5; }

@media (prefers-reduced-motion: no-preference) {
    .dy-toast { animation: dy-toast-in 0.22s ease; }
}
@keyframes dy-toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}

.dy-confirm {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(20, 8, 24, 0.45);
}
body.dy-confirm-open { overflow: hidden; }
.dy-confirm[hidden] { display: none; }
.dy-confirm-card {
    position: relative;
    width: min(420px, 100%);
    padding: 28px 22px 20px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(20, 8, 24, 0.28);
    text-align: center;
}
.dy-confirm-x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #9a8aa8;
    cursor: pointer;
}
.dy-confirm-x svg { width: 16px; height: 16px; }
.dy-confirm-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fae6f2;
    color: #500360;
}
.dy-confirm-badge svg { width: 26px; height: 26px; }
.dy-confirm-card.is-danger .dy-confirm-badge { background: #fde8ef; color: #b4234a; }
.dy-confirm-card.is-warning .dy-confirm-badge { background: #fff4e5; color: #c9842a; }
.dy-confirm-card.is-warning .dy-confirm-actions #dy-confirm-cancel { display: none; }
.dy-confirm-card.is-session .dy-confirm-badge { background: #fae6f2; color: #691084; }
.dy-confirm-card strong { display: block; color: #32104f; font-size: 20px; font-weight: 800; }
.dy-confirm-card p { margin: 8px auto 0; max-width: 34em; color: #6b4c7a; font-size: 14px; font-weight: 650; line-height: 1.45; }
.dy-confirm-actions { display: flex; gap: 10px; margin-top: 22px; }
.dy-confirm-actions button {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid #e4d7ee;
    background: #fff;
    color: #32104f;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}
.dy-confirm-actions #dy-confirm-ok { background: #500360; color: #fff; border-color: #500360; }
.dy-confirm-actions #dy-confirm-ok.is-busy {
    position: relative;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}
.dy-confirm-actions #dy-confirm-ok.is-danger { background: #b4234a; border-color: #b4234a; }
.dy-confirm-card.is-session .dy-confirm-actions #dy-confirm-cancel,
.dy-confirm-card.is-session .dy-confirm-x { display: none; }
html[data-dy-theme="dark"] .dy-confirm-card { background: #1c0c22; }
html[data-dy-theme="dark"] .dy-confirm-card strong { color: #fff; }
html[data-dy-theme="dark"] .dy-confirm-card p { color: #e8d5f5; }
html[data-dy-theme="dark"] .dy-confirm-actions #dy-confirm-cancel { background: #2a142f; color: #fff; border-color: rgba(255, 255, 255, 0.12); }

button.is-busy,
input[type="submit"].is-busy,
.dy-stock-add .dy-catalog-actions button.is-busy,
.dy-product-form button.is-busy {
    position: relative;
    z-index: 1900;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    pointer-events: none;
}
button.is-busy::after,
input[type="submit"].is-busy::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 18px;
    height: 18px;
    margin: auto;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dy-btn-spin 0.7s linear infinite;
}
@keyframes dy-btn-spin { to { transform: rotate(360deg); } }

body:has(.dy-shell) .dy-toasts {
    top: 124px;
    bottom: auto;
    z-index: 400;
}

.dy-notice-screen { display: grid; gap: 14px; }
.dy-notice-head,
.dy-notice-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dy-notice-head {
    justify-content: space-between;
    padding: 16px;
    border: 1px solid #ead4f4;
    border-radius: 22px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(250, 230, 242, 0.55));
}
.dy-notice-head strong { display: block; font-size: 20px; color: #32104f; }
.dy-notice-head p { margin: 4px 0 0; color: #6b4c7a; font-size: 13px; font-weight: 700; }
.dy-notice-head a,
.dy-notice-list a {
    color: #500360;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}
.dy-notice-block {
    padding: 16px;
    border: 1px solid #ead4f4;
    border-radius: 22px;
    background: #fff;
}
.dy-notice-block h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: #32104f;
    font-size: 16px;
}
.dy-notice-block h2 b {
    min-width: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #fae6f2;
    color: #500360;
    font-size: 12px;
    text-align: center;
}
.dy-notice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dy-notice-list li {
    padding: 8px;
    border: 1px solid #ead4f4;
    border-radius: 16px;
    background: linear-gradient(90deg, #fff, rgba(255, 143, 200, 0.08));
}
.dy-notice-list img {
    width: 48px;
    height: 48px;
    max-width: 48px;
    border-radius: 14px;
    object-fit: cover;
    background: #fae6f2;
}
.dy-notice-list div { min-width: 0; flex: 1; }
.dy-notice-list strong,
.dy-notice-list span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dy-notice-list strong { color: #32104f; font-size: 14px; }
.dy-notice-list span { color: #6b4c7a; font-size: 12px; font-weight: 700; }
.dy-notice-list em {
    padding: 3px 8px;
    border-radius: 999px;
    background: #ffe3f1;
    color: #9a2468;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}
.dy-notice-list em.is-out { background: #fde8ee; color: #b4234a; }
html[data-dy-theme="dark"] .dy-notice-head,
html[data-dy-theme="dark"] .dy-notice-block,
html[data-dy-theme="dark"] .dy-notice-list li {
    background: #1c0c22;
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}
html[data-dy-theme="dark"] .dy-notice-head strong,
html[data-dy-theme="dark"] .dy-notice-block h2,
html[data-dy-theme="dark"] .dy-notice-list strong { color: #fff; }

@media (max-width: 700px) {
    .dy-notice-list li { flex-wrap: wrap; }
    .dy-notice-list a { margin-left: 60px; }
}
