/**
 * Cartt Social Proof Styles
 * @since 1.4.0
 */

/* Popup notification */
.cartt-sp-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99998;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 14px 18px;
    max-width: 320px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.cartt-sp-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.cartt-sp-popup.position-right {
    left: auto;
    right: 20px;
}

.cartt-sp-popup.position-top-left {
    bottom: auto;
    top: 20px;
}

.cartt-sp-popup.position-top-right {
    bottom: auto;
    top: 20px;
    left: auto;
    right: 20px;
}

.cartt-sp-popup-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cartt-sp-popup-image {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.cartt-sp-popup-text {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
}

.cartt-sp-popup-name {
    font-weight: 600;
    color: #000;
}

.cartt-sp-popup-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.cartt-sp-popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.cartt-sp-popup-close:hover {
    color: #333;
}

/* Inline social proof badges */
.cartt-social-proof {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    margin: 8px 0;
}

.cartt-social-proof .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #999;
}

.cartt-stock-critical {
    color: #e74c3c;
}

.cartt-stock-critical .dashicons {
    color: #e74c3c;
}

.cartt-stock-low {
    color: #f39c12;
}

.cartt-stock-low .dashicons {
    color: #f39c12;
}

/* Product page social proof */
.cartt-product-social-proof {
    margin: 16px 0;
    padding: 12px 16px;
    background: #f9f9f9;
    border-radius: 6px;
    font-size: 13px;
}

.cartt-product-social-proof .count {
    font-weight: 600;
    color: #000;
}

/* Urgency countdown */
.cartt-urgency-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff3cd;
    border-radius: 4px;
    font-size: 13px;
    color: #856404;
}

.cartt-urgency-timer .time {
    font-weight: 700;
    font-family: monospace;
}
