.fast-toast {
    background-color: #FFFFFF;
    border-radius: 5px;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    /* Override iziToast padding (8px 45px 9px 0) reserved for absolute close. */
    padding: 8px 12px 8px 8px !important;
    border: 1px solid #E5E7EB;
    font-size: 16px;
    min-height: 0;
    /* iziToast defaults to width:100% — paints a full-width white strip on open. */
    width: auto !important;
    max-width: min(420px, calc(100vw - 32px));
}

/* Kill iziToast desktop ::after drop shadow (3D look). */
.fast-toast::after {
    content: none !important;
    box-shadow: none !important;
}

/*
 * iziToast opens capsules with height:0 → H over 0.5s while width:100%.
 * That full-width height tween paints a brief strip under the header.
 * Size wrappers/capsules to the toast and skip the height transition.
 */
.iziToast-wrapper {
    width: auto !important;
    max-width: calc(100vw - 16px);
}

.iziToast-wrapper .iziToast-capsule {
    width: auto !important;
    max-width: min(420px, calc(100vw - 32px));
    overflow: hidden;
    transform: none !important;
    backface-visibility: visible;
    transition: none !important;
}

.iziToast-wrapper-topRight {
    right: 16px;
    top: 16px;
    left: auto;
    align-items: flex-end;
}

.iziToast-wrapper-topLeft {
    left: 16px;
    top: 16px;
    right: auto;
    align-items: flex-start;
}

.iziToast-wrapper-topCenter {
    left: 50%;
    right: auto;
    top: 16px;
    transform: translateX(-50%);
    align-items: center;
}

.iziToast-wrapper-topCenter .iziToast-capsule {
    display: flex;
    justify-content: center;
}

@media (max-width: 767px) {
    .iziToast-wrapper {
        width: 100% !important;
        max-width: none;
        left: 0 !important;
        right: 0 !important;
        padding: 0 16px;
        box-sizing: border-box;
        align-items: stretch;
        transform: none;
    }

    .iziToast-wrapper-topRight,
    .iziToast-wrapper-topLeft,
    .iziToast-wrapper-topCenter {
        left: 0;
        right: 0;
        top: 16px;
        transform: none;
    }

    .iziToast-wrapper .iziToast-capsule {
        width: 100% !important;
        max-width: none;
    }

    .iziToast-wrapper-topCenter .iziToast-capsule {
        display: block;
    }

    .fast-toast {
        width: 100% !important;
        max-width: none;
    }
}

.fast-toast::before {
    content: '';
    align-self: stretch;
    background-color: #FA4094;
    border-radius: 5px;
    flex-shrink: 0;
    width: 3px;
}

.fast-toast > .iziToast-body {
    align-items: center;
    color: #222222;
    display: flex;
    flex: 1 1 auto;
    font-family: var(--font-body);
    font-size: 16px;
    min-height: 0;
    min-width: 0;
    padding: 6px !important;
    margin: 0;
}

.fast-toast > .iziToast-body .iziToast-icon {
    color: #FA4094;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: static;
    margin: 0 0 0 8px;
    width: 24px;
    height: 24px;
}

.fast-toast > .iziToast-body .iziToast-icon > svg {
    stroke-width: 2;
    height: 24px;
    width: 24px;
}

/* .fast-toast.iziToast beats frontend.css `.iziToast > … .iziToast-texts` (same order, later file). */
.fast-toast.iziToast > .iziToast-body .iziToast-texts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    float: none;
    min-width: 0;
    padding: 0;
    margin: 0 0 0 12px;
}

.fast-toast > .iziToast-body .iziToast-title {
    font-family: var(--font-heading);
    font-weight: 500 !important;
    float: none;
    line-height: 1.4;
    padding-bottom: 3px;
}

.fast-toast > .iziToast-body .iziToast-message {
    float: none;
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
    white-space: normal;
}

.fast-toast > .iziToast-body .iziToast-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.fast-toast > .iziToast-body .iziToast-buttons > .iziToast-buttons-child {
    appearance: none;
    background-color: transparent;
    border: none;
    color: var(--color-neutral-900);
    font-size: 16px;
    font-weight: 700;
    text-decoration: underline;
}

.fast-toast > .iziToast-close {
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 0 0 8px;
    opacity: 0.6;
    padding: 0;
    position: static;
    width: 20px;
    height: 20px;
}

.fast-toast > .iziToast-close > svg {
    display: block;
    width: 20px;
    height: 20px;
}

.fast-toast.iziToast-color-info > .iziToast-body .iziToast-icon {
    color: #0065FF;
}

.fast-toast.iziToast-color-info::before {
    background-color: #0065FF;
}

.fast-toast.iziToast-color-success > .iziToast-body .iziToast-icon {
    color: #0A9A6F;
}

.fast-toast.iziToast-color-success::before {
    background-color: #0A9A6F;
}

.fast-toast.iziToast-color-error > .iziToast-body .iziToast-icon {
    color: #DC1818;
}

.fast-toast.iziToast-color-error::before {
    background-color: #DC1818;
}

.fast-toast.iziToast-color-warning > .iziToast-body .iziToast-icon {
    color: #EAB308;
}

.fast-toast.iziToast-color-warning::before {
    background-color: #EAB308;
}
