| 1 |
.my_account_subscrpt .order-status { |
| 2 |
min-width: 100px; |
| 3 |
} |
| 4 |
|
| 5 |
/* |
| 6 |
* Legacy status badge. Dedicated `subscrpt-legacy-status` base + |
| 7 |
* `subscrpt-legacy-status--{name}` colour modifiers. Self-contained class names |
| 8 |
* (no broad `[class*="subscrpt-"]` attribute selector) so badges never collide |
| 9 |
* with BEM component spans that merely share the `subscrpt-` prefix. |
| 10 |
*/ |
| 11 |
span.subscrpt-legacy-status { |
| 12 |
background: #bfdbfe; |
| 13 |
color: #1e40af; |
| 14 |
font-weight: 600; |
| 15 |
font-size: 12px; |
| 16 |
text-transform: capitalize; |
| 17 |
padding: 8px 10px; |
| 18 |
border-radius: 5px; |
| 19 |
} |
| 20 |
|
| 21 |
span.subscrpt-legacy-status--pending { |
| 22 |
background: #dbeafe; |
| 23 |
color: #1e40af; |
| 24 |
} |
| 25 |
|
| 26 |
span.subscrpt-legacy-status--active { |
| 27 |
background: #bbf7d0; |
| 28 |
color: #166534; |
| 29 |
} |
| 30 |
|
| 31 |
span.subscrpt-legacy-status--expired { |
| 32 |
background: #fecaca; |
| 33 |
color: #991b1b; |
| 34 |
} |
| 35 |
|
| 36 |
span.subscrpt-legacy-status--cancelled { |
| 37 |
background: #e2e8f0; |
| 38 |
color: #475569; |
| 39 |
} |
| 40 |
|
| 41 |
span.subscrpt-legacy-status--pe_cancelled, |
| 42 |
span.subscrpt-legacy-status--on-hold { |
| 43 |
background: #ffedd5; |
| 44 |
color: #b45309; |
| 45 |
} |
| 46 |
|
| 47 |
span.subscrpt-legacy-status--draft { |
| 48 |
background: #f3f3f3; |
| 49 |
color: #888; |
| 50 |
} |
| 51 |
|
| 52 |
/* Grace Period */ |
| 53 |
span.grace-active { |
| 54 |
position: relative; |
| 55 |
padding-right: 16px; |
| 56 |
} |
| 57 |
|
| 58 |
span.grace-icon { |
| 59 |
position: absolute; |
| 60 |
top: -5px; |
| 61 |
right: -5px; |
| 62 |
background: #fffbeb; |
| 63 |
border-radius: 50%; |
| 64 |
padding: 0px; |
| 65 |
height: 20px; |
| 66 |
width: 20px; |
| 67 |
} |
| 68 |
|
| 69 |
span.grace-icon .dashicons { |
| 70 |
color: #f59e0b; |
| 71 |
} |
| 72 |
|
| 73 |
span.grace-icon::after { |
| 74 |
content: attr(data-tooltip); |
| 75 |
position: absolute; |
| 76 |
top: -28px; |
| 77 |
right: 50%; |
| 78 |
transform: translateX(50%); |
| 79 |
background: #fef3c7; |
| 80 |
color: #b45309; |
| 81 |
font-size: 11px; |
| 82 |
padding: 4px 6px; |
| 83 |
border-radius: 3px; |
| 84 |
white-space: nowrap; |
| 85 |
opacity: 0; |
| 86 |
pointer-events: none; |
| 87 |
transition: opacity 0.2s ease; |
| 88 |
} |
| 89 |
span.grace-icon:hover::after { |
| 90 |
opacity: 1; |
| 91 |
} |
| 92 |
|