/* ==========================================================================
   PMT My Account Dashboard - Light Theme
   Brand: Green #B2D235, Green dark #9ABB1E, Black #1a1a1a, Dark #222, Navy #1B3A5C
   ========================================================================== */

/* ---------- Custom Properties ---------- */
.woocommerce-account {
    --pmt-dash-bg: #f8f8f8;
    --pmt-dash-surface: #ffffff;
    --pmt-dash-surface-hover: #f0f0f0;
    --pmt-dash-border: #e0e0e0;
    --pmt-dash-text: #333333;
    --pmt-dash-text-muted: #777;
    --pmt-dash-text-dim: #999;
    --pmt-dash-green: #9ABB1E;
    --pmt-dash-green-dark: #8aaa10;
    --pmt-dash-navy: #1B3A5C;
    --pmt-dash-navy-light: #2a5a8c;
    --pmt-dash-white: #1a1a1a;
}

/* ---------- Account page wrapper: dark background ---------- */
.woocommerce-account .entry-content,
.woocommerce-account .site-content {
    background: var(--pmt-dash-bg);
}
.woocommerce-account .woocommerce {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}
.woocommerce-account .entry-content > .woocommerce {
    padding-top: 0;
}

/* ---------- Page title override ---------- */
.woocommerce-account .entry-title,
.woocommerce-account .page-title {
    color: var(--pmt-dash-white);
}

/* ---------- WC Navigation sidebar ---------- */
.woocommerce-MyAccount-navigation {
    width: 240px;
    min-width: 240px;
    flex-shrink: 0;
}
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--pmt-dash-surface);
    border-radius: 12px;
    border: 1px solid var(--pmt-dash-border);
    overflow: hidden;
    position: sticky;
    top: 100px;
}
.woocommerce-MyAccount-navigation ul li {
    margin: 0;
    border-bottom: 1px solid var(--pmt-dash-border);
}
.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}
.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    color: var(--pmt-dash-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}
.woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--pmt-dash-surface-hover);
    color: var(--pmt-dash-green);
    border-left-color: var(--pmt-dash-green);
}
.woocommerce-MyAccount-navigation ul li.is-active a {
    background: rgba(178, 210, 53, 0.08);
    color: var(--pmt-dash-green);
    font-weight: 600;
    border-left-color: var(--pmt-dash-green);
}

/* Logout link */
.woocommerce-MyAccount-navigation ul li:last-child a {
    color: var(--pmt-dash-text-dim);
}
.woocommerce-MyAccount-navigation ul li:last-child a:hover {
    color: #e74c3c;
    border-left-color: #e74c3c;
}

/* Mobile nav toggle */
.pmt-nav-toggle {
    display: none;
    width: 100%;
    padding: 12px 18px;
    background: var(--pmt-dash-surface);
    border: 1px solid var(--pmt-dash-border);
    border-radius: 8px;
    color: var(--pmt-dash-green);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
    text-align: left;
}
.pmt-nav-toggle::after {
    content: '';
    float: right;
    border: solid var(--pmt-dash-green);
    border-width: 0 2px 2px 0;
    padding: 4px;
    transform: rotate(45deg);
    margin-top: 2px;
    transition: transform 0.2s;
}
.pmt-nav-toggle.open::after {
    transform: rotate(-135deg);
    margin-top: 6px;
}

/* ---------- Content area ---------- */
.woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
}

/* ---------- Dashboard layout ---------- */
.pmt-dash {
    max-width: 100%;
    color: var(--pmt-dash-text);
}
.pmt-dash h2 {
    font-size: 24px;
    color: var(--pmt-dash-white);
    margin: 0 0 8px;
    font-weight: 700;
}

/* Page header */
.pmt-dash-page-header {
    margin-bottom: 24px;
}

