/**
 * Themes Plugin - Modern SaaS Live Sales Notification Styles
 * Minimalist, elegant, high-converting social proof card.
 */

#gpdp-live-sales-wrap {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 99990;
    pointer-events: none;
    width: auto;
    max-width: 360px;
    transition: bottom 0.25s ease;
}

.gpdp-ls-toast {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 11px 32px 11px 11px;
    box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
    max-width: 360px;
    min-width: 280px;
    transform: translateY(20px) scale(0.96);
    opacity: 0;
    pointer-events: auto;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none !important;
    color: #0f172a !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
}

.gpdp-ls-toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.gpdp-ls-toast.hide {
    transform: translateY(14px) scale(0.96);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.gpdp-ls-toast:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px -4px rgba(32, 126, 128, 0.16), 0 0 0 1px #207e80;
    border-color: #207e80;
}

/* Product Thumbnail */
.gpdp-ls-img-wrap {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: visible;
}

.gpdp-ls-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    display: block;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.gpdp-ls-pulse-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
    animation: gpdpPulseDot 2s infinite;
}

@keyframes gpdpPulseDot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Toast Body */
.gpdp-ls-body {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.gpdp-ls-top-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}

.gpdp-ls-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 700;
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 1px 6px;
    line-height: 1.25;
}

.gpdp-ls-dot {
    color: #94a3b8;
    font-size: 11px;
}

.gpdp-ls-time {
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
}

.gpdp-ls-line {
    font-size: 12.5px;
    color: #0f172a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}

.gpdp-ls-name {
    color: #0f172a;
    font-weight: 700;
}

.gpdp-ls-loc {
    color: #64748b;
    font-size: 11.5px;
    font-weight: 500;
}

.gpdp-ls-product {
    font-size: 12px;
    color: #334155;
    margin: 1px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.gpdp-ls-action {
    color: #64748b;
    font-weight: 400;
}

.gpdp-ls-prodname {
    color: #115e59;
    font-weight: 700;
}

/* Close Button */
.gpdp-ls-close {
    position: absolute;
    top: 6px;
    right: 6px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.gpdp-ls-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

/* Ultra-thin progress countdown bar */
.gpdp-ls-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #f1f5f9;
    overflow: hidden;
}

.gpdp-ls-progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #207e80 0%, #10b981 100%);
    animation-name: gpdpCountdown;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes gpdpCountdown {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Mobile Screens */
@media (max-width: 600px) {
    #gpdp-live-sales-wrap {
        left: 12px;
        right: auto;
        bottom: 12px;
        max-width: calc(100vw - 72px);
    }
    .gpdp-ls-toast {
        max-width: 100%;
        min-width: 0;
        padding: 9px 28px 9px 9px;
        gap: 10px;
        border-radius: 12px;
    }
    .gpdp-ls-img-wrap {
        width: 42px;
        height: 42px;
    }
    .gpdp-ls-line {
        font-size: 11.5px;
    }
    .gpdp-ls-product {
        font-size: 11px;
    }
    .gpdp-ls-badge {
        font-size: 9px;
        padding: 1px 5px;
    }
    .gpdp-ls-time {
        font-size: 10px;
    }
}
