/**
 * YukPeduli Social Proof Popup Styles
 */
.yp-social-proof-container {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 380px;
    width: calc(100% - 32px);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Positions */
.yp-social-proof-container.yp-pos-bottom-left {
    bottom: 24px;
    left: 24px;
}
.yp-social-proof-container.yp-pos-bottom-right {
    bottom: 24px;
    right: 24px;
}
.yp-social-proof-container.yp-pos-top-left {
    top: 24px;
    left: 24px;
}
.yp-social-proof-container.yp-pos-top-right {
    top: 24px;
    right: 24px;
}

/* Toast Card */
.yp-social-proof-toast {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 16px 12px 14px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
    pointer-events: auto;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit !important;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.yp-social-proof-container.yp-pos-top-left .yp-social-proof-toast,
.yp-social-proof-container.yp-pos-top-right .yp-social-proof-toast {
    transform: translateY(-20px) scale(0.96);
}

.yp-social-proof-toast.yp-active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.yp-social-proof-toast:hover {
    box-shadow: 0 14px 30px -4px rgba(15, 23, 42, 0.16), 0 10px 12px -5px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

/* Thumbnail / Avatar */
.yp-toast-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.yp-toast-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yp-toast-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
}

/* Content */
.yp-toast-body {
    flex: 1;
    min-width: 0;
}

.yp-toast-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
    padding-right: 24px; /* Memberi ruang aman agar waktu tidak tertutup tombol close */
}

.yp-donor-name {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.yp-toast-time {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    line-height: 1;
    flex-shrink: 0;
}

.yp-toast-action {
    font-size: 13px;
    color: #475569;
    line-height: 1.35;
    margin-bottom: 2px;
}

.yp-toast-amount {
    font-weight: 700;
    color: #10b981;
}

.yp-toast-campaign {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.yp-toast-notes {
    margin-top: 4px;
    font-size: 11px;
    font-style: italic;
    color: #64748b;
    background: #f8fafc;
    padding: 3px 6px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Verified Badge Icon */
.yp-verified-badge {
    display: inline-block;
    color: #3b82f6;
    margin-left: 3px;
    vertical-align: middle;
}

/* Close Button */
.yp-toast-close {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
    box-sizing: border-box !important;
}

.yp-toast-close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    transform: scale(1.08) !important;
}

/* Progress bar timer */
.yp-toast-timer {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 3px !important;
    background: #10b981 !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
    width: 100% !important;
    transform-origin: left !important;
    transform: scaleX(1);
    z-index: 5 !important;
    pointer-events: none !important;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .yp-social-proof-container {
        max-width: 100%;
        width: calc(100% - 24px);
    }
    .yp-social-proof-container.yp-pos-bottom-left,
    .yp-social-proof-container.yp-pos-bottom-right {
        bottom: 12px;
        left: 12px;
        right: 12px;
    }
    .yp-social-proof-container.yp-pos-top-left,
    .yp-social-proof-container.yp-pos-top-right {
        top: 12px;
        left: 12px;
        right: 12px;
    }
}

