/* Build 5, E ("themed_toasts"): the themed toast and confirm box (public/frontEnd/js/sb-toast.js),
   storefront and admin. Brand pink, rounded, Bangla; the admin has no --primary, hence the fallbacks. */
.sbt-stack {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 1000020;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    pointer-events: none;
    font-family: inherit;
}

@media (min-width: 768px) {
    .sbt-stack {
        right: 24px;
        left: auto;
        width: 360px;
    }
}

.sbt {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 10px 12px 14px;
    border: 1px solid #F1E4EA;
    border-left: 4px solid var(--sbt-accent);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(26, 16, 22, .16);
    color: #1A1A2E;
    pointer-events: auto;
    animation: sbt-in .22s cubic-bezier(.2, .8, .2, 1);
}

.sbt.is-out {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
}

.sbt--success { --sbt-accent: #16A34A; }
.sbt--error { --sbt-accent: var(--primary, #E4007C); }
.sbt--warning { --sbt-accent: #D97706; }
.sbt--info { --sbt-accent: #6D5B67; }

.sbt-icon {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--sbt-accent) 12%, #fff);
    color: var(--sbt-accent);
}

.sbt-body {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
}

.sbt-title {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
}

.sbt-text {
    margin: 2px 0 0;
    color: #5A4450;
    font-size: 13.5px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.sbt-x {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin: -4px 0 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8A7882;
    cursor: pointer;
}

.sbt-x:hover,
.sbt-x:focus-visible {
    background: #F7F1F4;
    color: #1A1A2E;
}

@keyframes sbt-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

/* ---------- the confirm / message box ---------- */
.sbd {
    position: fixed;
    inset: 0;
    z-index: 1000030;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: inherit;
}

.sbd-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 16, 22, .5);
    opacity: 0;
    transition: opacity .18s ease;
}

.sbd-box {
    position: relative;
    width: min(380px, 100%);
    padding: 26px 22px 20px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
    color: #1A1A2E;
    text-align: center;
    opacity: 0;
    transform: scale(.96);
    transition: opacity .18s ease, transform .18s ease;
}

.sbd.is-open .sbd-backdrop,
.sbd.is-open .sbd-box {
    opacity: 1;
}

.sbd.is-open .sbd-box {
    transform: none;
}

.sbd--success { --sbt-accent: #16A34A; }
.sbd--error { --sbt-accent: var(--primary, #E4007C); }
.sbd--warning { --sbt-accent: var(--primary, #E4007C); }
.sbd--info { --sbt-accent: #6D5B67; }

.sbd-icon {
    display: grid;
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--sbt-accent) 12%, #fff);
    color: var(--sbt-accent);
}

.sbd-icon svg {
    width: 26px;
    height: 26px;
}

.sbd-title {
    margin: 0 0 6px;
    color: #1A1A2E;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.sbd-text {
    margin: 0 0 4px;
    color: #5A4450;
    font-size: 14px;
    line-height: 1.5;
}

.sbd-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.sbd-actions button {
    flex: 1;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    font: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
}

.sbd-no {
    border: 1.5px solid #EADDE4;
    background: #fff;
    color: #1A1A2E;
}

.sbd-yes {
    border: 1.5px solid var(--primary, #E4007C);
    background: var(--primary, #E4007C);
    color: #fff;
}

.sbd-yes.is-danger {
    border-color: #C8003F;
    background: #C8003F;
}

.sbd-actions button:focus-visible,
.sbt-x:focus-visible {
    outline: 3px solid rgba(228, 0, 124, .4);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    body:not(.tw-ignore-reduced-motion) .sbt,
    body:not(.tw-ignore-reduced-motion) .sbd-box,
    body:not(.tw-ignore-reduced-motion) .sbd-backdrop {
        animation: none;
        transition: none;
    }
}
