/* ──────────────────────────────────────
   FOMO Popup Notification Styles
   ────────────────────────────────────── */

#fomo-popup-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    pointer-events: none;
    max-width: 360px;
    width: calc(100% - 40px);
}

.fomo-popup {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.08);
    padding: 14px 52px 14px 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: 0;
    transform: translateX(-30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #28a745;
    position: relative;
}

.fomo-popup--viewers {
    border-left-color: #0d6efd;
}

.fomo-popup--custom {
    border-left-color: #fd7e14;
}

.fomo-popup.fomo-popup--visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.fomo-popup.fomo-popup--hiding {
    opacity: 0;
    transform: translateX(-30px) scale(0.95);
}

.fomo-popup__thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: block;
}

.fomo-popup__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fomo-popup__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.fomo-popup__icon--sale {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.fomo-popup__icon--viewers {
    background: linear-gradient(135deg, #007bff, #6610f2);
}

.fomo-popup__icon--custom {
    background: linear-gradient(135deg, #fd7e14, #e83e8c);
}

.fomo-popup__body {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.fomo-popup__message {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.45;
    margin: 0;
    word-wrap: break-word;
}

.fomo-popup__product-title {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #0d6efd;
    text-decoration: none;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fomo-popup__product-title:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.fomo-popup__time {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    display: block;
}

.fomo-popup__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.fomo-popup__close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.05);
}

.fomo-popup__close:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 480px) {
    #fomo-popup-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        max-width: none;
    }

    .fomo-popup {
        padding: 12px 48px 12px 12px;
    }

    .fomo-popup__message {
        font-size: 12px;
    }

    .fomo-popup__thumb,
    .fomo-popup__icon {
        width: 50px;
        height: 50px;
    }

    .fomo-popup__close {
        width: 32px;
        height: 32px;
    }
}
