/* Platform teaser toasts (#toastPlacement). Load after admin core.css so rules win over Bootstrap/admin .toast-body. */

.toast-container {
    position: fixed;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    z-index: 100001;
    right: 0;
    left: 0;
    bottom: 0;
    top: 0;
    width: 100%;
    pointer-events: none;
}

.toast-container > .toast {
    pointer-events: auto;
    background: var(--sf-info, #0369a1);
    color: #fff;
    z-index: 10000001;
    margin: 15px;
    min-width: 250px;
    min-height: 60px;
    max-width: min(420px, calc(100vw - 2rem));
    width: auto;
    border: none;
    border-radius: 0.5rem;
    position: relative;
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    align-content: center;
    padding: 0.5rem 0.625rem 0.5rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 400;
    opacity: 1;
    box-shadow: 0 0.35rem 1rem color-mix(in srgb, var(--sf-info, #0369a1) 42%, transparent);
}

.toast-container > .toast .toast-message-row {
    grid-area: 1 / 1 / 2 / 2;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    width: 100%;
    padding-right: 1.35rem;
    align-self: center;
    justify-self: stretch;
}

.toast-container > .toast .toast-status-icon {
    flex: 0 0 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1;
    color: #fff;
}

.toast-container > .toast.toast-warning .toast-status-icon::before {
    content: "\f071";
}

.toast-container > .toast.toast-danger .toast-status-icon::before,
.toast-container > .toast.toast-error .toast-status-icon::before {
    content: "\f06a";
}

.toast-container > .toast:not(.toast-warning):not(.toast-danger):not(.toast-error) .toast-status-icon::before {
    content: "\f05a";
}

.toast-container > .toast .toast-body {
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.45;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    max-height: 7.25rem;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

.toast-container > .toast > .toast-dismiss {
    grid-area: 1 / 1 / 2 / 2;
    justify-self: end !important;
    align-self: start !important;
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
    padding: 0.15rem !important;
    border: 0 !important;
    border-radius: 0.375rem;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    opacity: 0.92;
    width: 1.25rem !important;
    min-width: 1.25rem !important;
    height: 1.25rem !important;
    min-height: 0 !important;
    max-height: 1.25rem !important;
    line-height: 1 !important;
    z-index: 2;
    cursor: pointer;
    flex: none !important;
    align-items: normal !important;
    appearance: none;
    -webkit-appearance: none;
}

.toast-container > .toast > .toast-dismiss:hover,
.toast-container > .toast > .toast-dismiss:focus {
    opacity: 1;
    outline: none;
}

.toast-container > .toast > .toast-dismiss::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f00d";
    display: block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-align: center;
}

.toast-container > .toast.toast-success,
.toast-container > .toast.toast-info,
.toast-container > .toast.toast-submit {
    background: var(--sf-info, #0369a1) !important;
    box-shadow: 0 0.35rem 1rem color-mix(in srgb, var(--sf-info, #0369a1) 42%, transparent) !important;
}

.toast-container > .toast.toast-warning {
    background: var(--sf-warning, #b45309) !important;
    box-shadow: 0 0.35rem 1rem color-mix(in srgb, var(--sf-warning, #b45309) 42%, transparent) !important;
}

.toast-container > .toast.toast-danger,
.toast-container > .toast.toast-error {
    background: var(--sf-error, #b42318) !important;
    box-shadow: 0 0.35rem 1rem color-mix(in srgb, var(--sf-error, #b42318) 42%, transparent) !important;
}
