| 1 |
/* -------------------------------------------------------------------------- |
| 2 |
Status badge with dot |
| 3 |
-------------------------------------------------------------------------- */ |
| 4 |
.wpsubs-badge { |
| 5 |
display: inline-flex; |
| 6 |
align-items: center; |
| 7 |
gap: 5px; |
| 8 |
padding: 2px 9px; |
| 9 |
border-radius: 9999px; |
| 10 |
font-size: 11px; |
| 11 |
font-weight: 500; |
| 12 |
white-space: nowrap; |
| 13 |
line-height: 1.6; |
| 14 |
border: 1px solid transparent; |
| 15 |
} |
| 16 |
|
| 17 |
.wpsubs-badge__dot { |
| 18 |
width: 6px; |
| 19 |
height: 6px; |
| 20 |
border-radius: 50%; |
| 21 |
flex-shrink: 0; |
| 22 |
} |
| 23 |
|
| 24 |
.wpsubs-badge--neutral { |
| 25 |
background: var(--wpsubs-surface-muted); |
| 26 |
color: var(--wpsubs-text); |
| 27 |
border-color: var(--wpsubs-border); |
| 28 |
} |
| 29 |
|
| 30 |
/* Brand-tinted tag — deeper than the brand-light card background so it stays |
| 31 |
visible on both white and selected (peach) cards. */ |
| 32 |
.wpsubs-badge--brand { |
| 33 |
background: #ffe3d6; |
| 34 |
color: var(--wpsubs-brand-dark); |
| 35 |
border-color: #ffc4ab; |
| 36 |
} |
| 37 |
|
| 38 |
/* Grey tag for cards that already carry brand colour elsewhere (border, icon, |
| 39 |
tint). Deeper than --neutral, which washes out against the selected card's |
| 40 |
peach background. */ |
| 41 |
.wpsubs-badge--muted { |
| 42 |
background: #eceef1; |
| 43 |
color: var(--wpsubs-text-muted); |
| 44 |
border-color: #dcdfe4; |
| 45 |
} |
| 46 |
|
| 47 |
.wpsubs-badge--active { |
| 48 |
background: #dcfce7; |
| 49 |
color: #15803d; |
| 50 |
border-color: #bbf7d0; |
| 51 |
} |
| 52 |
.wpsubs-badge--active .wpsubs-badge__dot { |
| 53 |
background: #16a34a; |
| 54 |
} |
| 55 |
|
| 56 |
.wpsubs-badge--pending { |
| 57 |
background: #eff6ff; |
| 58 |
color: #1d4ed8; |
| 59 |
border-color: #bfdbfe; |
| 60 |
} |
| 61 |
.wpsubs-badge--pending .wpsubs-badge__dot { |
| 62 |
background: #3b82f6; |
| 63 |
} |
| 64 |
|
| 65 |
.wpsubs-badge--pending-cancel { |
| 66 |
background: #fefce8; |
| 67 |
color: #854d0e; |
| 68 |
border-color: #fde68a; |
| 69 |
} |
| 70 |
.wpsubs-badge--pending-cancel .wpsubs-badge__dot { |
| 71 |
background: #ca8a04; |
| 72 |
} |
| 73 |
|
| 74 |
/* Attention, not failure: something needs doing but nothing is broken. */ |
| 75 |
.wpsubs-badge--warning { |
| 76 |
background: #fefce8; |
| 77 |
color: #854d0e; |
| 78 |
border-color: #fde68a; |
| 79 |
} |
| 80 |
.wpsubs-badge--warning .wpsubs-badge__dot { |
| 81 |
background: #ca8a04; |
| 82 |
} |
| 83 |
|
| 84 |
.wpsubs-badge--cancelled { |
| 85 |
background: #f3f4f6; |
| 86 |
color: #4b5563; |
| 87 |
border-color: #e5e7eb; |
| 88 |
} |
| 89 |
.wpsubs-badge--cancelled .wpsubs-badge__dot { |
| 90 |
background: #9ca3af; |
| 91 |
} |
| 92 |
|
| 93 |
.wpsubs-badge--expired { |
| 94 |
background: #fee2e2; |
| 95 |
color: #991b1b; |
| 96 |
border-color: #fca5a5; |
| 97 |
} |
| 98 |
.wpsubs-badge--expired .wpsubs-badge__dot { |
| 99 |
background: #dc2626; |
| 100 |
} |
| 101 |
|
| 102 |
.wpsubs-badge--completed { |
| 103 |
background: #e0e7ff; |
| 104 |
color: #3730a3; |
| 105 |
border-color: #c7d2fe; |
| 106 |
} |
| 107 |
.wpsubs-badge--completed .wpsubs-badge__dot { |
| 108 |
background: #4f46e5; |
| 109 |
} |
| 110 |
|
| 111 |
.wpsubs-badge--draft { |
| 112 |
background: #f1f5f9; |
| 113 |
color: #475569; |
| 114 |
border-color: #cbd5e1; |
| 115 |
} |
| 116 |
.wpsubs-badge--draft .wpsubs-badge__dot { |
| 117 |
background: #94a3b8; |
| 118 |
} |
| 119 |
|
| 120 |
.wpsubs-badge--trash { |
| 121 |
background: #fee2e2; |
| 122 |
color: #991b1b; |
| 123 |
border-color: #fca5a5; |
| 124 |
} |
| 125 |
.wpsubs-badge--trash .wpsubs-badge__dot { |
| 126 |
background: #ef4444; |
| 127 |
} |
| 128 |
|
| 129 |
/* Small brand "PRO" pill for gating Pro-only fields/options. */ |
| 130 |
.wpsubs-badge--pro { |
| 131 |
background: var(--wpsubs-brand); |
| 132 |
color: var(--wpsubs-surface); |
| 133 |
border-color: transparent; |
| 134 |
padding: 2px 6px; |
| 135 |
border-radius: 3px; |
| 136 |
font-size: 10px; |
| 137 |
font-weight: 700; |
| 138 |
text-transform: uppercase; |
| 139 |
letter-spacing: 0.04em; |
| 140 |
} |
| 141 |
|