/**
 * ==========================================================
 * ShopCore Recent Sales Toast Notification CSS
 * File: assets/css/sales-notification.css
 * ==========================================================
 */

.sc-sales-toast-container {
    position: fixed;
    z-index: 99998;
    pointer-events: none;
    bottom: 24px;
    transition: all 0.3s ease;
}

.sc-sales-toast-container.sc-pos-bottom_left {
    left: 24px;
}

.sc-sales-toast-container.sc-pos-bottom_right {
    right: 24px;
    bottom: 90px; /* Sits comfortably above floating WhatsApp button */
}

.sc-sales-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
    max-width: 350px;
    min-width: 280px;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(25px) scale(0.96);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.sc-sales-toast.sc-toast-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.sc-toast-img-wrap {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.sc-toast-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.sc-toast-img-wrap:hover .sc-toast-img {
    transform: scale(1.08);
}

.sc-toast-content {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 14px;
}

.sc-toast-header {
    font-size: 11.5px;
    color: #64748b;
    margin-bottom: 2px;
    line-height: 1.3;
}

.sc-toast-header strong {
    color: #1e293b;
    font-weight: 600;
}

.sc-toast-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.sc-toast-title:hover {
    color: #ff0000;
}

.sc-toast-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 10.5px;
    line-height: 1;
}

.sc-toast-time {
    color: #94a3b8;
}

.sc-toast-verified {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #10b981;
    font-weight: 600;
    font-size: 10px;
    background: rgba(16, 185, 129, 0.08);
    padding: 2px 6px;
    border-radius: 9999px;
}

.sc-toast-verified i {
    font-size: 9px;
}

.sc-toast-close-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background-color 0.2s ease;
    outline: none;
}

.sc-toast-close-btn:hover {
    color: #ef4444;
    background-color: #fee2e2;
}

.sc-toast-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2.5px;
    background: linear-gradient(90deg, #ff0000, #ff4d4d);
    width: 0%;
    transition: width linear;
}

@media (max-width: 576px) {
    .sc-sales-toast-container {
        left: 12px !important;
        right: 12px !important;
        bottom: 16px !important;
    }

    .sc-sales-toast {
        max-width: 100%;
        min-width: auto;
        padding: 9px 12px;
    }

    .sc-toast-img-wrap {
        width: 46px;
        height: 46px;
    }

    .sc-toast-title {
        font-size: 12.5px;
    }
}
