/**
 * FCB toastr theme — matches front Bootstrap tokens (Poppins, br-20px cards, soft shadow).
 */
#toast-container {
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

#toast-container>div {
    width: min(24rem, calc(100vw - 2.5rem));
    max-width: min(24rem, calc(100vw - 2.5rem));
    padding: 1rem 2.75rem 1rem 3.25rem;
    margin: 0;
    opacity: 1;
    color: var(--bs-dark, #1a1a1a);
    background-color: var(--bs-white, #fff);
    background-image: none;
    border: 1px solid var(--bs-gray-200, #e9ecef);
    border-radius: 1.25rem;
    box-shadow: 0 10px 20px 10px rgba(0, 0, 0, 0.1);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    overflow: hidden;
}

#toast-container>div:hover {
    box-shadow: 0 12px 24px 12px rgba(0, 0, 0, 0.12);
    opacity: 1;
}

#toast-container>div::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

#toast-container>.toast-success {
    border-left: 0.25rem solid var(--bs-success, #8cc63f);
}

#toast-container>.toast-success::before {
    background-image: url("../img/icon/check-green.svg");
}

#toast-container>.toast-error {
    border-left: 0.25rem solid var(--bs-danger, #e55451);
}

#toast-container>.toast-error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23E55451'/%3E%3Cpath d='M12 7v6' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='16.5' r='1.1' fill='white'/%3E%3C/svg%3E");
}

#toast-container>.toast-warning {
    border-left: 0.25rem solid var(--bs-warning, #eca008);
}

#toast-container>.toast-warning::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 3L2.5 19h19L12 3z' fill='%23ECA008'/%3E%3Cpath d='M12 9v5' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='16.5' r='1' fill='white'/%3E%3C/svg%3E");
}

#toast-container>.toast-info {
    border-left: 0.25rem solid var(--bs-primary, #0f4c92);
}

#toast-container>.toast-info::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='10' fill='%230F4C92'/%3E%3Cpath d='M12 10v6' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='7.5' r='1' fill='white'/%3E%3C/svg%3E");
}

#toast-container .toast-title {
    font-weight: 600;
    color: var(--bs-dark, #1a1a1a);
    margin-bottom: 0.125rem;
}

#toast-container .toast-message {
    color: var(--bs-gray-700, #495057);
    font-weight: 500;
}

#toast-container .toast-message a,
#toast-container .toast-message label {
    color: var(--bs-primary, #0f4c92);
}

#toast-container .toast-message a:hover {
    color: var(--bs-primary-text-emphasis, #052c65);
    text-decoration: underline;
}

#toast-container .toast-close-button {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    float: none;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1;
    color: var(--bs-gray-600, #6c757d);
    background-color: transparent;
    border: 1.5px solid var(--bs-gray-300, #d0d0d0);
    border-radius: 50%;
    text-shadow: none;
    opacity: 1;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

#toast-container>.toast-success .toast-close-button {
    color: var(--bs-success, #8cc63f);
    border-color: var(--bs-success, #8cc63f);
}

#toast-container>.toast-success .toast-close-button:hover,
#toast-container>.toast-success .toast-close-button:focus {
    color: var(--bs-white, #fff);
    background-color: var(--bs-success, #8cc63f);
    border-color: var(--bs-success, #8cc63f);
    transform: translateY(-50%);
    opacity: 1;
}

#toast-container>.toast-error .toast-close-button {
    color: var(--bs-danger, #e55451);
    border-color: var(--bs-danger, #e55451);
}

#toast-container>.toast-error .toast-close-button:hover,
#toast-container>.toast-error .toast-close-button:focus {
    color: var(--bs-white, #fff);
    background-color: var(--bs-danger, #e55451);
    border-color: var(--bs-danger, #e55451);
    transform: translateY(-50%);
    opacity: 1;
}

#toast-container>.toast-warning .toast-close-button {
    color: var(--bs-warning, #eca008);
    border-color: var(--bs-warning, #eca008);
}

#toast-container>.toast-warning .toast-close-button:hover,
#toast-container>.toast-warning .toast-close-button:focus {
    color: var(--bs-white, #fff);
    background-color: var(--bs-warning, #eca008);
    border-color: var(--bs-warning, #eca008);
    transform: translateY(-50%);
    opacity: 1;
}

#toast-container>.toast-info .toast-close-button {
    color: var(--bs-primary, #0f4c92);
    border-color: var(--bs-primary, #0f4c92);
}

#toast-container>.toast-info .toast-close-button:hover,
#toast-container>.toast-info .toast-close-button:focus {
    color: var(--bs-white, #fff);
    background-color: var(--bs-primary, #0f4c92);
    border-color: var(--bs-primary, #0f4c92);
    transform: translateY(-50%);
    opacity: 1;
}

#toast-container .toast-close-button:hover,
#toast-container .toast-close-button:focus {
    opacity: 1;
    outline: none;
}

#toast-container .toast-progress {
    height: 0.2rem;
    opacity: 0.85;
}

#toast-container>.toast-success .toast-progress {
    background-color: var(--bs-success, #8cc63f);
}

#toast-container>.toast-error .toast-progress {
    background-color: var(--bs-danger, #e55451);
}

#toast-container>.toast-warning .toast-progress {
    background-color: var(--bs-warning, #eca008);
}

#toast-container>.toast-info .toast-progress {
    background-color: var(--bs-primary, #0f4c92);
}

@media (max-width: 767.98px) {
    #toast-container {
        left: 1rem;
        right: 1rem;
        width: auto;
    }

    #toast-container>div {
        width: 100%;
        max-width: 100%;
    }
}