/* =========================================================
   Pareto Couponing — My Coupons page styles
   ========================================================= */

.pareto-coupons-list {
    display: grid;
    gap: 16px;
}

.pareto-coupon-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #fff;
}

.pareto-coupon-card.status-active  { border-left: 4px solid #4caf50; }
.pareto-coupon-card.status-expired { border-left: 4px solid #f44336; opacity: 0.65; }
.pareto-coupon-card.status-used    { border-left: 4px solid #9e9e9e; opacity: 0.65; }

.pareto-coupon-info    { flex: 1; min-width: 200px; }

.pareto-coupon-code-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.pareto-coupon-code {
    font-family: monospace;
    font-size: 1.3em;
    font-weight: 700;
    letter-spacing: 1px;
    color: #333;
    cursor: pointer;
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 4px 0 0 4px;
    display: inline-block;
    user-select: all;
    -webkit-user-select: all;
}

.pareto-coupon-code:hover { background: #e8e8e8; }

.pareto-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-left: none;
    border-radius: 0 4px 4px 0;
    padding: 6px 10px;
    cursor: pointer;
    color: #666;
    font-size: 0.85em;
    transition: background 0.15s, color 0.15s;
    height: 100%;
}

.pareto-copy-btn:hover        { background: #e8e8e8; color: #333; }
.pareto-copy-btn.copied        { background: #e8f5e9; color: #2e7d32; }
.pareto-copy-btn svg           { width: 16px; height: 16px; }

.pareto-coupon-copied {
    display: none;
    font-size: 0.8em;
    color: #4caf50;
    margin-left: 8px;
}

.pareto-coupon-meta {
    margin-top: 6px;
    font-size: 0.9em;
    color: #666;
}

.pareto-coupon-badge {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.badge-active  { background: #e8f5e9; color: #2e7d32; }
.badge-expired { background: #ffebee; color: #c62828; }
.badge-used    { background: #f5f5f5; color: #616161; }

.pareto-coupon-source {
    font-size: 0.8em;
    color: #999;
    margin-top: 4px;
}

.pareto-coupon-discount {
    font-size: 1.4em;
    font-weight: 700;
    white-space: nowrap;
}

.pareto-coupon-expiry-soon {
    color: #e65100;
    font-weight: 600;
}
