| @@ -1,34 +1,96 @@ | ||
| 1 | -span.subscrpt-pending { | |
| 2 | - background: #535050; | |
| 3 | - color: white; | |
| 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; | |
| 4 | 16 | text-transform: capitalize; |
| 5 | - padding: 8px; | |
| 17 | + padding: 8px 10px; | |
| 18 | + border-radius: 5px; | |
| 6 | 19 | } |
| 7 | 20 | |
| 8 | -span.subscrpt-active { | |
| 9 | - background: green; | |
| 10 | - color: white; | |
| 11 | - text-transform: capitalize; | |
| 12 | - padding: 8px; | |
| 21 | +span.subscrpt-legacy-status--pending { | |
| 22 | + background: #dbeafe; | |
| 23 | + color: #1e40af; | |
| 13 | 24 | } |
| 14 | 25 | |
| 15 | -span.subscrpt-expired { | |
| 16 | - background: red; | |
| 17 | - color: white; | |
| 18 | - text-transform: capitalize; | |
| 19 | - padding: 8px; | |
| 26 | +span.subscrpt-legacy-status--active { | |
| 27 | + background: #bbf7d0; | |
| 28 | + color: #166534; | |
| 20 | 29 | } |
| 21 | 30 | |
| 22 | -span.subscrpt-cancelled { | |
| 23 | - background: #cecece; | |
| 24 | - color: white; | |
| 25 | - text-transform: capitalize; | |
| 26 | - padding: 8px; | |
| 31 | +span.subscrpt-legacy-status--expired { | |
| 32 | + background: #fecaca; | |
| 33 | + color: #991b1b; | |
| 27 | 34 | } |
| 28 | 35 | |
| 29 | -span.subscrpt-pe_cancelled { | |
| 30 | - background: #ecb03e; | |
| 31 | - color: white; | |
| 32 | - text-transform: capitalize; | |
| 33 | - padding: 8px; | |
| 36 | +span.subscrpt-legacy-status--completed { | |
| 37 | + background: #e0e7ff; | |
| 38 | + color: #3730a3; | |
| 39 | +} | |
| 40 | + | |
| 41 | +span.subscrpt-legacy-status--cancelled { | |
| 42 | + background: #e2e8f0; | |
| 43 | + color: #475569; | |
| 44 | +} | |
| 45 | + | |
| 46 | +span.subscrpt-legacy-status--pe_cancelled, | |
| 47 | +span.subscrpt-legacy-status--on-hold { | |
| 48 | + background: #ffedd5; | |
| 49 | + color: #b45309; | |
| 50 | +} | |
| 51 | + | |
| 52 | +span.subscrpt-legacy-status--draft { | |
| 53 | + background: #f3f3f3; | |
| 54 | + color: #888; | |
| 55 | +} | |
| 56 | + | |
| 57 | +/* Grace Period */ | |
| 58 | +span.grace-active { | |
| 59 | + position: relative; | |
| 60 | + padding-right: 16px; | |
| 61 | +} | |
| 62 | + | |
| 63 | +span.grace-icon { | |
| 64 | + position: absolute; | |
| 65 | + top: -5px; | |
| 66 | + right: -5px; | |
| 67 | + background: #fffbeb; | |
| 68 | + border-radius: 50%; | |
| 69 | + padding: 0px; | |
| 70 | + height: 20px; | |
| 71 | + width: 20px; | |
| 72 | +} | |
| 73 | + | |
| 74 | +span.grace-icon .dashicons { | |
| 75 | + color: #f59e0b; | |
| 76 | +} | |
| 77 | + | |
| 78 | +span.grace-icon::after { | |
| 79 | + content: attr(data-tooltip); | |
| 80 | + position: absolute; | |
| 81 | + top: -28px; | |
| 82 | + right: 50%; | |
| 83 | + transform: translateX(50%); | |
| 84 | + background: #fef3c7; | |
| 85 | + color: #b45309; | |
| 86 | + font-size: 11px; | |
| 87 | + padding: 4px 6px; | |
| 88 | + border-radius: 3px; | |
| 89 | + white-space: nowrap; | |
| 90 | + opacity: 0; | |
| 91 | + pointer-events: none; | |
| 92 | + transition: opacity 0.2s ease; | |
| 93 | +} | |
| 94 | +span.grace-icon:hover::after { | |
| 95 | + opacity: 1; | |
| 34 | 96 | } |