.cp-dyn-toast {
    --accent: #ffffff;
    --accent-rgb: 255, 255, 255;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            #151619 0%,
            #0c0d10 45%,
            #08090b 100%
        );
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 26px 26px 0 0;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.42),
        0 4px 12px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.075),
        inset 0 -1px 0 rgba(255, 255, 255, 0.018);
    transition:
        transform 0.4s cubic-bezier(0.1, 0.9, 0.2, 1), 
        opacity 0.3s ease-out,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
    opacity: 0;
    transform: translateY(50px);
    pointer-events: none;
}


.cp-dyn-toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.cp-dyn-toast.hide {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease-in, 
                opacity 0.3s ease-in;
}


.cp-dyn-toast.toast-md {
    padding: 17px 19px;
}

.cp-dyn-toast.toast-lg {
    padding: 22px;
}

.cp-dyn-toast.toast-lg .toast-content {
    display: flex;
    flex-direction: column;
    align-items: start;
}


.toast-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.toast-header {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}


.toast-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.09);
    border: 1px solid rgba(var(--accent-rgb), 0.16);
    border-radius: 15px;
    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.toast-icon svg {
    width: 23px;
    height: 23px;
    display: block;
}


.toast-information {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.toast-information span {
    color: var(--accent);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    line-height: 1.3;
}

.toast-information h4 {
    margin: 0;
    color: #f5f5f7;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.5;
}



.cp-dyn-toast.success {
    --accent: #42e6a4;
    --accent-rgb: 66, 230, 164;
}


.cp-dyn-toast.error {
    --accent: #ff6673;
    --accent-rgb: 255, 102, 115;
}


.cp-dyn-toast.info {
    --accent: #65baff;
    --accent-rgb: 101, 186, 255;
}



.cp-dyn-toast.confirmation {
    --accent: #c1d82f;
    --accent-rgb: 193, 216, 47;
    border-radius: 28px;
}

.cp-dyn-toast.confirmation .toast-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 16px;
}

.cp-dyn-toast.confirmation .toast-information span {
    font-size: 10px;
}

.cp-dyn-toast.confirmation .toast-information h4 {
    font-size: 15px;
    font-weight: 650;
}


.toast-confirm {
    width: 100%;
    margin-top: 21px;
}

.confirmation-text {
    margin: 0 0 20px;
    color: #a1a2a9;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: -0.015em;
}


.confirmation-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

.confirmation-btn {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 43px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: -0.015em;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.confirmation-btn span {
    position: relative;
    z-index: 1;
}

.confirmation-btn:active {
    transform: scale(0.97);
}

.confirmation-btn.cbtn-sc {
    color: #d1d1d5;
    background: #191a1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.confirmation-btn.cbtn-sc:hover {
    background: #23242a;
    border-color: rgba(255, 255, 255, 0.13);
}

.confirmation-btn.cbtn-pr {
    color: #101207;
    background: #d2e94c;
    border: 1px solid rgba(193, 216, 47, 0.5);
    box-shadow:
        0 4px 14px rgba(193, 216, 47, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.confirmation-btn.cbtn-pr:hover {
    background: #d8ed59;
    box-shadow:
        0 5px 20px rgba(193, 216, 47, 0.2);
}

@media (max-width: 480px) {

    .toast-showcase-bg {
        padding: 20px 12px;
    }

    .toast-showcase-container {
        gap: 11px;
    }

    .cp-dyn-toast.toast-md {
        padding: 15px;
    }

    .cp-dyn-toast.toast-lg {
        padding: 18px;
    }

    .toast-icon {
        width: 41px;
        height: 41px;
        flex-basis: 41px;
    }

    .toast-information h4 {
        font-size: 12.5px;
    }

    .confirmation-text {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cp-dyn-toast,
    .confirmation-btn {
        transition: none;
    }
}
