/* ==========================================================================
   Turnpike Campaign Access - Premium Frontend Styles
   ========================================================================== */

/* Campaign Discount Badge on Products / Cart */
.tp-campaign-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    margin: 6px 0;
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.08);
}

.tp-campaign-discount-badge .badge-icon {
    font-size: 14px;
}

/* Cart Item Campaign Info */
.tp-campaign-cart-info {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

/* Campaign Auto-Added Toast Notification */
.tp-campaign-toast-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    max-width: 380px;
    width: calc(100% - 48px);
    pointer-events: auto;
    animation: tpToastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tp-campaign-toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #0f172a;
    color: #f8fafc;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3), 0 8px 10px -6px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.tp-campaign-toast-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tp-campaign-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #10b981;
    color: #ffffff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.tp-campaign-toast-message {
    font-size: 13px;
    line-height: 1.4;
    color: #e2e8f0;
}
.tp-campaign-toast-message strong {
    color: #ffffff;
    font-weight: 600;
}

.tp-campaign-toast-btn {
    display: inline-flex;
    align-items: center;
    background: #3b82f6;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s ease;
    flex-shrink: 0;
}
.tp-campaign-toast-btn:hover {
    background: #2563eb;
    color: #ffffff !important;
}

.tp-campaign-toast-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    margin-left: 2px;
    transition: color 0.15s ease;
}
.tp-campaign-toast-close:hover {
    color: #ffffff;
}

@keyframes tpToastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
