#wisecampaign-notification-container {
    position: fixed;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s, visibility 0.5s, transform 0.5s;
}

#wisecampaign-notification-container.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Base Popup Styles */
#wisecampaign-notification-container .wisecampaign-notification-popup {
    display: inline-flex;
    align-items: stretch;
    width: 380px;
    min-height: 100px;
    padding: 16px 20px;
    /* Basic fallback font */
    font-family: sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

#wisecampaign-notification-container .wisecampaign-notification-popup img {
    /* CHANGED from 80px */
    width: 100px;
    /* CHANGED from 80px */
    height: 100px;
    /* CHANGED from 15px */
    margin-right: 20px;
    object-fit: cover;
    align-self: center;
}

/* Template Specific Styles */
#wisecampaign-notification-container .wisecampaign-notification-popup[data-template="template_1"] img {
    border-radius: 8px;
}

#wisecampaign-notification-container .wisecampaign-notification-popup[data-template="template_2"] {
    border-radius: 50px !important;
}
#wisecampaign-notification-container .wisecampaign-notification-popup[data-template="template_2"] img {
    border-radius: 50% !important;
}

#wisecampaign-notification-container .wisecampaign-notification-popup[data-template="template_3"] {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(119, 110, 255, 0.08) !important;
}
#wisecampaign-notification-container .wisecampaign-notification-popup[data-template="template_3"] img {
    border-radius: 12px !important;
}

#wisecampaign-notification-container .wisecampaign-notification-popup[data-template="template_4"] {
    width: 320px;
    min-height: 80px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
#wisecampaign-notification-container .wisecampaign-notification-popup[data-template="template_4"] img {
    width: 65px;
    height: 65px;
    margin-right: 12px;
    border-radius: 6px !important;
}
#wisecampaign-notification-container .wisecampaign-notification-popup[data-template="template_4"] .product-name {
    font-size: 16px;
    font-weight: 700;
}

#wisecampaign-notification-container .wisecampaign-notification-popup[data-template="template_5"] {
    border-left: 4px solid #776EFF !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(119, 110, 255, 0.12) !important;
}
#wisecampaign-notification-container .wisecampaign-notification-popup[data-template="template_5"] img {
    border-radius: 8px !important;
}

#wisecampaign-notification-container .wisecampaign-notification-popup[data-template="template_6"] {
    background: #0f172a !important;
    border: 1px solid #1e293b !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}
#wisecampaign-notification-container .wisecampaign-notification-popup[data-template="template_6"] .buyer-info,
#wisecampaign-notification-container .wisecampaign-notification-popup .location-info {
    color: #94a3b8 !important;
}
#wisecampaign-notification-container .wisecampaign-notification-popup[data-template="template_6"] .buyer-name {
    color: #ffffff !important;
}
#wisecampaign-notification-container .wisecampaign-notification-popup[data-template="template_6"] .product-name {
    color: #38bdf8 !important;
}
#wisecampaign-notification-container .wisecampaign-notification-popup[data-template="template_6"] .timestamp,
#wisecampaign-notification-container .wisecampaign-notification-popup .brand-credit {
    color: #64748b !important;
}
#wisecampaign-notification-container .wisecampaign-notification-popup[data-template="template_6"] img {
    border-radius: 10px !important;
    border: 1px solid #334155;
}


/* Content Layout */
#wisecampaign-notification-container .wisecampaign-notification-popup .notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    color: #333;
}

#wisecampaign-notification-container .wisecampaign-notification-popup .notification-body p,
#wisecampaign-notification-container .wisecampaign-notification-popup .notification-footer p {
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

#wisecampaign-notification-container .wisecampaign-notification-popup .buyer-info {
    font-size: 14px;
    color: #555;
}

#wisecampaign-notification-container .wisecampaign-notification-popup .buyer-name {
    font-weight: 600;
}

#wisecampaign-notification-container .wisecampaign-notification-popup .product-name {
    font-size: 22px;
    font-weight: 700;
    color: #1e1e1e;
    margin: 4px 0 !important;
    white-space: nowrap;         /* Prevents line break */
    overflow: hidden;            /* Hides overflowed text */
    text-overflow: ellipsis;     /* Adds ... at the end */
    max-width: 220px; /* Add or adjust this value as needed */
}

#wisecampaign-notification-container .wisecampaign-notification-popup .location-info {
    font-size: 13px;
    color: #555;
}

#wisecampaign-notification-container .wisecampaign-notification-popup .notification-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

#wisecampaign-notification-container .wisecampaign-notification-popup .timestamp,
#wisecampaign-notification-container .wisecampaign-notification-popup .brand-credit {
    font-size: 11px;
    color: #888;
}

/* --- Positioning --- */

/* Bottom-left corner */
#wisecampaign-notification-container.position-bottom-left {
    bottom: 45px;
    left: 40px;
}

/* Bottom-right corner */
#wisecampaign-notification-container.position-bottom-right {
    bottom: 45px;
    right: 40px;
}

/* Top-left corner */
#wisecampaign-notification-container.position-top-left {
    top: 20px;
    left: 20px;
}

/* Top-right corner */
#wisecampaign-notification-container.position-top-right {
    top: 20px;
    right: 20px;
}
/* Uploaded photos/logos (virtual orders) are shown whole rather than cropped. */
#wisecampaign-notification-container .wisecampaign-notification-popup img.is-custom {
    object-fit: contain;
    background: #fff;
}

/* Small screens: the 380px popup plus its corner offset is wider than a phone, so it spans the screen instead. */
@media (max-width: 480px) {
    #wisecampaign-notification-container[class*="position-"] {
        left: 12px;
        right: 12px;
    }

    #wisecampaign-notification-container .wisecampaign-notification-popup[data-template] {
        width: 100%;
        box-sizing: border-box;
    }

    #wisecampaign-notification-container .wisecampaign-notification-popup[data-template] img {
        width: 72px;
        height: 72px;
        margin-right: 14px;
    }
}
