2026-01-11 22:33:21 +01:00
|
|
|
/**
|
|
|
|
|
* Account Styles - Subscription & Billing Management
|
|
|
|
|
*
|
|
|
|
|
* For logged-in users to manage their subscription plan,
|
|
|
|
|
* payment method, and view invoice history.
|
2026-01-13 00:09:46 +01:00
|
|
|
*
|
2026-01-17 15:36:15 +01:00
|
|
|
* Reuses:
|
|
|
|
|
* - swp-card (components.css)
|
|
|
|
|
* - swp-btn (components.css)
|
|
|
|
|
* - swp-plan-card, swp-plan-badge, swp-plan-action (components.css)
|
|
|
|
|
* - swp-data-table (components.css)
|
2026-01-11 22:33:21 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/* ===========================================
|
|
|
|
|
SECTION STYLING
|
|
|
|
|
=========================================== */
|
|
|
|
|
swp-account-section {
|
|
|
|
|
display: block;
|
2026-01-12 15:42:18 +01:00
|
|
|
margin-bottom: var(--section-gap);
|
2026-01-11 22:33:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
swp-account-section-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
2026-01-12 15:42:18 +01:00
|
|
|
margin-bottom: var(--section-gap);
|
2026-01-11 22:33:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
swp-account-section-title {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: var(--spacing-3);
|
|
|
|
|
font-size: var(--font-size-lg);
|
|
|
|
|
font-weight: var(--font-weight-semibold);
|
|
|
|
|
color: var(--color-text);
|
|
|
|
|
|
2026-01-14 16:31:28 +01:00
|
|
|
& i {
|
|
|
|
|
font-size: 22px;
|
|
|
|
|
color: var(--color-teal);
|
|
|
|
|
}
|
2026-01-11 22:33:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ===========================================
|
|
|
|
|
PLAN GRID
|
|
|
|
|
=========================================== */
|
|
|
|
|
swp-plan-grid {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(3, 1fr);
|
2026-01-12 15:42:18 +01:00
|
|
|
gap: var(--card-gap);
|
2026-01-11 22:33:21 +01:00
|
|
|
|
2026-01-14 16:31:28 +01:00
|
|
|
@media (max-width: 1024px) {
|
2026-01-11 22:33:21 +01:00
|
|
|
grid-template-columns: 1fr;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-13 00:09:46 +01:00
|
|
|
/* Plan card/badge/action styles in components.css */
|
2026-01-11 22:33:21 +01:00
|
|
|
|
|
|
|
|
/* ===========================================
|
|
|
|
|
BILLING GRID (2 columns)
|
|
|
|
|
=========================================== */
|
|
|
|
|
swp-billing-grid {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: 380px 1fr;
|
2026-01-12 15:42:18 +01:00
|
|
|
gap: var(--card-gap);
|
2026-01-11 22:33:21 +01:00
|
|
|
|
2026-01-14 16:31:28 +01:00
|
|
|
@media (max-width: 1024px) {
|
2026-01-11 22:33:21 +01:00
|
|
|
grid-template-columns: 1fr;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ===========================================
|
2026-01-17 15:36:15 +01:00
|
|
|
PAYMENT CARD (extends swp-card)
|
2026-01-11 22:33:21 +01:00
|
|
|
=========================================== */
|
2026-01-17 15:36:15 +01:00
|
|
|
swp-card.payment {
|
2026-01-11 22:33:21 +01:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2026-01-12 15:42:18 +01:00
|
|
|
gap: var(--card-padding);
|
2026-01-11 22:33:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
swp-payment-method {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: var(--spacing-4);
|
2026-01-12 15:42:18 +01:00
|
|
|
padding: var(--card-padding);
|
2026-01-11 22:33:21 +01:00
|
|
|
background: var(--color-background-alt);
|
|
|
|
|
border-radius: var(--radius-md);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
swp-payment-icon {
|
|
|
|
|
width: 48px;
|
|
|
|
|
height: 32px;
|
|
|
|
|
background: var(--color-surface);
|
|
|
|
|
border: 1px solid var(--color-border);
|
|
|
|
|
border-radius: var(--radius-sm);
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
2026-01-14 16:31:28 +01:00
|
|
|
& i {
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
color: var(--color-blue);
|
|
|
|
|
}
|
2026-01-11 22:33:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
swp-payment-info {
|
|
|
|
|
flex: 1;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
swp-payment-type {
|
|
|
|
|
display: block;
|
|
|
|
|
font-size: var(--font-size-base);
|
|
|
|
|
font-weight: var(--font-weight-semibold);
|
|
|
|
|
color: var(--color-text);
|
|
|
|
|
margin-bottom: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
swp-payment-number {
|
|
|
|
|
display: block;
|
|
|
|
|
font-size: var(--font-size-sm);
|
|
|
|
|
color: var(--color-text-secondary);
|
|
|
|
|
font-family: var(--font-mono);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
swp-payment-detail {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
2026-01-12 15:42:18 +01:00
|
|
|
padding: var(--spacing-4) 0;
|
2026-01-11 22:33:21 +01:00
|
|
|
border-bottom: 1px solid var(--color-border);
|
|
|
|
|
|
2026-01-14 16:31:28 +01:00
|
|
|
&:last-of-type {
|
|
|
|
|
border-bottom: none;
|
|
|
|
|
}
|
2026-01-11 22:33:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
swp-payment-label {
|
|
|
|
|
font-size: var(--font-size-sm);
|
|
|
|
|
color: var(--color-text-secondary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
swp-payment-value {
|
|
|
|
|
font-size: var(--font-size-base);
|
|
|
|
|
font-weight: var(--font-weight-medium);
|
|
|
|
|
color: var(--color-text);
|
|
|
|
|
|
2026-01-14 16:31:28 +01:00
|
|
|
&.highlight {
|
|
|
|
|
color: var(--color-teal);
|
|
|
|
|
}
|
2026-01-11 22:33:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ===========================================
|
2026-01-14 17:37:53 +01:00
|
|
|
INVOICE HISTORY (uses swp-data-table from components.css)
|
2026-01-11 22:33:21 +01:00
|
|
|
=========================================== */
|
2026-01-14 17:37:53 +01:00
|
|
|
swp-card.invoice-history swp-data-table {
|
2026-01-11 22:33:21 +01:00
|
|
|
grid-template-columns: 100px minmax(120px, 1fr) 100px 100px 80px;
|
2026-01-14 16:31:28 +01:00
|
|
|
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
|
grid-template-columns: 80px minmax(100px, 1fr) 80px 80px 70px;
|
|
|
|
|
}
|
2026-01-11 22:33:21 +01:00
|
|
|
}
|
|
|
|
|
|
2026-01-14 17:37:53 +01:00
|
|
|
swp-card.invoice-history swp-data-table-cell {
|
2026-01-11 22:33:21 +01:00
|
|
|
font-size: var(--font-size-sm);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ===========================================
|
|
|
|
|
INVOICE STATUS BADGES
|
|
|
|
|
=========================================== */
|
|
|
|
|
swp-invoice-status {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: var(--spacing-2);
|
|
|
|
|
padding: var(--spacing-1) var(--spacing-3);
|
|
|
|
|
font-size: var(--font-size-xs);
|
|
|
|
|
font-weight: var(--font-weight-medium);
|
|
|
|
|
border-radius: var(--radius-sm);
|
2026-01-14 16:31:28 +01:00
|
|
|
|
2026-01-14 00:47:06 +01:00
|
|
|
& i {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
2026-01-11 22:33:21 +01:00
|
|
|
|
2026-01-14 16:31:28 +01:00
|
|
|
&.paid {
|
|
|
|
|
background: var(--bg-green-strong);
|
|
|
|
|
color: var(--color-green);
|
|
|
|
|
}
|
2026-01-11 22:33:21 +01:00
|
|
|
|
2026-01-14 16:31:28 +01:00
|
|
|
&.pending {
|
|
|
|
|
background: var(--bg-amber-strong);
|
|
|
|
|
color: var(--color-amber);
|
|
|
|
|
}
|
2026-01-11 22:33:21 +01:00
|
|
|
|
2026-01-14 16:31:28 +01:00
|
|
|
&.overdue {
|
|
|
|
|
background: var(--bg-red-strong);
|
|
|
|
|
color: var(--color-red);
|
|
|
|
|
}
|
2026-01-11 22:33:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ===========================================
|
|
|
|
|
DOWNLOAD BUTTON
|
|
|
|
|
=========================================== */
|
|
|
|
|
swp-download-btn {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: var(--spacing-2);
|
|
|
|
|
padding: var(--spacing-2) var(--spacing-3);
|
|
|
|
|
font-size: var(--font-size-xs);
|
|
|
|
|
font-weight: var(--font-weight-medium);
|
|
|
|
|
color: var(--color-teal);
|
|
|
|
|
background: transparent;
|
|
|
|
|
border: 1px solid var(--color-teal);
|
|
|
|
|
border-radius: var(--radius-sm);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: all var(--transition-fast);
|
|
|
|
|
|
2026-01-14 16:31:28 +01:00
|
|
|
& i {
|
|
|
|
|
font-size: 14px;
|
2026-01-11 22:33:21 +01:00
|
|
|
}
|
|
|
|
|
|
2026-01-14 16:31:28 +01:00
|
|
|
&:hover {
|
|
|
|
|
background: var(--bg-teal-medium);
|
2026-01-11 22:33:21 +01:00
|
|
|
}
|
|
|
|
|
}
|
2026-01-14 16:31:28 +01:00
|
|
|
|
|
|
|
|
/* Button styles in components.css */
|