/* ---------- Dashboard Header card ---------- */
.pmt-dash-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--pmt-dash-navy), var(--pmt-dash-navy-light));
    color: #fff;
    padding: 28px 32px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid rgba(178, 210, 53, 0.15);
}
.pmt-dash-avatar img {
    border-radius: 50%;
    border: 3px solid var(--pmt-dash-green);
    width: 64px;
    height: 64px;
}
.pmt-dash-welcome h2 {
    color: #fff;
    margin: 0 0 4px;
    font-size: 22px;
}
.pmt-dash-company {
    color: rgba(255,255,255,0.65);
    margin: 0;
    font-size: 14px;
}
.pmt-dash-discount {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    background: rgba(178, 210, 53, 0.15);
    color: var(--pmt-dash-green);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* ---------- Stats cards ---------- */
.pmt-dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}
.pmt-stat-card {
    background: var(--pmt-dash-surface);
    border: 1px solid var(--pmt-dash-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}
.pmt-stat-card:hover {
    border-color: var(--pmt-dash-green);
    box-shadow: 0 4px 20px rgba(178, 210, 53, 0.08);
    transform: translateY(-2px);
}
.pmt-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(178, 210, 53, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pmt-stat-icon svg {
    width: 24px;
    height: 24px;
    color: var(--pmt-dash-green);
}
.pmt-stat-icon--green { background: rgba(178, 210, 53, 0.12); }
.pmt-stat-icon--green svg { color: var(--pmt-dash-green); }
.pmt-stat-icon--blue { background: rgba(91, 192, 222, 0.12); }
.pmt-stat-icon--blue svg { color: #5bc0de; }
.pmt-stat-icon--navy { background: rgba(27, 58, 92, 0.2); }
.pmt-stat-icon--navy svg { color: #6bb3e6; }
.pmt-stat-data {
    display: flex;
    flex-direction: column;
}
.pmt-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--pmt-dash-white);
    line-height: 1.2;
}
.pmt-stat-label {
    font-size: 12px;
    color: var(--pmt-dash-text-muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- Quick Links ---------- */
.pmt-dash-quicklinks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 24px;
}
.pmt-quicklink {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: var(--pmt-dash-surface);
    border: 1px solid var(--pmt-dash-border);
    border-radius: 12px;
    color: var(--pmt-dash-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
}
.pmt-quicklink:hover {
    border-color: var(--pmt-dash-green);
    color: var(--pmt-dash-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(178, 210, 53, 0.08);
}
.pmt-quicklink svg {
    color: var(--pmt-dash-green);
    opacity: 0.8;
}
.pmt-quicklink:hover svg {
    opacity: 1;
}

/* ---------- Section ---------- */
.pmt-dash-section {
    margin-bottom: 30px;
}
.pmt-dash-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.pmt-dash-section-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--pmt-dash-white);
    margin: 0;
}
.pmt-dash-section-header a {
    font-size: 13px;
    color: var(--pmt-dash-green);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.pmt-dash-section-header a:hover {
    color: var(--pmt-dash-green-dark);
}

.pmt-dash-empty {
    text-align: center;
    padding: 48px 20px;
    background: var(--pmt-dash-surface);
    border-radius: 12px;
    border: 1px dashed var(--pmt-dash-border);
    color: var(--pmt-dash-text-muted);
}
.pmt-dash-empty svg {
    color: var(--pmt-dash-text-dim);
}
.pmt-dash-empty p {
    margin: 0 0 16px;
    font-size: 15px;
}
.pmt-dash-empty .pmt-btn { margin-top: 8px; }

/* ---------- Section description ---------- */
.pmt-section-desc {
    color: var(--pmt-dash-text-muted);
    font-size: 14px;
    margin: 0 0 0;
    line-height: 1.5;
}

/* ---------- Order card ---------- */
.pmt-order-card {
    background: var(--pmt-dash-surface);
    border: 1px solid var(--pmt-dash-border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 14px;
    transition: all 0.2s ease;
}
.pmt-order-card:hover {
    border-color: rgba(178, 210, 53, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.pmt-order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}
.pmt-order-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pmt-order-num {
    font-weight: 700;
    font-size: 16px;
    color: var(--pmt-dash-green);
}
.pmt-order-date {
    font-size: 13px;
    color: var(--pmt-dash-text-muted);
}
.pmt-order-total {
    font-weight: 700;
    font-size: 18px;
    color: var(--pmt-dash-white);
}
.pmt-order-card-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}
.pmt-order-item {
    background: rgba(178, 210, 53, 0.08);
    border: 1px solid rgba(178, 210, 53, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--pmt-dash-text);
}
.pmt-order-tracking-line {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--pmt-dash-border);
    font-size: 13px;
    color: var(--pmt-dash-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.pmt-order-tracking-line svg {
    color: var(--pmt-dash-green);
    flex-shrink: 0;
}
.pmt-order-tracking-line a {
    color: var(--pmt-dash-green);
    font-weight: 600;
    text-decoration: none;
}
.pmt-order-tracking-line a:hover {
    color: var(--pmt-dash-green-dark);
    text-decoration: underline;
}

/* ---------- Progress bar ---------- */
.pmt-progress {
    margin: 12px 0 4px;
}
.pmt-progress-track {
    height: 4px;
    background: var(--pmt-dash-border);
    border-radius: 2px;
    overflow: hidden;
}
.pmt-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pmt-dash-green), var(--pmt-dash-green-dark));
    border-radius: 2px;
    transition: width 0.6s ease;
}
.pmt-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}
.pmt-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.pmt-step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--pmt-dash-border);
    border: 2px solid var(--pmt-dash-border);
    margin-bottom: 4px;
    transition: all 0.3s ease;
}
.pmt-progress-step.active .pmt-step-dot {
    background: var(--pmt-dash-green);
    border-color: var(--pmt-dash-green);
}
.pmt-progress-step.current .pmt-step-dot {
    border-color: var(--pmt-dash-green-dark);
    box-shadow: 0 0 0 4px rgba(178, 210, 53, 0.2);
}
.pmt-step-label {
    font-size: 10px;
    color: var(--pmt-dash-text-dim);
    text-align: center;
    white-space: nowrap;
}
.pmt-progress-step.active .pmt-step-label {
    color: var(--pmt-dash-text);
    font-weight: 600;
}
.pmt-progress-step.current .pmt-step-label {
    color: var(--pmt-dash-green);
}

