/* ==========================================
   MY ACCOUNT THEME v3.0.0
   Unified UX for WooCommerce My Account pages
   Consistent design language with Dashboard
   ========================================== */

/* ------------------------------------------
   CSS VARIABLES (design tokens)
   ------------------------------------------ */
.woocommerce-account .woocommerce-MyAccount-content-wrapper {
    --wao-purple:        #53379e;
    --wao-purple-light:  #7b4fb8;
    --wao-purple-soft:   #f5f0ff;
    --wao-purple-border: #eee8f5;
    --wao-purple-hover:  #3d2878;
    --wao-text-primary:  #1a1a2e;
    --wao-text-body:     #4a4a5a;
    --wao-text-muted:    #8b8b9e;
    --wao-bg-card:       #ffffff;
    --wao-bg-subtle:     #faf9fd;
    --wao-border:        rgba(0,0,0,0.06);
    --wao-radius-lg:     16px;
    --wao-radius-md:     12px;
    --wao-radius-sm:     8px;
    --wao-shadow:        0 2px 12px rgba(0,0,0,0.06);
    --wao-green:         #059669;
    --wao-amber:         #d97706;
    --wao-red:           #dc2626;
}

/* ------------------------------------------
   CONTENT WRAPPER — Card Container
   ------------------------------------------ */
.woocommerce-account .woocommerce-MyAccount-content-wrapper {
    background: var(--wao-bg-card);
    border-radius: var(--wao-radius-lg);
    box-shadow: var(--wao-shadow);
    border: 1px solid var(--wao-border);
    padding: 28px 32px;
    color: var(--wao-text-body);
    line-height: 1.6;
}

/* ------------------------------------------
   HEADINGS — Consistent Purple Accent
   ------------------------------------------ */
.woocommerce-account .woocommerce-MyAccount-content-wrapper h2:not(.wao-welcome-title),
.woocommerce-account .woocommerce-MyAccount-content-wrapper h3 {
    color: var(--wao-text-primary);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.3;
}

.woocommerce-account .woocommerce-MyAccount-content-wrapper h2:not(.wao-welcome-title) {
    font-size: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--wao-purple-border);
    position: relative;
}

/* Purple accent underline on h2 */
.woocommerce-account .woocommerce-MyAccount-content-wrapper h2:not(.wao-welcome-title)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--wao-purple), var(--wao-purple-light));
    border-radius: 2px;
}

.woocommerce-account .woocommerce-MyAccount-content-wrapper h3 {
    font-size: 16px;
}

