/* Sales Notification Styles */

/* Popup Container */
.sales-popup {
    position: fixed;
    z-index: 999999;
    max-width: 350px;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    display: none;
}

/* Social Proof Popup Style */
.convertrix-sales-popup {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 320px;
}

.convertrix-sales-popup .name {
    color: #1e40af;
    font-weight: 600;
}

.convertrix-sales-popup .action {
    color: #475569;
}

.convertrix-sales-popup .location,
.convertrix-sales-popup .time {
    color: #64748b;
    font-size: 13px;
}

.convertrix-sales-popup .brand {
    font-size: 12px;
    color: #0f172a;
    font-weight: bold;
}

/* Popup Content */
.sales-popup-content {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sales-popup-content p {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.4;
}

.sales-popup-content strong,
.sales-popup-content .product {
    color: #1e40af;
    font-weight: 600;
    font-size: 15px;
}

.sales-popup-content .action {
    color: #475569;
    font-weight: 500;
}

.sales-popup-content .location,
.sales-popup-content .time-ago {
    color: #64748b;
    font-size: 13px;
    display: inline-block;
    margin-right: 8px;
}

/* Avatar Styles */
.popup-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E3F2FD;
    flex-shrink: 0;
}

.popup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Brand Label */
.by-convertrix-label {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Close Button */
.sales-popup-close {
    position: absolute;
    right: -8px;
    top: -8px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 14px;
    color: #64748b;
    transition: all 0.2s ease;
}

.sales-popup-close:hover {
    color: #1e40af;
    transform: rotate(90deg);
}

/* Position Classes */
.position-bottom-right {
    bottom: 20px;
    right: 20px;
}

.position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.position-top-right {
    top: 20px;
    right: 20px;
}

.position-top-left {
    top: 20px;
    left: 20px;
}

/* Animation Classes */
.animation-slide-in {
    animation: slideIn 0.3s ease-out;
}

.animation-fade {
    animation: fadeIn 0.3s ease-out;
}

.animation-zoom {
    animation: zoomIn 0.3s ease-out;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .sales-popup {
        max-width: calc(100% - 20px);
        left: 10px;
        right: 10px;
    }
    
    .sales-popup-content {
        margin: 5px;
        padding: 12px;
    }
    
    .popup-avatar {
        width: 32px;
        height: 32px;
    }
    
    .buyer-name, .product {
        font-size: 14px;
    }
    
    .by-convertrix-label, .time-ago {
        font-size: 11px;
    }
}

/* Style Variants */
.popup-style-2 .popup-avatar {
    background: #FEF3C7;
}

.popup-style-2 strong {
    color: #B45309;
}

.popup-style-2 .action {
    color: #92400E;
}

.popup-style-2 .by-convertrix-label {
    color: #78350F;
}

.popup-style-3 .popup-avatar {
    background: #E0E7FF;
}

.popup-style-3 strong {
    color: #3730A3;
}

.popup-style-3 .action {
    color: #4338CA;
}

.popup-style-3 .by-convertrix-label {
    color: #1E1B4B;
}

.buyer-name {
    color: #2196F3;
    font-weight: 600;
}

.product {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.product:hover {
    color: #2196F3;
    text-decoration: underline;
}

/* Base Popup Styles */
.convert-popup {
    position: fixed;
    z-index: 999999;
    max-width: 350px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: none;
}

/* Social Proof Style */
.convert-popup-social-proof {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.convert-popup-social-proof .popup-avatar {
    background: #E3F2FD;
    border-radius: 50%;
    padding: 4px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.convert-popup-social-proof .buyer-name {
    color: #1e40af;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
}

.convert-popup-social-proof .product {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.convert-popup-social-proof .product:hover {
    color: #1e40af;
    text-decoration: underline;
}

.convert-popup-social-proof .time-ago {
    color: #64748b;
    font-size: 13px;
    margin-top: 4px;
}

/* Minimal Style */
.convert-popup-minimal {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    padding: 12px 16px;
    text-align: left;
}

.convert-popup-minimal .buyer-name {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.convert-popup-minimal .product {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 13px;
}

.convert-popup-minimal .action {
    color: #fbbf24;
    font-size: 13px;
    margin: 0 4px;
}

.convert-popup-minimal .time-ago {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    text-align: left;
}

/* Rounded Style */
.convert-popup-rounded {
    background: #f8fafc;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.convert-popup-rounded .popup-avatar {
    background: #E0E7FF;
    border-radius: 50%;
    padding: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.convert-popup-rounded .buyer-name {
    color: #3730A3;
    font-weight: 600;
    font-size: 15px;
}

.convert-popup-rounded .product {
    color: #4338CA;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.convert-popup-rounded .time-ago {
    color: #6366F1;
    font-size: 13px;
    margin-top: 2px;
}

/* Simple Style */
.convert-popup-simple {
    background: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 320px;
    font-size: 15px;
    line-height: 1.4;
}

.convert-popup-simple .buyer-name {
    color: #1e293b;
    font-weight: 500;
}

.convert-popup-simple .product {
    color: #475569;
    text-decoration: none;
}

.convert-popup-simple .popup-icon {
    margin-right: 4px;
}

.convert-popup-simple .popup-time {
    font-size: 13px;
    color: #6c757d;
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.convert-popup-simple .popup-rating {
    color: #f39c12;
    font-size: 13px;
}

/* Common Elements */
.convert-popup-close {
    position: absolute;
    right: -8px;
    top: -8px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 14px;
    color: #64748b;
    transition: all 0.2s ease;
}

.convert-popup-close:hover {
    color: #1e40af;
    transform: rotate(90deg);
}

/* Position Classes */
.convert-popup.position-bottom-right { bottom: 20px; right: 20px; }
.convert-popup.position-bottom-left { bottom: 20px; left: 20px; }
.convert-popup.position-top-right { top: 20px; right: 20px; }
.convert-popup.position-top-left { top: 20px; left: 20px; }

/* Animation Classes */
.convert-popup.animation-slide-in {
    animation: slideIn 0.3s ease-out;
}

.convert-popup.animation-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.convert-popup.animation-zoom {
    animation: zoomIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Styles */
@media (max-width: 480px) {
    .convert-popup {
        max-width: calc(100% - 32px);
        margin: 0 16px;
    }
    
    .convert-popup-social-proof,
    .convert-popup-rounded {
        padding: 12px;
    }
    
    .convert-popup-social-proof .popup-avatar,
    .convert-popup-rounded .popup-avatar {
        width: 32px;
        height: 32px;
    }
    
    .convert-popup-social-proof .buyer-name,
    .convert-popup-rounded .buyer-name {
        font-size: 14px;
    }
    
    .convert-popup-social-proof .product,
    .convert-popup-rounded .product {
        font-size: 13px;
    }
    
    .convert-popup-social-proof .time-ago,
    .convert-popup-rounded .time-ago {
        font-size: 12px;
    }
    
    .convert-popup.position-bottom-right,
    .convert-popup.position-bottom-left {
        bottom: 16px;
    }
    
    .convert-popup.position-top-right,
    .convert-popup.position-top-left {
        top: 16px;
    }
} 