/* ---------- Status Badges ---------- */
.pmt-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 600;
}
.pmt-badge--blue { background: rgba(21, 101, 192, 0.1); color: #1565c0; }
.pmt-badge--green { background: rgba(46, 125, 50, 0.1); color: #2e7d32; }
.pmt-badge--orange { background: rgba(230, 81, 0, 0.1); color: #e65100; }

.pmt-status-badge {
    display: inline-block;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}
.pmt-status--pending,
.pmt-status--on-hold  { background: rgba(150, 150, 150, 0.12); color: #666; }
.pmt-status--processing { background: rgba(21, 101, 192, 0.1); color: #1565c0; }
.pmt-status--fabrication { background: rgba(230, 81, 0, 0.1); color: #e65100; }
.pmt-status--shipped { background: rgba(0, 131, 143, 0.1); color: #00838f; }
.pmt-status--completed { background: rgba(46, 125, 50, 0.1); color: #2e7d32; }
.pmt-status--cancelled { background: rgba(198, 40, 40, 0.1); color: #c62828; }
.pmt-status--refunded { background: rgba(123, 31, 162, 0.1); color: #7b1fa2; }
.pmt-status--failed { background: rgba(198, 40, 40, 0.1); color: #c62828; }

/* ---------- Filters ---------- */
.pmt-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.pmt-filters select,
.pmt-filters input {
    padding: 10px 16px;
    border: 1px solid var(--pmt-dash-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    background: var(--pmt-dash-surface);
    color: var(--pmt-dash-text);
    transition: all 0.2s ease;
}
.pmt-filters select:focus,
.pmt-filters input:focus {
    border-color: var(--pmt-dash-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(178, 210, 53, 0.15);
}

/* ---------- Table ---------- */
.pmt-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--pmt-dash-border);
}
.pmt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.pmt-table thead th {
    background: var(--pmt-dash-surface);
    color: var(--pmt-dash-text-muted);
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    border-bottom: 1px solid var(--pmt-dash-border);
}
.pmt-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--pmt-dash-border);
    vertical-align: middle;
    color: var(--pmt-dash-text);
}
.pmt-table tbody tr:last-child td {
    border-bottom: none;
}
.pmt-table tbody tr:hover td {
    background: rgba(178, 210, 53, 0.03);
}
.pmt-table tbody td strong {
    color: var(--pmt-dash-white);
}
.pmt-td-total {
    font-weight: 600;
    color: var(--pmt-dash-white);
}
.pmt-td-items span {
    display: block;
    font-size: 12px;
    color: var(--pmt-dash-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.pmt-td-actions {
    white-space: nowrap;
}
.pmt-td-actions a {
    margin-right: 4px;
}
.pmt-td-filename {
    display: flex;
    align-items: center;
    gap: 2px;
}
.pmt-td-filename svg {
    color: var(--pmt-dash-green);
}

/* Small buttons */
.pmt-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}
.pmt-btn-invoice {
    background: var(--pmt-dash-green);
    color: var(--pmt-dash-bg) !important;
}
.pmt-btn-invoice:hover {
    background: var(--pmt-dash-green-dark);
}
.pmt-btn-view {
    background: rgba(178, 210, 53, 0.1);
    color: var(--pmt-dash-green) !important;
    border: 1px solid rgba(178, 210, 53, 0.2);
}
.pmt-btn-view:hover {
    background: rgba(178, 210, 53, 0.2);
}
.pmt-muted { color: var(--pmt-dash-text-dim); }

/* ---------- Buttons ---------- */
.pmt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}
.pmt-btn-primary {
    background: var(--pmt-dash-green);
    color: var(--pmt-dash-bg);
}
.pmt-btn-primary:hover {
    background: var(--pmt-dash-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(178, 210, 53, 0.25);
}
.pmt-btn-primary:active {
    transform: translateY(0);
}
.pmt-btn-primary:disabled,
.pmt-btn-primary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---------- Tracking card ---------- */
.pmt-tracking-card {
    background: var(--pmt-dash-surface);
    border: 1px solid var(--pmt-dash-border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}
.pmt-tracking-card:hover {
    border-color: rgba(178, 210, 53, 0.3);
}
.pmt-tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(27, 58, 92, 0.15);
    border-bottom: 1px solid var(--pmt-dash-border);
    flex-wrap: wrap;
    gap: 8px;
}
.pmt-tracking-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pmt-tracking-body {
    padding: 24px;
}
.pmt-tracking-info {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.pmt-tracking-label {
    display: block;
    font-size: 11px;
    color: var(--pmt-dash-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}
.pmt-tracking-carrier-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--pmt-dash-white);
}
.pmt-tracking-carrier-name svg {
    color: var(--pmt-dash-green);
}
.pmt-tracking-code {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--pmt-dash-green);
    letter-spacing: 1.5px;
    user-select: all;
}
.pmt-tracking-items-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pmt-tracking-items-list span {
    font-size: 13px;
    color: var(--pmt-dash-text);
}
.pmt-btn-track {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.pmt-tracking-card .pmt-progress {
    padding: 12px 24px 20px;
}

/* ---------- Upload form ---------- */
.pmt-upload-form {
    background: var(--pmt-dash-surface);
    border: 1px solid var(--pmt-dash-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}
.pmt-upload-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--pmt-dash-white);
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 16px;
}
.pmt-upload-title svg {
    color: var(--pmt-dash-green);
}
.pmt-upload-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.pmt-upload-field {
    flex: 1;
    min-width: 180px;
}
.pmt-upload-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--pmt-dash-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pmt-upload-field input,
.pmt-upload-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--pmt-dash-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    background: var(--pmt-dash-bg);
    color: var(--pmt-dash-text);
    transition: all 0.2s ease;
}
.pmt-upload-field input:focus,
.pmt-upload-field select:focus {
    border-color: var(--pmt-dash-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(178, 210, 53, 0.12);
}
.pmt-upload-field input[type="file"] {
    padding: 8px 12px;
}
.pmt-upload-field input[type="file"]::file-selector-button {
    background: var(--pmt-dash-green);
    color: var(--pmt-dash-bg);
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    margin-right: 10px;
    font-family: 'Poppins', sans-serif;
}

/* ---------- SAV form ---------- */
.pmt-sav-form {
    max-width: 750px;
}
.pmt-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.pmt-form-group {
    flex: 1;
    margin-bottom: 16px;
}
.pmt-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--pmt-dash-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pmt-form-group input,
.pmt-form-group select,
.pmt-form-group textarea {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--pmt-dash-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    background: var(--pmt-dash-surface);
    color: var(--pmt-dash-text);
    transition: all 0.2s ease;
}
.pmt-form-group input:focus,
.pmt-form-group select:focus,
.pmt-form-group textarea:focus {
    border-color: var(--pmt-dash-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(178, 210, 53, 0.12);
}
.pmt-form-group input[readonly] {
    background: var(--pmt-dash-bg);
    color: var(--pmt-dash-text-muted);
    cursor: default;
}
.pmt-form-group textarea {
    resize: vertical;
    min-height: 130px;
}
.pmt-sav-form .pmt-btn {
    margin-top: 4px;
}

/* ---------- Notices ---------- */
.pmt-notice {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pmt-notice--success {
    background: rgba(46, 125, 50, 0.12);
    color: #81c784;
    border: 1px solid rgba(46, 125, 50, 0.25);
}
.pmt-notice--error {
    background: rgba(198, 40, 40, 0.12);
    color: #ef5350;
    border: 1px solid rgba(198, 40, 40, 0.25);
}
.pmt-notice--info {
    background: rgba(21, 101, 192, 0.12);
    color: #64b5f6;
    border: 1px solid rgba(21, 101, 192, 0.25);
}

/* ---------- WooCommerce form overrides (addresses, profile) ---------- */
.woocommerce-MyAccount-content .woocommerce-address-fields input,
.woocommerce-MyAccount-content .woocommerce-address-fields select,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm input,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm select {
    background: var(--pmt-dash-surface);
    border: 1px solid var(--pmt-dash-border);
    color: var(--pmt-dash-text);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: 'Poppins', sans-serif;
}
.woocommerce-MyAccount-content .woocommerce-address-fields input:focus,
.woocommerce-MyAccount-content .woocommerce-address-fields select:focus,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm input:focus,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm select:focus {
    border-color: var(--pmt-dash-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(178, 210, 53, 0.12);
}
.woocommerce-MyAccount-content label {
    color: var(--pmt-dash-text-muted);
    font-size: 13px;
    font-weight: 500;
}
.woocommerce-MyAccount-content .woocommerce-address-fields .button,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm .button,
.woocommerce-MyAccount-content button.button {
    background: var(--pmt-dash-green) !important;
    color: var(--pmt-dash-bg) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
    transition: all 0.2s ease !important;
}
.woocommerce-MyAccount-content .woocommerce-address-fields .button:hover,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm .button:hover,
.woocommerce-MyAccount-content button.button:hover {
    background: var(--pmt-dash-green-dark) !important;
}

/* Address cards */
.woocommerce-MyAccount-content .woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address {
    background: var(--pmt-dash-surface);
    border: 1px solid var(--pmt-dash-border);
    border-radius: 12px;
    padding: 24px;
}
.woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address h3,
.woocommerce-MyAccount-content .woocommerce-Addresses header h3 {
    color: var(--pmt-dash-white);
    font-size: 16px;
    margin-bottom: 12px;
}
.woocommerce-MyAccount-content .woocommerce-Addresses address {
    color: var(--pmt-dash-text);
    font-size: 14px;
    line-height: 1.6;
}
.woocommerce-MyAccount-content .woocommerce-Addresses .edit {
    color: var(--pmt-dash-green);
    font-size: 13px;
    font-weight: 600;
}
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    color: var(--pmt-dash-white);
}
.woocommerce-MyAccount-content p {
    color: var(--pmt-dash-text);
}
.woocommerce-MyAccount-content a {
    color: var(--pmt-dash-green);
}

/* WC Notices */
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info {
    background: rgba(46, 125, 50, 0.1);
    border: 1px solid rgba(46, 125, 50, 0.25);
    border-left: 4px solid var(--pmt-dash-green);
    color: var(--pmt-dash-text);
    border-radius: 8px;
    padding: 12px 16px;
}
.woocommerce-MyAccount-content .woocommerce-error {
    background: rgba(198, 40, 40, 0.1);
    border: 1px solid rgba(198, 40, 40, 0.25);
    border-left: 4px solid #ef5350;
    color: var(--pmt-dash-text);
    border-radius: 8px;
    padding: 12px 16px;
}
.woocommerce-MyAccount-content .woocommerce-error li,
.woocommerce-MyAccount-content .woocommerce-message li {
    color: var(--pmt-dash-text);
}

/* ---------- Loading spinner ---------- */
.pmt-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--pmt-dash-bg);
    border-top-color: transparent;
    border-radius: 50%;
    animation: pmt-spin 0.6s linear infinite;
}
@keyframes pmt-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
        gap: 0;
    }
    .woocommerce-MyAccount-navigation {
        width: 100%;
        min-width: 100%;
    }
    .pmt-nav-toggle {
        display: block;
    }
    .woocommerce-MyAccount-navigation ul {
        display: none;
        position: static;
    }
    .woocommerce-MyAccount-navigation ul.pmt-nav-open {
        display: block;
        margin-bottom: 20px;
    }
    .pmt-dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .pmt-dash-quicklinks {
        grid-template-columns: repeat(2, 1fr);
    }
    .woocommerce-MyAccount-content .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pmt-dash-header {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    .pmt-form-row {
        flex-direction: column;
        gap: 0;
    }
    .pmt-tracking-info {
        flex-direction: column;
        gap: 16px;
    }
    .pmt-upload-row {
        flex-direction: column;
    }
    .pmt-filters {
        flex-direction: column;
    }
    .pmt-order-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .pmt-table thead {
        display: none;
    }
    .pmt-table tbody tr {
        display: block;
        padding: 14px;
        border-bottom: 1px solid var(--pmt-dash-border);
    }
    .pmt-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 6px 0;
        border: none;
    }
    .pmt-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--pmt-dash-text-muted);
        font-size: 12px;
        text-transform: uppercase;
    }
}

@media (max-width: 480px) {
    .pmt-dash-stats {
        grid-template-columns: 1fr;
    }
    .pmt-dash-quicklinks {
        grid-template-columns: 1fr;
    }
    .pmt-progress-steps {
        display: none;
    }
    .pmt-stat-card {
        padding: 16px;
    }
    .pmt-order-card {
        padding: 16px;
    }
    .pmt-tracking-body {
        padding: 16px;
    }
}