/* Subsection headings (e.g. Related Orders, Downloads, Activations) */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .lmfwc-header h3.product-name,
.woocommerce-account .woocommerce-MyAccount-content-wrapper header h2 {
    font-size: 17px;
    color: var(--wao-text-primary);
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 28px;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper header h2::after,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .lmfwc-header h3.product-name::after {
    display: none;
}

/* ------------------------------------------
   TABLES — Clean Modern Design
   ------------------------------------------ */
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.shop_table,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.woocommerce-table,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.woocommerce-orders-table,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.account-payment-methods-table {
    border: 1px solid var(--wao-purple-border) !important;
    border-radius: var(--wao-radius-md) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden;
    width: 100%;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Payment methods table — remove outer border */
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.account-payment-methods-table {
    border: none !important;
}

/* Table Header */
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.shop_table thead th,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.woocommerce-table thead th,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.woocommerce-orders-table thead th,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.account-payment-methods-table thead th {
    background: linear-gradient(135deg, var(--wao-purple-soft), rgba(123,79,184,0.06)) !important;
    color: var(--wao-purple) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid var(--wao-purple-border) !important;
    border-right: none !important;
    border-left: none !important;
    white-space: nowrap;
}

/* Table Cells */
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.shop_table tbody td,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.shop_table tbody th,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.woocommerce-table tbody td,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.woocommerce-orders-table tbody td,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.woocommerce-orders-table tbody th,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.account-payment-methods-table tbody td {
    padding: 14px 16px !important;
    border-bottom: 1px solid #f5f3fa !important;
    border-right: none !important;
    border-left: none !important;
    color: var(--wao-text-body);
    vertical-align: middle;
    font-size: 13px;
}

/* Last row no bottom border */
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.shop_table tbody tr:last-child td,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.shop_table tbody tr:last-child th,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.woocommerce-orders-table tbody tr:last-child td,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.woocommerce-orders-table tbody tr:last-child th,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.account-payment-methods-table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Table Row Hover */
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.shop_table tbody tr:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.woocommerce-orders-table tbody tr:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.account-payment-methods-table tbody tr:hover {
    background: var(--wao-bg-subtle) !important;
}

/* Table footer (totals) */
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.shop_table tfoot th,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.shop_table tfoot td,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.order_details tfoot th,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.order_details tfoot td {
    padding: 12px 16px !important;
    border-top: 1px solid var(--wao-purple-border) !important;
    border-bottom: none !important;
    border-right: none !important;
    border-left: none !important;
    font-size: 13px;
    color: var(--wao-text-body);
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.shop_table tfoot th,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.order_details tfoot th {
    font-weight: 600;
    color: var(--wao-text-primary);
}

/* Subscription detail table */
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.subscription_details {
    border: 1px solid var(--wao-purple-border) !important;
    border-radius: var(--wao-radius-md) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden;
    width: 100%;
    margin-bottom: 24px;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.subscription_details td {
    padding: 12px 16px !important;
    border-bottom: 1px solid #f5f3fa !important;
    border-right: none !important;
    border-left: none !important;
    font-size: 13px;
    color: var(--wao-text-body);
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.subscription_details tr:last-child td {
    border-bottom: none !important;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper table.subscription_details td:first-child {
    font-weight: 600;
    color: var(--wao-text-primary);
    width: 160px;
    background: var(--wao-bg-subtle);
}

/* ------------------------------------------
   ORDER / SUBSCRIPTION ID LINKS
   ------------------------------------------ */
.woocommerce-account .woocommerce-MyAccount-content-wrapper table a[href*="view-order"],
.woocommerce-account .woocommerce-MyAccount-content-wrapper table a[href*="view-subscription"],
.woocommerce-account .woocommerce-MyAccount-content-wrapper table a[aria-label*="View"] {
    color: var(--wao-purple);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper table a[href*="view-order"]:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table a[href*="view-subscription"]:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table a[aria-label*="View"]:hover {
    color: var(--wao-purple-hover);
}

/* ------------------------------------------
   STATUS BADGES — Color-coded pill chips
   Covers: orders, subscriptions, license keys
   ------------------------------------------ */

/* Base badge style for status cells */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__cell-order-status,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__cell-subscription-status {
    font-weight: 600;
    font-size: 13px;
}

/* Active / Completed — green */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-subscription-status,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-active .woocommerce-orders-table__cell-order-status,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-active .woocommerce-orders-table__cell-subscription-status {
    color: var(--wao-green);
}

/* Processing — purple (your brand action color) */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-order-status,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-subscription-status {
    color: var(--wao-purple);
}

/* On Hold / Pending Cancel / Switched — amber */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-order-status,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-subscription-status,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-pending-cancel .woocommerce-orders-table__cell-order-status,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-pending-cancel .woocommerce-orders-table__cell-subscription-status,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-switched .woocommerce-orders-table__cell-order-status,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-switched .woocommerce-orders-table__cell-subscription-status {
    color: var(--wao-amber);
}

/* Pending / Awaiting payment — amber */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-pending .woocommerce-orders-table__cell-order-status,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-pending .woocommerce-orders-table__cell-subscription-status {
    color: var(--wao-amber);
}

/* Cancelled / Expired / Failed — red */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-order-status,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-subscription-status,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-expired .woocommerce-orders-table__cell-order-status,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-expired .woocommerce-orders-table__cell-subscription-status,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-order-status,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-subscription-status {
    color: var(--wao-red);
}

/* Refunded — muted */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-refunded .woocommerce-orders-table__cell-order-status,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-refunded .woocommerce-orders-table__cell-subscription-status {
    color: var(--wao-text-muted);
}

/* Order detail status mark — color-coded per status */
.woocommerce-account .woocommerce-MyAccount-content-wrapper mark.order-status {
    background: none !important;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper mark.order-status.status-completed,
.woocommerce-account .woocommerce-MyAccount-content-wrapper mark.order-status.status-active {
    background: #ecfdf5 !important;
    color: var(--wao-green) !important;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper mark.order-status.status-processing {
    background: var(--wao-purple-soft) !important;
    color: var(--wao-purple) !important;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper mark.order-status.status-on-hold,
.woocommerce-account .woocommerce-MyAccount-content-wrapper mark.order-status.status-pending-cancel,
.woocommerce-account .woocommerce-MyAccount-content-wrapper mark.order-status.status-pending {
    background: #fffbeb !important;
    color: var(--wao-amber) !important;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper mark.order-status.status-cancelled,
.woocommerce-account .woocommerce-MyAccount-content-wrapper mark.order-status.status-expired,
.woocommerce-account .woocommerce-MyAccount-content-wrapper mark.order-status.status-failed {
    background: #fef2f2 !important;
    color: var(--wao-red) !important;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper mark.order-status.status-refunded {
    background: #f8f8f8 !important;
    color: var(--wao-text-muted) !important;
}
/* Non-status marks keep purple */
.woocommerce-account .woocommerce-MyAccount-content-wrapper mark.order-number,
.woocommerce-account .woocommerce-MyAccount-content-wrapper mark.order-date {
    background: none !important;
    font-weight: 700;
    color: var(--wao-purple);
}

/* ------------------------------------------
   BUTTONS — UX Color Hierarchy
   
   Purple gradient  → Primary CTA (submit, save)
   Green gradient   → Growth/Positive (upgrade, resubscribe, reactivate, pay, renew)
   Outlined purple  → Navigation (view, details)
   Outlined gray    → Utility (invoice, download, print)
   Outlined amber   → Caution (suspend, change payment)
   Red outline      → Destructive (cancel, delete)
   ------------------------------------------ */

/* Base — all buttons share this foundation */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-button,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-Button,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button,
.woocommerce-account .woocommerce-MyAccount-content-wrapper button.button,
.woocommerce-account .woocommerce-MyAccount-content-wrapper input[type="submit"].button,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .lmfwc-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px !important;
    border-radius: var(--wao-radius-sm) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    cursor: pointer;
    border: none !important;
    line-height: 1.4 !important;
    white-space: nowrap;
    /* Default: outlined purple (safe fallback for unknown buttons) */
    background: var(--wao-purple-soft) !important;
    color: var(--wao-purple) !important;
    border: 1px solid var(--wao-purple-border) !important;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-button:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-Button:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper button.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(83,55,158,0.2);
}

/* ── Navigation: View / Details — outlined purple ── */
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.view,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.woocommerce-button.view {
    background: var(--wao-purple-soft) !important;
    color: var(--wao-purple) !important;
    border: 1px solid var(--wao-purple-border) !important;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.view:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.woocommerce-button.view:hover {
    background: var(--wao-purple) !important;
    color: #fff !important;
    border-color: var(--wao-purple) !important;
    box-shadow: 0 4px 12px rgba(83,55,158,0.25);
}

/* ── Utility: Invoice / Download — green tones for visibility ── */
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.invoice,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.woocommerce-button.invoice,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.download,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.woocommerce-button.download {
    background: #ecfdf5 !important;
    color: #059669 !important;
    border: 1px solid #a7f3d0 !important;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.invoice:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.woocommerce-button.invoice:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.download:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.woocommerce-button.download:hover {
    background: #059669 !important;
    color: #fff !important;
    border-color: #059669 !important;
}

/* ── Growth: Resubscribe / Reactivate / Renew — green gradient ── */
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.resubscribe,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.woocommerce-button.resubscribe,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.reactivate,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.woocommerce-button.reactivate,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-button.reactivate,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.renewal_early,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.woocommerce-button.renewal_early {
    background: linear-gradient(135deg, var(--wao-green), #10b981) !important;
    color: #fff !important;
    border: none !important;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.resubscribe:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.woocommerce-button.resubscribe:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.reactivate:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.woocommerce-button.reactivate:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-button.reactivate:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.renewal_early:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.woocommerce-button.renewal_early:hover {
    box-shadow: 0 4px 16px rgba(5,150,105,0.3) !important;
    transform: translateY(-1px);
    color: #fff !important;
}

/* ── Growth CTA: Pay / Upgrade / Switch — green gradient (prominent) ── */
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.pay,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.woocommerce-button.pay,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.wcs-switch-link,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.wcs-switch-link {
    background: linear-gradient(135deg, var(--wao-green), #10b981) !important;
    color: #fff !important;
    border: none !important;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.wcs-switch-link,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.wcs-switch-link {
    margin-top: 16px;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.pay:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.woocommerce-button.pay:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.wcs-switch-link:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.wcs-switch-link:hover {
    box-shadow: 0 4px 16px rgba(5,150,105,0.3) !important;
    transform: translateY(-1px);
    color: #fff !important;
}

/* ── Caution: Suspend / Change Payment — outlined amber ── */
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.suspend,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.woocommerce-button.suspend,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.change_payment_method,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.woocommerce-button.change_payment_method {
    background: #fffbeb !important;
    color: var(--wao-amber) !important;
    border: 1px solid #fde68a !important;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.suspend:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.woocommerce-button.suspend:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.change_payment_method:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.woocommerce-button.change_payment_method:hover {
    background: var(--wao-amber) !important;
    color: #fff !important;
    border-color: var(--wao-amber) !important;
}

/* ── Destructive: Cancel / Delete — red outline ── */
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.delete,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.woocommerce-button.delete,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.cancel,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.woocommerce-button.cancel,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-button.cancel {
    background: transparent !important;
    color: var(--wao-red) !important;
    border: 1px solid #fecaca !important;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.delete:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.woocommerce-button.delete:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.cancel:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.woocommerce-button.cancel:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-button.cancel:hover {
    background: var(--wao-red) !important;
    color: #fff !important;
    border-color: var(--wao-red) !important;
}

/* ── Primary CTA: Submit / Save — purple gradient ── */
.woocommerce-account .woocommerce-MyAccount-content-wrapper button[type="submit"],
.woocommerce-account .woocommerce-MyAccount-content-wrapper input[type="submit"],
.woocommerce-account .woocommerce-MyAccount-content-wrapper .button.alt,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-Button--alt {
    background: linear-gradient(135deg, var(--wao-purple) 0%, var(--wao-purple-light) 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 28px !important;
    font-size: 14px !important;
    border-radius: var(--wao-radius-md) !important;
}

/* Save account details — extra top spacing */
.woocommerce-account .woocommerce-MyAccount-content-wrapper button[name="save_account_details"] {
    margin-top: 20px;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper button[type="submit"]:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper input[type="submit"]:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .button.alt:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-Button--alt:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(83,55,158,0.3) !important;
}

/* Action buttons in table — smaller, inline */
.woocommerce-account .woocommerce-MyAccount-content-wrapper td.order-actions a.button,
.woocommerce-account .woocommerce-MyAccount-content-wrapper td.subscription-actions a.button,
.woocommerce-account .woocommerce-MyAccount-content-wrapper td.license-key-actions a.button,
.woocommerce-account .woocommerce-MyAccount-content-wrapper td.woocommerce-orders-table__cell-order-actions a,
.woocommerce-account .woocommerce-MyAccount-content-wrapper td.payment-method-actions a.button {
    padding: 6px 14px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    margin-right: 4px;
}

/* ------------------------------------------
   FORMS — Modern Inputs & Fields
   ------------------------------------------ */

/* Input fields */
.woocommerce-account .woocommerce-MyAccount-content-wrapper input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content-wrapper input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content-wrapper input[type="tel"],
.woocommerce-account .woocommerce-MyAccount-content-wrapper input[type="url"],
.woocommerce-account .woocommerce-MyAccount-content-wrapper input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content-wrapper input[type="number"],
.woocommerce-account .woocommerce-MyAccount-content-wrapper textarea,
.woocommerce-account .woocommerce-MyAccount-content-wrapper select,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .select2-selection {
    border: 1.5px solid var(--wao-purple-border) !important;
    border-radius: var(--wao-radius-sm) !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: var(--wao-text-primary) !important;
    background: #fff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.5 !important;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper input[type="text"]:focus,
.woocommerce-account .woocommerce-MyAccount-content-wrapper input[type="email"]:focus,
.woocommerce-account .woocommerce-MyAccount-content-wrapper input[type="tel"]:focus,
.woocommerce-account .woocommerce-MyAccount-content-wrapper input[type="url"]:focus,
.woocommerce-account .woocommerce-MyAccount-content-wrapper input[type="password"]:focus,
.woocommerce-account .woocommerce-MyAccount-content-wrapper textarea:focus {
    border-color: var(--wao-purple) !important;
    box-shadow: 0 0 0 3px rgba(83,55,158,0.1) !important;
    outline: none !important;
}

/* Select2 overrides */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .select2-container--default .select2-selection--single {
    height: auto !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--wao-text-primary) !important;
    padding-left: 14px !important;
    line-height: 1.5 !important;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 8px !important;
}

/* Labels */
.woocommerce-account .woocommerce-MyAccount-content-wrapper label {
    font-size: 13px;
    font-weight: 600;
    color: var(--wao-text-primary);
    margin-bottom: 6px;
    display: inline-block;
}

/* Form rows spacing */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .form-row {
    margin-bottom: 18px;
}

/* Fieldset legend */
.woocommerce-account .woocommerce-MyAccount-content-wrapper fieldset {
    border: 1px solid var(--wao-purple-border);
    border-radius: var(--wao-radius-md);
    padding: 20px 24px;
    margin-top: 24px;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper fieldset legend {
    font-size: 15px;
    font-weight: 700;
    color: var(--wao-purple);
    padding: 0 10px;
}

/* Password input wrapper */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .password-input {
    position: relative;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .show-password-input {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--wao-text-muted);
    cursor: pointer;
    padding: 4px;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .show-password-input:hover {
    color: var(--wao-purple);
}

/* Checkbox styling */
.woocommerce-account .woocommerce-MyAccount-content-wrapper input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: var(--wao-purple);
    border-radius: 4px !important;
    vertical-align: middle;
    margin-right: 8px;
}

/* Description / helper text */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .description,
.woocommerce-account .woocommerce-MyAccount-content-wrapper em,
.woocommerce-account .woocommerce-MyAccount-content-wrapper small {
    font-size: 12px;
    color: var(--wao-text-muted);
}

/* File input (avatar upload) */
.woocommerce-account .woocommerce-MyAccount-content-wrapper input[type="file"] {
    padding: 10px 14px;
    border: 1.5px dashed var(--wao-purple-border);
    border-radius: var(--wao-radius-sm);
    background: var(--wao-bg-subtle);
    cursor: pointer;
    width: 100%;
    font-size: 13px;
    color: var(--wao-text-body);
    transition: border-color 0.2s ease;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper input[type="file"]:hover {
    border-color: var(--wao-purple);
}

/* Avatar preview */
.woocommerce-account .woocommerce-MyAccount-content-wrapper img.avatar {
    border-radius: 50% !important;
    border: 3px solid var(--wao-purple-border) !important;
    box-shadow: 0 2px 8px rgba(83,55,158,0.12);
}

/* ------------------------------------------
   ADDRESS DISPLAY
   ------------------------------------------ */
.woocommerce-account .woocommerce-MyAccount-content-wrapper address {
    background: var(--wao-bg-subtle);
    border: 1px solid var(--wao-purple-border);
    border-radius: var(--wao-radius-md);
    padding: 16px 20px;
    font-style: normal;
    line-height: 1.8;
    color: var(--wao-text-body);
    font-size: 14px;
}

/* Address title with Edit link */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-Address-title h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
    font-size: 17px;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-Address-title h2::after {
    display: none;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-Address-title a.edit {
    font-size: 13px;
    font-weight: 600;
    color: var(--wao-purple);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    background: var(--wao-purple-soft);
    transition: all 0.2s ease;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-Address-title a.edit:hover {
    background: var(--wao-purple);
    color: #fff;
}

/* ------------------------------------------
   PAYMENT METHODS
   ------------------------------------------ */

/* Add payment method link/button at bottom */
.woocommerce-account .woocommerce-MyAccount-content-wrapper > a.button[href*="add-payment-method"] {
    margin-top: 16px;
    background: var(--wao-purple-soft) !important;
    color: var(--wao-purple) !important;
    border: 1px solid var(--wao-purple-border) !important;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper > a.button[href*="add-payment-method"]:hover {
    background: var(--wao-purple) !important;
    color: #fff !important;
}

/* Stripe / Payment form wrapper */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-PaymentMethods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

/* Update subscription payment method checkbox */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-input-wrapper label.checkbox {
    font-weight: 400 !important;
    font-size: 13px;
    color: var(--wao-text-body);
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.5;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-PaymentMethod {
    padding: 16px 20px;
    border: 1px solid var(--wao-purple-border);
    border-radius: var(--wao-radius-md);
    margin-bottom: 12px;
    background: var(--wao-bg-subtle);
    list-style: none;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-PaymentMethod label {
    font-size: 15px;
    font-weight: 600;
    color: var(--wao-text-primary);
    cursor: pointer;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-PaymentBox {
    margin-top: 14px;
    padding: 0 !important;
    border-top: 1px solid var(--wao-purple-border);
}

/* ------------------------------------------
   LICENSE KEYS PAGE
   ------------------------------------------ */

/* License product name heading */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .ozel-lisans-sayfasi h3.product-name {
    font-size: 15px;
    margin-top: 20px;
    margin-bottom: 12px;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .ozel-lisans-sayfasi h3.product-name a {
    color: var(--wao-purple);
    text-decoration: none;
    transition: color 0.2s ease;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .ozel-lisans-sayfasi h3.product-name a:hover {
    color: var(--wao-purple-hover);
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .ozel-lisans-sayfasi h3.product-name .description {
    display: block;
    font-size: 12px;
    color: var(--wao-text-muted);
    font-weight: 400;
    margin-top: 2px;
}

/* License key code in table */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .lmfwc-myaccount-license-key {
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: #f5f4f7;
    color: var(--wao-text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e5e3ea;
    display: inline-block;
}

/* QR Code image */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .lmfwc-myaccount-QRCode img {
    border-radius: 6px;
    border: 1px solid var(--wao-purple-border);
    padding: 4px;
    background: #fff;
}

/* ------------------------------------------
   AFFILIATE DASHBOARD
   ------------------------------------------ */

/* Affiliate tabs */
.woocommerce-account .woocommerce-MyAccount-content-wrapper #affwp-affiliate-dashboard-tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    border-bottom: 2px solid var(--wao-purple-border);
    padding-bottom: 0;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper #affwp-affiliate-dashboard-tabs li {
    margin: 0;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper #affwp-affiliate-dashboard-tabs li a {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: var(--wao-radius-sm) var(--wao-radius-sm) 0 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--wao-text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -2px;
    white-space: nowrap;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper #affwp-affiliate-dashboard-tabs li a:hover {
    color: var(--wao-purple);
    background: var(--wao-purple-soft);
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper #affwp-affiliate-dashboard-tabs li.active a {
    color: var(--wao-purple);
    background: #fff;
    border-color: var(--wao-purple-border);
    border-bottom: 2px solid #fff;
}

/* Affiliate card */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .affwp-card {
    border: 1px solid var(--wao-purple-border);
    border-radius: var(--wao-radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .affwp-card__header {
    background: var(--wao-bg-subtle);
    padding: 16px 20px;
    border-bottom: 1px solid var(--wao-purple-border);
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .affwp-card__header h3 {
    margin: 0 0 4px;
    font-size: 16px;
    color: var(--wao-text-primary);
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .affwp-card__header p {
    margin: 0;
    font-size: 13px;
    color: var(--wao-text-muted);
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .affwp-card__content {
    padding: 20px;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .affwp-card__footer {
    padding: 16px 20px;
    border-top: 1px solid var(--wao-purple-border);
    background: var(--wao-bg-subtle);
}

/* Affiliate link input */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .affwp-affiliate-link__display {
    display: flex;
    gap: 8px;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .affwp-affiliate-link__input {
    flex: 1;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace !important;
    font-size: 13px !important;
    color: var(--wao-purple) !important;
    background: var(--wao-bg-subtle) !important;
}

/* Share icons */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .affwp-link-sharing {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--wao-purple-border);
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .affwp-link-sharing__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: transform 0.2s ease;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .affwp-link-sharing__icon:hover {
    transform: scale(1.1);
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .affwp-link-sharing__icon svg {
    width: 22px;
    height: 22px;
}

/* ------------------------------------------
   ORDER / SUBSCRIPTION DETAIL PAGES
   ------------------------------------------ */

/* Order confirmation paragraph */
.woocommerce-account .woocommerce-MyAccount-content-wrapper > p:first-of-type {
    font-size: 14px;
    color: var(--wao-text-body);
    line-height: 1.6;
}

/* Downloads section */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-order-downloads {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--wao-purple-border);
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-order-downloads__title {
    font-size: 17px;
    border-bottom: none;
    padding-bottom: 8px;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-order-downloads__title::after {
    display: none;
}

/* Download button */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-MyAccount-downloads-file,
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button.alt[href*="download_file"] {
    background: linear-gradient(135deg, var(--wao-purple) 0%, var(--wao-purple-light) 100%) !important;
    color: #fff !important;
    padding: 8px 18px !important;
    font-size: 13px !important;
    border-radius: var(--wao-radius-sm) !important;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-MyAccount-downloads-file:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(83,55,158,0.3);
}

/* "Order again" button */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .order-again a.button {
    background: var(--wao-purple-soft) !important;
    color: var(--wao-purple) !important;
    border: 1px solid var(--wao-purple-border) !important;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .order-again a.button:hover {
    background: var(--wao-purple) !important;
    color: #fff !important;
}

/* Customer details section */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-customer-details {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--wao-purple-border);
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-column__title {
    font-size: 16px;
    border-bottom: none;
    padding-bottom: 8px;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-column__title::after {
    display: none;
}

/* Email in address */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-customer-details--email {
    color: var(--wao-purple);
    font-weight: 500;
    margin-top: 8px;
}

/* ------------------------------------------
   MARKETING ASSETS PAGE
   ------------------------------------------ */
.woocommerce-account .woocommerce-MyAccount-content-wrapper > p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--wao-text-body);
}

/* Product links in tables */
.woocommerce-account .woocommerce-MyAccount-content-wrapper td a[href*="event-activation-software"],
.woocommerce-account .woocommerce-MyAccount-content-wrapper td a[href*="creative-add-ons"],
.woocommerce-account .woocommerce-MyAccount-content-wrapper td.product-name a {
    color: var(--wao-purple);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper td a[href*="event-activation-software"]:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper td a[href*="creative-add-ons"]:hover,
.woocommerce-account .woocommerce-MyAccount-content-wrapper td.product-name a:hover {
    color: var(--wao-purple-hover);
}

/* Price amounts */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-Price-amount {
    font-weight: 600;
    color: var(--wao-text-primary);
}

/* ------------------------------------------
   WOOCOMMERCE NOTICES
   ------------------------------------------ */
/* Notices inside wrapper */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-notices-wrapper .woocommerce-info {
    border-radius: var(--wao-radius-md);
    border-left: 4px solid var(--wao-purple);
    background: var(--wao-purple-soft);
    color: var(--wao-text-primary);
    padding: 14px 20px;
    margin-bottom: 20px;
    font-size: 14px;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-notices-wrapper .woocommerce-error {
    border-radius: var(--wao-radius-md);
    border-left: 4px solid var(--wao-red);
    background: #fef2f2;
    color: var(--wao-text-primary);
    padding: 14px 20px;
    margin-bottom: 20px;
    font-size: 14px;
}
/* Notices that appear OUTSIDE the wrapper (e.g. after subscription cancel) */
.woocommerce-account .woocommerce-MyAccount-content-wrapper > .woocommerce-message,
.woocommerce-account .woocommerce-MyAccount-content-wrapper > .woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-message,
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info,
.woocommerce-account .woocommerce-message[role="alert"],
.woocommerce-account .woocommerce-info[role="alert"],
.woocommerce-account .woocommerce-info[role="status"] {
    border-radius: var(--wao-radius-md) !important;
    border: none !important;
    border-left: 4px solid var(--wao-purple) !important;
    background: var(--wao-purple-soft) !important;
    color: var(--wao-text-primary) !important;
    padding: 14px 20px 14px 3.5em !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
    box-shadow: none !important;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper > .woocommerce-error,
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-error,
.woocommerce-account .woocommerce-error[role="alert"] {
    border-radius: var(--wao-radius-md) !important;
    border: none !important;
    border-left: 4px solid var(--wao-red) !important;
    background: #fef2f2 !important;
    color: var(--wao-text-primary) !important;
    padding: 14px 20px 14px 3.5em !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
    box-shadow: none !important;
}

/* ------------------------------------------
   MOBILE RESPONSIVE
   ------------------------------------------ */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-content-wrapper {
        padding: 20px 16px;
        border-radius: var(--wao-radius-md);
    }

    .woocommerce-account .woocommerce-MyAccount-content-wrapper h2:not(.wao-welcome-title) {
        font-size: 18px;
    }

    /* Responsive table behavior */
    .woocommerce-account .woocommerce-MyAccount-content-wrapper table.shop_table_responsive thead {
        display: none;
    }
    .woocommerce-account .woocommerce-MyAccount-content-wrapper table.shop_table_responsive tbody tr {
        display: block;
        border: 1px solid var(--wao-purple-border);
        border-radius: var(--wao-radius-md);
        padding: 12px;
        margin-bottom: 12px;
        background: var(--wao-bg-subtle);
    }
    .woocommerce-account .woocommerce-MyAccount-content-wrapper table.shop_table_responsive tbody td,
    .woocommerce-account .woocommerce-MyAccount-content-wrapper table.shop_table_responsive tbody th {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 8px 4px !important;
        border-bottom: 1px solid #f0eef5 !important;
    }
    .woocommerce-account .woocommerce-MyAccount-content-wrapper table.shop_table_responsive tbody td:last-child,
    .woocommerce-account .woocommerce-MyAccount-content-wrapper table.shop_table_responsive tbody th:last-child {
        border-bottom: none !important;
    }
    .woocommerce-account .woocommerce-MyAccount-content-wrapper table.shop_table_responsive tbody td::before,
    .woocommerce-account .woocommerce-MyAccount-content-wrapper table.shop_table_responsive tbody th::before {
        font-weight: 600;
        color: var(--wao-text-primary);
        font-size: 12px;
    }

    /* Actions column on mobile */
    .woocommerce-account .woocommerce-MyAccount-content-wrapper td.order-actions,
    .woocommerce-account .woocommerce-MyAccount-content-wrapper td.subscription-actions,
    .woocommerce-account .woocommerce-MyAccount-content-wrapper td.license-key-actions,
    .woocommerce-account .woocommerce-MyAccount-content-wrapper td.payment-method-actions {
        display: flex !important;
        justify-content: flex-start !important;
        gap: 6px;
        flex-wrap: wrap;
        padding-top: 10px !important;
    }

    /* Fieldsets */
    .woocommerce-account .woocommerce-MyAccount-content-wrapper fieldset {
        padding: 16px;
    }

    /* Address */
    .woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-Address-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Affiliate tabs scroll */
    .woocommerce-account .woocommerce-MyAccount-content-wrapper #affwp-affiliate-dashboard-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .woocommerce-account .woocommerce-MyAccount-content-wrapper #affwp-affiliate-dashboard-tabs::-webkit-scrollbar {
        display: none;
    }
    .woocommerce-account .woocommerce-MyAccount-content-wrapper #affwp-affiliate-dashboard-tabs li a {
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 12px;
    }

    /* Affiliate link */
    .woocommerce-account .woocommerce-MyAccount-content-wrapper .affwp-affiliate-link__display {
        flex-direction: column;
    }

    /* Share icons */
    .woocommerce-account .woocommerce-MyAccount-content-wrapper .affwp-link-sharing {
        flex-wrap: wrap;
    }
}

/* ------------------------------------------
   DASHBOARD EXCLUSION
   Prevent theme styles from conflicting
   with the onboarding display
   ------------------------------------------ */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .wao-hero-section,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .wao-app-card,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .wao-promo-banner {
    /* These elements have their own styles — no interference */
}

/* When onboarding content is present, remove card wrapper padding
   so onboarding elements can be full-width within the card */
.woocommerce-account .woocommerce-MyAccount-content-wrapper:has(.wao-hero-section) {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
}

/* Protect hero title from theme heading styles */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .wao-hero-section .wao-welcome-title {
    font-size: 30px !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    border: none !important;
    background: none !important;
    letter-spacing: -0.02em !important;
    position: static !important;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .wao-hero-section .wao-welcome-title::after {
    display: none !important;
}

/* Protect hero subtitle */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .wao-hero-section .wao-subtitle {
    color: rgba(255,255,255,0.85) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

/* Protect all hero section elements from form/label styling */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .wao-hero-section label,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .wao-hero-section p,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .wao-hero-section .wao-welcome-description {
    color: #fff !important;
    font-weight: inherit !important;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper .wao-hero-section .wao-welcome-description {
    font-size: 15px !important;
    opacity: 0.85;
}

/* ------------------------------------------
   EXPIRED LICENSE DATE — red text
   (class added by JS at runtime)
   ------------------------------------------ */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .wao-date-expired,
.woocommerce-account .woocommerce-MyAccount-content-wrapper .wao-date-expired b {
    color: var(--wao-red) !important;
    font-weight: 700;
}

/* ------------------------------------------
   HIDE: Downloads section (order detail pages)
   ------------------------------------------ */
.woocommerce-account .woocommerce-MyAccount-content-wrapper section.woocommerce-order-downloads {
    display: none !important;
}

/* ------------------------------------------
   HIDE: License detail — Downloads & Activations
   after View Order button
   ------------------------------------------ */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .lmfwc-header {
    display: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content-wrapper .lmfwc-header + .shop_table {
    display: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content-wrapper .lmfwc-license-activations {
    display: none !important;
}

/* ------------------------------------------
   UX MICRO-TWEAKS
   ------------------------------------------ */

/* Cancelled/expired row subtle dimming — draws eye to active items */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-cancelled td:not(.woocommerce-orders-table__cell-order-status):not(.woocommerce-orders-table__cell-subscription-status),
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-orders-table__row--status-expired td:not(.woocommerce-orders-table__cell-order-status):not(.woocommerce-orders-table__cell-subscription-status) {
    opacity: 0.6;
}

/* Smooth focus ring for keyboard accessibility */
.woocommerce-account .woocommerce-MyAccount-content-wrapper a.button:focus-visible,
.woocommerce-account .woocommerce-MyAccount-content-wrapper button:focus-visible,
.woocommerce-account .woocommerce-MyAccount-content-wrapper input:focus-visible,
.woocommerce-account .woocommerce-MyAccount-content-wrapper select:focus-visible {
    outline: 2px solid var(--wao-purple) !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(83,55,158,0.15) !important;
}

/* Subscription detail page — section spacing */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .subscription_details + table,
.woocommerce-account .woocommerce-MyAccount-content-wrapper table + .order_details {
    margin-top: 24px;
}

/* Empty state text — if WooCommerce shows "No order has been made yet" etc */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .woocommerce-info:only-child {
    text-align: center;
    padding: 32px 20px !important;
    border-left: none !important;
    border: 1px dashed var(--wao-purple-border) !important;
    background: var(--wao-bg-subtle) !important;
    color: var(--wao-text-muted) !important;
    font-size: 14px;
    border-radius: var(--wao-radius-md) !important;
}

/* Links inside content — purple underline */
.woocommerce-account .woocommerce-MyAccount-content-wrapper a:not(.button):not(.woocommerce-button):not(.wcs-switch-link):not(.wao-promo-btn):not(.wao-platform-btn):not(.wao-app-status-link):not(.wao-sub-text-btn):not(.wao-cta-btn) {
    color: var(--wao-purple);
    text-decoration-color: rgba(83,55,158,0.3);
    transition: color 0.2s, text-decoration-color 0.2s;
}
.woocommerce-account .woocommerce-MyAccount-content-wrapper a:not(.button):not(.woocommerce-button):not(.wcs-switch-link):not(.wao-promo-btn):not(.wao-platform-btn):not(.wao-app-status-link):not(.wao-sub-text-btn):not(.wao-cta-btn):hover {
    color: var(--wao-purple-hover);
    text-decoration-color: var(--wao-purple-hover);
}

/* ── Endpoint page titles ── */
.wao-endpoint-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--wao-text-primary);
    margin: 0 0 20px;
    padding: 0;
    line-height: 1.3;
}

/* ── Stripe card form — top spacing on add-payment-method ── */
.woocommerce-account .woocommerce-MyAccount-content-wrapper .p-CardForm {
    margin-top: 20px;
}
