/* =========================================================
   Main Toast
   ========================================================= */

.cs-toast {
    width: 400px;
    max-width: calc(100vw - 30px);
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bs-white);
    box-shadow:
        0 20px 45px rgba(15, 27, 61, 0.16),
        0 5px 15px rgba(15, 27, 61, 0.08);
    opacity: 1;
}

/* =========================================================
   Header
   ========================================================= */

.cs-toast-header {
    min-height: 100px;
    padding: 18px 70px 50px;
    border: 0;
    background:
        radial-gradient(
            circle at 15% 50%,
            rgba(255,255,255,0.08) 0,
            rgba(255,255,255,0) 35%
        ),
        linear-gradient(
            135deg,
            var(--bs-navy) 0%,
            var(--bs-navy) 55%,
            var(--bs-navy) 100%
        );

    color: var(--bs-white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Decorative curved bottom edge */
.cs-toast-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 24px;
    background: var(--bs-white);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: translateY(9%);
}

/* Subtle header decoration */

.cs-toast-header::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 100px;
    right: -80px;
    top: -80px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow:
        0 0 0 20px rgba(255,255,255,0.02),
        0 0 0 40px rgba(255,255,255,0.015);

    pointer-events: none;
}

/* =========================================================
   Title
   ========================================================= */

.cs-toast-title {
    position: relative;
    z-index: 2;
    color: var(--bs-white);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
    text-align: center;
}

/* Gold underline */

.cs-toast-title::after {
    content: "";
    position: absolute;
    width: 70px;
    height: 4px;
    background: var(--bs-grey);
    border-radius: 10px;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
}

/* =========================================================
   Close Button
   ========================================================= */

.cs-toast-close {
    position: absolute;
    right: 27px;
    top: 27px;
    z-index: 3;
    width: 32px;
    height: 32px;
    padding: 0;
    background-size: 18px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.cs-toast-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* =========================================================
   Brand Section
   ========================================================= */

.cs-toast-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Logo */

.cs-toast-logo {
    position: relative;
    z-index: 2;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* =========================================================
   Divider
   ========================================================= */

.cs-toast-divider {
    height: 100px;
    width: 2px;
    background: var(--bs-grey);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gold center decoration */

.cs-toast-divider span {
    position: absolute;
    width: 9px;
    height: 9px;
    background: var(--bs-navy);
    transform: rotate(45deg);
}

/* =========================================================
   Message Section
   ========================================================= */

.cs-toast-message-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding-left: 18px;
}

/* =========================================================
   Message Content
   ========================================================= */

.cs-toast-message-content {
    flex: 1;
}

/* Main Message */

.cs-toast-message {
    color: var(--bs-dark-navy);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
    text-align: left;
}

/* =========================================================
   Bootstrap Toast Animation Enhancement
   ========================================================= */

.cs-toast.show {
    animation: csToastIn 0.45s ease forwards;
}

@keyframes csToastIn {

    from {
        opacity: 0;
        transform: translateX(35px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 767.98px) {

    .cs-toast {
        width: 100%;
    }

    .cs-toast-close {
        right: 17px;
        top: 20px;
    }

    .cs-toast-message-wrapper {
        padding-left: 0;

        margin-top: 20px;
    }

}