.ecpn-toast-wrap,
.ecpn-toast-wrap * {
    box-sizing: border-box;
}

.ecpn-toast-wrap {
    position: fixed;
    z-index: 99990;
    bottom: 18px;
    width: min(360px, calc(100vw - 28px));
    pointer-events: none;
    font-family: inherit;
}

.ecpn-toast-wrap.ecpn-bottom-left {
    left: 18px;
}

.ecpn-toast-wrap.ecpn-bottom-right {
    right: 18px;
}

.ecpn-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 13px 14px 13px 13px;
    border: 1px solid rgba(109, 40, 217, .13);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 44px rgba(31, 22, 53, .14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #24183b;
    opacity: 0;
    transform: translateY(12px) scale(.98);
    transition: opacity .28s ease, transform .28s ease;
    pointer-events: none;
}

.ecpn-toast.ecpn-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ecpn-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 39px;
    height: 39px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6d28d9, #14b8a6);
    color: #ffffff;
    font-size: 19px;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(109, 40, 217, .2);
}

.ecpn-content {
    min-width: 0;
    flex: 1 1 auto;
    padding-top: 1px;
}

.ecpn-title {
    margin: 0 0 3px;
    font-size: 13.5px;
    line-height: 1.35;
    font-weight: 800;
    color: #24183b;
}

.ecpn-meta {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.38;
    color: #6a6079;
}

.ecpn-product {
    display: inline;
    font-weight: 800;
    color: #6d28d9;
}

.ecpn-close {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    color: #8a819b;
    width: 24px;
    height: 24px;
    margin: -4px -5px 0 0;
    padding: 0;
    border-radius: 999px;
    cursor: pointer;
    pointer-events: auto;
    font-size: 18px;
    line-height: 22px;
    text-align: center;
}

.ecpn-close:hover,
.ecpn-close:focus {
    background: rgba(109, 40, 217, .08);
    color: #24183b;
    outline: none;
}

@media (max-width: 600px) {
    .ecpn-toast-wrap {
        left: 12px !important;
        right: 12px !important;
        width: auto;
        max-width: calc(100vw - 24px);
    }

    .ecpn-toast-wrap.ecpn-mobile-top-center {
        top: calc(var(--ecpn-mobile-dynamic-top, var(--ecpn-mobile-top-offset, 14px)) + env(safe-area-inset-top, 0px));
        bottom: auto;
    }

    .ecpn-toast-wrap.ecpn-mobile-bottom-above-cta {
        top: auto;
        bottom: var(--ecpn-mobile-bottom-offset, 104px);
    }

    .ecpn-toast-wrap.ecpn-mobile-top-center .ecpn-toast {
        transform: translateY(-10px) scale(.98);
    }

    .ecpn-toast-wrap.ecpn-mobile-top-center .ecpn-toast.ecpn-show {
        transform: translateY(0) scale(1);
    }

    .ecpn-toast-wrap.ecpn-mobile .ecpn-toast {
        gap: 9px;
        border-radius: 16px;
        padding: 10px 11px;
        box-shadow: 0 12px 34px rgba(31, 22, 53, .13);
    }

    .ecpn-toast-wrap.ecpn-mobile .ecpn-icon {
        width: 32px;
        height: 32px;
        border-radius: 12px;
        font-size: 16px;
    }

    .ecpn-toast-wrap.ecpn-mobile .ecpn-title {
        margin-bottom: 2px;
        font-size: 12.8px;
        line-height: 1.28;
    }

    .ecpn-toast-wrap.ecpn-mobile .ecpn-meta {
        font-size: 11.8px;
        line-height: 1.32;
    }

    .ecpn-toast-wrap.ecpn-mobile .ecpn-close {
        width: 22px;
        height: 22px;
        margin: -5px -5px 0 0;
        font-size: 17px;
        line-height: 20px;
    }

    body.admin-bar .ecpn-toast-wrap.ecpn-mobile-top-center {
        top: calc(var(--ecpn-mobile-dynamic-top, var(--ecpn-mobile-top-offset, 14px)) + env(safe-area-inset-top, 0px) + 46px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ecpn-toast {
        transition: none;
        transform: none !important;
    }
}
