/* Toast Notification Styles */

#ssm-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.ssm-toast {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    position: relative;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-in-out;
    pointer-events: auto;
    max-width: 100%;
    min-width: 300px;
}

.ssm-toast-show {
    opacity: 1;
    transform: translateX(0);
}

.ssm-toast-close {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    background: transparent !important;
    border: none !important;
    font-size: 24px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    color: rgba(0, 0, 0, 0.5) !important;
    padding: 4px 8px !important;
    transition: color 0.2s !important;
}

.ssm-toast-close:hover {
    color: rgba(0, 0, 0, 0.8) !important;
}

.ssm-toast-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.ssm-toast-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ssm-toast-text-container {
    flex: 1;
    padding-right: 20px;
}

.ssm-toast-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.ssm-toast-ago {
    font-size: 12px;
    color: #666;
    font-style: italic;
    text-align: right;
}

.ssm-toast-cta {
    display: inline-block;
    text-decoration: none !important;
    padding: 8px 16px !important;
    border-radius: 60px !important;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
    text-align: center;

    background-color: transparent;
    fill: #FFFFFF !important;
    color: #FFFFFF !important;

    background-image: linear-gradient(90deg, #1626B0 50%, #7795EE 100%);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    #ssm-toast-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .ssm-toast {
        min-width: auto;
        width: 100%;
    }

    .ssm-toast-avatar {
        width: 40px;
        height: 40px;
    }

    .ssm-toast-text {
        font-size: 13px;
    }

    .ssm-toast-cta {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Dark background support */
.ssm-toast[style*="background-color: #000"],
.ssm-toast[style*="background-color: rgb(0, 0, 0)"],
.ssm-toast[style*="background-color: #333"] {
    color: #ffffff;
}

.ssm-toast[style*="background-color: #000"] .ssm-toast-text,
.ssm-toast[style*="background-color: rgb(0, 0, 0)"] .ssm-toast-text,
.ssm-toast[style*="background-color: #333"] .ssm-toast-text {
    color: #ffffff;
}

.ssm-toast[style*="background-color: #000"] .ssm-toast-ago,
.ssm-toast[style*="background-color: rgb(0, 0, 0)"] .ssm-toast-ago,
.ssm-toast[style*="background-color: #333"] .ssm-toast-ago {
    color: #cccccc;
}

.ssm-toast[style*="background-color: #000"] .ssm-toast-close,
.ssm-toast[style*="background-color: rgb(0, 0, 0)"] .ssm-toast-close,
.ssm-toast[style*="background-color: #333"] .ssm-toast-close {
    color: rgba(255, 255, 255, 0.7) !important;
}

.ssm-toast[style*="background-color: #000"] .ssm-toast-close:hover,
.ssm-toast[style*="background-color: rgb(0, 0, 0)"] .ssm-toast-close:hover,
.ssm-toast[style*="background-color: #333"] .ssm-toast-close:hover {
    color: rgba(255, 255, 255, 1) !important;
}
