/**
 * Picxly toast — theme-aligned notifications (Poppins, brand green, clean close).
 */
#toast-container {
    font-family: 'Poppins', sans-serif;
    z-index: 999999;
}

#toast-container.toast-bottom-right {
    bottom: 96px;
    right: 24px;
}

#toast-container.toast-bottom-right > div,
#toast-container > div {
    width: min(360px, calc(100vw - 48px));
    opacity: 1 !important;
    box-shadow: 0 10px 28px rgba(26, 32, 44, 0.14) !important;
    border-radius: 12px !important;
    /* Beat auth-page * { padding/margin: 0 } reset */
    margin: 0 0 8px !important;
    padding: 14px 44px 14px 52px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    letter-spacing: 0.01em;
    color: #ffffff !important;
    background-position: 16px center !important;
}

#toast-container > div:hover {
    box-shadow: 0 12px 32px rgba(26, 32, 44, 0.18) !important;
    opacity: 1 !important;
    cursor: default;
}

#toast-container .toast-message {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 400 !important;
    word-wrap: break-word;
}

#toast-container .toast-title {
    font-family: inherit !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    margin-bottom: 2px;
}

/* Close — inset from edges (default toastr sits too tight / floated) */
#toast-container .toast-close-button {
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    left: auto !important;
    float: none !important;
    width: 24px;
    height: 24px;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    color: #ffffff !important;
    text-shadow: none !important;
    opacity: 0.7 !important;
    border-radius: 6px;
    background: transparent !important;
    border: 0 !important;
    -webkit-appearance: none;
    appearance: none;
}

#toast-container .toast-close-button:hover,
#toast-container .toast-close-button:focus {
    opacity: 1 !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.14) !important;
    text-decoration: none !important;
}

/* Brand colors — Picxly green theme (not default toastr blue) */
#toast-container > .toast-info {
    background-color: #009E6B !important;
}

#toast-container > .toast-success {
    background-color: #009E6B !important;
}

#toast-container > .toast-error {
    background-color: #E11D48 !important;
}

#toast-container > .toast-warning {
    background-color: #D97706 !important;
}

#toast-container .toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    background-color: #ffffff;
    opacity: 0.35;
    border-radius: 0 0 12px 12px;
}

/* Auth / login — desktop: bottom-right (no Chatwoot offset) */
html:has(body.login-page-revamped) #toast-container.toast-bottom-right {
    bottom: 24px;
    right: 24px;
    left: auto;
    display: block;
}

html:has(body.login-page-revamped) #toast-container.toast-bottom-right > div {
    width: min(360px, calc(100vw - 48px));
    max-width: 360px;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (max-width: 767.98px) {
    #toast-container.toast-bottom-right {
        bottom: 88px;
        right: 16px;
        left: 16px;
    }

    #toast-container.toast-bottom-right > div {
        width: auto;
        max-width: none;
    }

    /* Auth / login — mobile: keep bottom full-width (unchanged) */
    html:has(body.login-page-revamped) #toast-container.toast-bottom-right {
        bottom: 20px;
        right: 16px;
        left: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    html:has(body.login-page-revamped) #toast-container.toast-bottom-right > div {
        width: 100%;
        max-width: 400px;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
