/* Extracted from resources/views/components/sales-proof-popup.blade.php */
.sp-popup-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 10000;
    max-width: 380px;
    width: calc(100% - 48px);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
.sp-popup-container.sp-popup-hidden {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    pointer-events: none;
}
.sp-popup-card {
    position: relative;
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    padding: 18px;
    overflow: hidden;
    pointer-events: auto;
}

/* Support existing Neobrutalism theme shadows & border styles on main app views */
[data-bs-theme="dark"] .sp-popup-card {
    background: #11141d;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.sp-popup-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    font-weight: bold;
}
.sp-popup-close-btn:hover {
    background: #e2e8f0;
    color: #334155;
}
[data-bs-theme="dark"] .sp-popup-close-btn {
    background: #1e293b;
    color: #94a3b8;
}
[data-bs-theme="dark"] .sp-popup-close-btn:hover {
    background: #334155;
    color: #f8fafc;
}

.sp-popup-body {
    display: flex;
    align-items: flex-start;
}
.sp-popup-icon-box {
    background: #2563eb;
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}
.sp-popup-content {
    flex-grow: 1;
    padding-right: 16px;
    text-align: left;
}
.sp-popup-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}
.sp-popup-buyer {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.2;
}
[data-bs-theme="dark"] .sp-popup-buyer {
    color: #f8fafc;
}
.sp-popup-verified-badge {
    background: #10b981;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.sp-popup-time {
    font-size: 0.825rem;
    color: #64748b;
    margin-bottom: 6px;
}
[data-bs-theme="dark"] .sp-popup-time {
    color: #94a3b8;
}
.sp-popup-product-pill {
    display: inline-block;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
}
[data-bs-theme="dark"] .sp-popup-product-pill {
    background: rgba(37, 99, 235, 0.15);
    color: #93c5fd;
    border-color: rgba(37, 99, 235, 0.3);
}
.sp-popup-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sp-popup-meta-item {
    font-size: 0.75rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
[data-bs-theme="dark"] .sp-popup-meta-item {
    color: #94a3b8;
}
.sp-popup-payment-tag {
    background: #ecfdf5;
    color: #065f46;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.725rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
[data-bs-theme="dark"] .sp-popup-payment-tag {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}
.sp-popup-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #2563eb;
    width: 100%;
    transition: width linear;
    border-radius: 0 0 1rem 1rem;
}

@media (max-width: 576px) {
    .sp-popup-container {
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: calc(100% - 32px);
        max-width: none;
    }
}
