/* ============================================================
 * STOCK FOR SALE - ACCOUNT DELETED CONFIRMATION TOAST
 * ============================================================
 * Only the deletion confirmation gets this class from
 * account-deleted-toast.js; other WPAdverts messages are unchanged.
 */
body .adverts-flash-messages.aacs-sfs-account-deleted-toast {
    position: fixed !important;
    z-index: 2147483000 !important;
    top: auto !important;
    right: auto !important;
    left: 50% !important;
    bottom: max(36px, env(safe-area-inset-bottom, 0px)) !important;
    width: min(520px, calc(100vw - 36px)) !important;
    max-width: calc(100vw - 36px) !important;
    min-height: 78px;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-left: 5px solid #8AB336 !important;
    border-radius: 0 !important;
    background: #1C1A19 !important;
    color: #FFFFFF !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, .35), 0 4px 14px rgba(0, 0, 0, .18) !important;
    transform: translateX(-50%) !important;
    animation: aacs-sfs-deleted-toast-in 300ms ease-out both;
}

body .aacs-sfs-account-deleted-toast .adverts-flash-single {
    position: relative;
    display: flex !important;
    align-items: center !important;
    gap: 15px;
    min-height: 78px;
    margin: 0 !important;
    padding: 18px 52px 18px 20px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

/* Replace the inherited oversized WPAdverts icon with a controlled check. */
body .aacs-sfs-account-deleted-toast .adverts-flash-message-icon {
    display: none !important;
}
body .aacs-sfs-account-deleted-toast .adverts-flash-single::before {
    content: '\2713';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 2px solid #8AB336;
    border-radius: 50%;
    color: #8AB336;
    font: 700 22px/1 Arial, sans-serif;
    box-sizing: border-box;
}
body .aacs-sfs-account-deleted-toast .adverts-flash-message-text,
body .aacs-sfs-account-deleted-toast .adverts-flash-padding {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #FFFFFF !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
}

body .aacs-sfs-account-deleted-toast .aacs-sfs-toast-close {
    position: absolute;
    top: 50%;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #D9D9D9 !important;
    font: normal 25px/1 Arial, sans-serif !important;
    cursor: pointer;
    transform: translateY(-50%);
}
body .aacs-sfs-account-deleted-toast .aacs-sfs-toast-close:hover,
body .aacs-sfs-account-deleted-toast .aacs-sfs-toast-close:focus-visible {
    color: #8AB336 !important;
}
body .aacs-sfs-account-deleted-toast .aacs-sfs-toast-close:focus-visible {
    outline: 2px solid #8AB336 !important;
    outline-offset: 1px;
}

@keyframes aacs-sfs-deleted-toast-in {
    from { opacity: 0; transform: translate(-50%, 15px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 600px) {
    body .adverts-flash-messages.aacs-sfs-account-deleted-toast {
        bottom: max(18px, env(safe-area-inset-bottom, 0px)) !important;
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
    }
    body .aacs-sfs-account-deleted-toast .adverts-flash-single {
        gap: 12px;
        padding: 16px 44px 16px 15px !important;
    }
    body .aacs-sfs-account-deleted-toast .adverts-flash-message-text {
        font-size: 15px !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    body .adverts-flash-messages.aacs-sfs-account-deleted-toast {
        animation: none !important;
    }
}
