/* ═══════════════════════════════════════════
   TIMILUC SRL — My Account
   Full custom account page: auth, dashboard,
   orders, addresses, settings, payments.
   ═══════════════════════════════════════════ */


/* ═══════════════════════════════════════════
   PAGE WRAPPER
   ═══════════════════════════════════════════ */
#tml-account-page {
    min-height: 100vh;
    background: var(--tml-bg);
}

.tml-account-inner {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px) clamp(60px, 8vw, 120px);
}

.tml-account-inner.tml-account-wide {
    max-width: 1320px;
}


/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.tml-account-hero {
    padding: clamp(140px, 18vw, 200px) clamp(24px, 5vw, 80px) clamp(30px, 4vw, 50px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tml-account-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 206, 209, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.tml-account-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tml-cyan), transparent);
    opacity: 0.4;
}

.tml-account-hero-inner {
    position: relative;
    z-index: 1;
}

.tml-account-hero .tml-sec-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--tml-font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--tml-cyan);
    margin-bottom: 1rem;
}

.tml-account-hero .tml-sec-tag::before,
.tml-account-hero .tml-sec-tag::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--tml-cyan);
    opacity: 0.4;
}

.tml-account-hero .tml-sec-h {
    font-family: var(--tml-font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--tml-white);
    line-height: 1.15;
    margin: 0 auto;
}

.tml-account-hero .tml-sec-h em {
    font-style: italic;
    color: var(--tml-cyan);
}

.tml-account-hero .tml-sec-p {
    font-family: var(--tml-font-sans);
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    color: var(--tml-muted);
    margin: 0.75rem auto 0;
    max-width: 500px;
    line-height: 1.6;
}


/* ═══════════════════════════════════════════
   CONTAINER (messages sit above dashboard)
   ═══════════════════════════════════════════ */
.tml-account-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 80px) clamp(60px, 8vw, 120px);
}


/* ═══════════════════════════════════════════
   MESSAGES
   ═══════════════════════════════════════════ */
.tml-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-radius: 14px;
    font-family: var(--tml-font-sans);
    font-size: 0.88rem;
    color: var(--tml-txt);
    margin-bottom: 16px;
    background: rgba(0, 206, 209, 0.04);
    border: 1px solid rgba(0, 206, 209, 0.1);
    border-left: 3px solid var(--tml-cyan);
}

.tml-msg-success {
    background: rgba(22, 163, 74, 0.06);
    border-color: rgba(22, 163, 74, 0.15);
    border-left-color: var(--tml-success);
    color: var(--tml-success);
}

.tml-msg-error {
    background: rgba(220, 38, 38, 0.04);
    border-color: rgba(220, 38, 38, 0.1);
    border-left-color: var(--tml-error);
    color: #fca5a5;
}


/* ═══════════════════════════════════════════
   DASHBOARD — Sidebar + Main Grid
   ═══════════════════════════════════════════ */
.tml-dashboard {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: clamp(24px, 3vw, 36px);
    margin-top: 24px;
}


/* ═══════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════ */
.tml-side {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 22px;
    position: sticky;
    top: var(--tml-header-offset, 108px);
    height: fit-content;
    backdrop-filter: blur(12px);
}

/* User chip */
.tml-userchip {
    padding: 16px;
    border-radius: 14px;
    background: rgba(0, 206, 209, 0.04);
    border: 1px solid rgba(0, 206, 209, 0.1);
    margin-bottom: 20px;
}

.tml-userchip-name {
    color: var(--tml-white);
    font-family: var(--tml-font-sans);
    font-weight: 700;
    font-size: 1.05rem;
}

.tml-userchip-email {
    color: var(--tml-muted);
    font-family: var(--tml-font-sans);
    font-size: 0.82rem;
    margin-top: 4px;
}

/* Navigation — scoped to .tml-side to avoid overriding header .tml-nav */
.tml-side .tml-nav {
    display: grid;
    gap: 6px;
}

.tml-side .tml-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--tml-muted);
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    transition: all var(--tml-transition);
    font-family: var(--tml-font-sans);
    font-weight: 500;
    font-size: 0.9rem;
}

.tml-side .tml-nav a:hover {
    color: var(--tml-white);
    background: rgba(0, 206, 209, 0.04);
    border-color: rgba(0, 206, 209, 0.08);
    transform: translateX(4px);
}

.tml-side .tml-nav a.is-active {
    background: rgba(0, 206, 209, 0.08);
    border-color: rgba(0, 206, 209, 0.15);
    color: var(--tml-cyan);
    font-weight: 600;
}

.tml-side .tml-nav-logout {
    margin-top: 8px;
}

.tml-side .tml-nav a.tml-nav-logout {
    color: rgba(220, 38, 38, 0.5);
}

.tml-side .tml-nav a.tml-nav-logout:hover {
    background: rgba(220, 38, 38, 0.06);
    color: var(--tml-error);
    border-color: rgba(220, 38, 38, 0.15);
}

/* Pills */
.tml-pill {
    font-family: var(--tml-font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--tml-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: 0.04em;
}

.tml-pill-accent {
    background: rgba(0, 206, 209, 0.08);
    border-color: rgba(0, 206, 209, 0.2);
    color: var(--tml-cyan);
}

.tml-pill-danger {
    background: rgba(220, 38, 38, 0.06);
    border-color: rgba(220, 38, 38, 0.15);
    color: rgba(220, 38, 38, 0.6);
}

.tml-side .tml-nav a.tml-nav-logout .tml-pill-danger {
    color: rgba(220, 38, 38, 0.5);
}

/* Sidebar CTA */
.tml-side-cta {
    margin-top: 20px;
}

.tml-side-cta .tml-btn-primary {
    width: 100%;
    justify-content: center;
}


/* ═══════════════════════════════════════════
   MAIN CONTENT AREA
   ═══════════════════════════════════════════ */
.tml-main {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 22px;
    padding: clamp(26px, 4vw, 40px);
    backdrop-filter: blur(12px);
    min-height: 300px;
}


/* ═══════════════════════════════════════════
   TAB PANE ANIMATION
   ═══════════════════════════════════════════ */
.tml-tab-pane {
    animation: tmlSlideIn 0.3s ease forwards;
    opacity: 0;
}

@keyframes tmlSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════
   SECTION HEADER
   ═══════════════════════════════════════════ */
.tml-section-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tml-section-header h3 {
    font-family: var(--tml-font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--tml-white);
    margin: 0 0 4px;
}

.tml-section-header p {
    font-family: var(--tml-font-sans);
    font-size: 0.88rem;
    color: var(--tml-muted);
    margin: 0;
}


/* ═══════════════════════════════════════════
   GRID & CARDS
   ═══════════════════════════════════════════ */
.tml-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tml-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    transition: all var(--tml-transition);
}

.tml-card:hover {
    border-color: rgba(0, 206, 209, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Key-value pairs */
.tml-kv {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
}

.tml-kv:last-of-type {
    border-bottom: 0;
}

.tml-kv-k {
    font-family: var(--tml-font-sans);
    font-size: 0.88rem;
    color: var(--tml-muted);
}

.tml-kv-v {
    font-family: var(--tml-font-sans);
    font-size: 0.88rem;
    color: var(--tml-white);
    font-weight: 600;
}


/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.tml-btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.tml-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 60px;
    border: none;
    background: var(--tml-cyan);
    color: var(--tml-bg);
    font-family: var(--tml-font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all var(--tml-transition);
    text-decoration: none;
}

.tml-btn-primary:hover {
    background: var(--tml-cyan-dim);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 206, 209, 0.25);
    color: var(--tml-bg);
}

.tml-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 60px;
    background: transparent;
    border: 1px solid rgba(0, 206, 209, 0.2);
    color: var(--tml-cyan);
    font-family: var(--tml-font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--tml-transition);
    text-decoration: none;
}

.tml-btn-outline:hover {
    background: rgba(0, 206, 209, 0.06);
    border-color: var(--tml-cyan);
    transform: translateY(-2px);
    color: var(--tml-cyan);
}

.tml-btn-danger {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 60px;
    background: transparent;
    border: 1px solid rgba(220, 38, 38, 0.25);
    color: var(--tml-error);
    font-family: var(--tml-font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--tml-transition);
}

.tml-btn-danger:hover {
    background: rgba(220, 38, 38, 0.08);
    border-color: var(--tml-error);
}


/* ═══════════════════════════════════════════
   ORDERS
   ═══════════════════════════════════════════ */
.tml-orders {
    display: grid;
    gap: 14px;
}

.tml-order {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color var(--tml-transition);
}

.tml-order:hover {
    border-color: rgba(0, 206, 209, 0.15);
}

.tml-order summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--tml-white);
    background: rgba(255, 255, 255, 0.01);
    transition: background var(--tml-transition);
}

.tml-order summary:hover {
    background: rgba(0, 206, 209, 0.02);
}

.tml-order summary::-webkit-details-marker {
    display: none;
}

.tml-order-id {
    font-family: var(--tml-font-sans);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--tml-white);
}

.tml-order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--tml-muted);
    font-family: var(--tml-font-sans);
    font-size: 0.82rem;
    margin-top: 4px;
}

.tml-order-meta-dot {
    color: rgba(0, 206, 209, 0.4);
}

.tml-order-status {
    color: var(--tml-cyan);
}

.tml-order-total {
    font-family: var(--tml-font-sans);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--tml-gold);
    white-space: nowrap;
}

.tml-order-body {
    padding: 0 22px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 8px;
    padding-top: 16px;
}

.tml-order-items {
    display: grid;
    gap: 10px;
}

.tml-order-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.tml-order-item-name {
    font-family: var(--tml-font-sans);
    font-weight: 600;
    color: var(--tml-white);
    font-size: 0.88rem;
}

.tml-order-item-qty {
    font-family: var(--tml-font-sans);
    font-size: 0.8rem;
    color: var(--tml-muted);
    margin-top: 3px;
}

.tml-order-item-price {
    font-family: var(--tml-font-sans);
    font-weight: 600;
    color: var(--tml-cyan);
    white-space: nowrap;
}


/* ═══════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════ */
.tml-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tml-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 4px;
}

.tml-field label {
    font-family: var(--tml-font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
}

.tml-field input,
.tml-field select,
.tml-field textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    font-family: var(--tml-font-sans);
    font-size: 0.85rem;
    color: var(--tml-white);
    transition: border-color var(--tml-transition), box-shadow var(--tml-transition);
    outline: none;
}

.tml-field input:focus,
.tml-field select:focus,
.tml-field textarea:focus {
    border-color: var(--tml-cyan);
    box-shadow: 0 0 0 3px rgba(0, 206, 209, 0.1);
}

.tml-field input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.tml-form-section-title {
    font-family: var(--tml-font-sans);
    font-weight: 700;
    font-size: 1rem;
    color: var(--tml-cyan);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}


/* ═══════════════════════════════════════════
   AUTH CARD (login/register)
   ═══════════════════════════════════════════ */
.tml-auth-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 22px;
    padding: clamp(28px, 4vw, 48px);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.tml-auth-title {
    font-family: var(--tml-font-serif);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--tml-white);
    margin-bottom: 0.5rem;
    text-align: center;
}

.tml-auth-title em {
    font-style: italic;
    color: var(--tml-cyan);
}

.tml-auth-sub {
    font-family: var(--tml-font-sans);
    font-size: 0.88rem;
    color: var(--tml-muted);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.tml-auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 4px;
}

.tml-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--tml-font-sans);
    font-size: 0.84rem;
    color: var(--tml-muted);
    cursor: pointer;
}

.tml-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--tml-cyan);
    cursor: pointer;
}

.tml-lost-pw {
    font-family: var(--tml-font-sans);
    font-size: 0.82rem;
    color: var(--tml-muted);
    text-decoration: none;
    transition: color var(--tml-transition);
}

.tml-lost-pw:hover {
    color: var(--tml-cyan);
}

.tml-auth-switcher {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--tml-muted);
    font-family: var(--tml-font-sans);
    font-size: 0.88rem;
}

.tml-switch-link {
    color: var(--tml-cyan);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-left: 4px;
    transition: color var(--tml-transition);
}

.tml-switch-link:hover {
    color: var(--tml-gold);
}

.tml-fade-in {
    animation: tmlFadeIn 0.4s ease-in-out;
}

@keyframes tmlFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════
   WC VIEW-ORDER ENDPOINT OVERRIDES
   (WooCommerce renders its own HTML here)
   ═══════════════════════════════════════════ */
body.tml-dark-contul-meu .woocommerce-order > p,
body.tml-dark-contul-meu .woocommerce-order > p.order-info {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 14px !important;
    padding: 18px 22px !important;
    color: var(--tml-txt) !important;
    font-family: var(--tml-font-sans) !important;
    font-size: 0.9rem !important;
    margin-bottom: 24px !important;
    line-height: 1.7 !important;
}

body.tml-dark-contul-meu .woocommerce-order > p mark,
body.tml-dark-contul-meu mark.order-number,
body.tml-dark-contul-meu mark.order-date,
body.tml-dark-contul-meu mark.order-status {
    background: transparent !important;
    color: var(--tml-white) !important;
    font-weight: 700 !important;
    padding: 0 !important;
}

body.tml-dark-contul-meu h2.woocommerce-order-details__title {
    font-family: var(--tml-font-serif) !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--tml-white) !important;
    margin-top: 28px !important;
    margin-bottom: 14px !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    background: transparent !important;
}

body.tml-dark-contul-meu table.shop_table,
body.tml-dark-contul-meu .woocommerce table.shop_table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 1.5rem !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}

body.tml-dark-contul-meu table.shop_table th,
body.tml-dark-contul-meu table.shop_table td {
    padding: 14px 18px !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    color: var(--tml-txt) !important;
    vertical-align: middle !important;
    background: transparent !important;
    font-family: var(--tml-font-sans) !important;
    font-size: 0.86rem !important;
}

body.tml-dark-contul-meu table.shop_table thead th {
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--tml-muted) !important;
    font-weight: 700 !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
}

body.tml-dark-contul-meu table.shop_table tr,
body.tml-dark-contul-meu table.shop_table tr:nth-child(even),
body.tml-dark-contul-meu table.shop_table tr:nth-child(odd) {
    background-color: transparent !important;
}

body.tml-dark-contul-meu table.shop_table tbody td.product-name,
body.tml-dark-contul-meu table.shop_table tbody td.product-name a {
    color: var(--tml-cyan) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

body.tml-dark-contul-meu table.shop_table tfoot td {
    font-weight: 700 !important;
    color: var(--tml-gold) !important;
}

body.tml-dark-contul-meu table.shop_table tfoot tr:last-child th,
body.tml-dark-contul-meu table.shop_table tfoot tr:last-child td {
    border-bottom: none !important;
}

/* Customer details in order view */
body.tml-dark-contul-meu .woocommerce-customer-details {
    margin-top: 2rem !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

body.tml-dark-contul-meu .woocommerce-customer-details h2,
body.tml-dark-contul-meu .woocommerce-customer-details h3,
body.tml-dark-contul-meu .woocommerce-customer-details .woocommerce-column__title {
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--tml-muted) !important;
    font-family: var(--tml-font-sans) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    margin: 0 !important;
    padding: 14px 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 14px 14px 0 0 !important;
}

body.tml-dark-contul-meu .woocommerce-customer-details address {
    background: rgba(255, 255, 255, 0.015) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-top: none !important;
    padding: 20px !important;
    font-style: normal !important;
    font-family: var(--tml-font-sans) !important;
    color: var(--tml-txt) !important;
    line-height: 1.7 !important;
    margin: 0 !important;
    border-radius: 0 0 14px 14px !important;
}

body.tml-dark-contul-meu .woocommerce-customer-details .woocommerce-columns,
body.tml-dark-contul-meu .woocommerce-customer-details .col2-set {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    margin: 0 !important;
    width: 100% !important;
}

body.tml-dark-contul-meu .woocommerce-customer-details .woocommerce-column,
body.tml-dark-contul-meu .woocommerce-customer-details .col-1,
body.tml-dark-contul-meu .woocommerce-customer-details .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide WC invoice rows in table footer */
body.tml-dark-contul-meu table.shop_table tfoot tr:has(.order-actions-button),
body.tml-dark-contul-meu table.shop_table tfoot tr:has(a.invoice) {
    display: none !important;
}

/* WooCommerce add-payment-method form overrides */
body.tml-dark-contul-meu .woocommerce-PaymentMethods,
body.tml-dark-contul-meu #add_payment_method {
    color: var(--tml-txt);
}

body.tml-dark-contul-meu .woocommerce-PaymentMethods label,
body.tml-dark-contul-meu #add_payment_method label {
    color: var(--tml-txt) !important;
    font-family: var(--tml-font-sans) !important;
}

body.tml-dark-contul-meu #add_payment_method .woocommerce-button,
body.tml-dark-contul-meu #add_payment_method button[type="submit"] {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 60px;
    border: none;
    background: var(--tml-cyan) !important;
    color: var(--tml-bg) !important;
    font-family: var(--tml-font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all var(--tml-transition);
    margin-top: 16px;
}


/* ═══════════════════════════════════════════
   RESPONSIVE — 921px (tablet)
   ═══════════════════════════════════════════ */
@media (max-width: 921px) {
    .tml-dashboard {
        grid-template-columns: 1fr;
    }

    .tml-side {
        position: static;
    }

    .tml-side .tml-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .tml-side .tml-nav a {
        padding: 9px 16px;
        border-radius: 50px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .tml-side .tml-nav a:hover {
        transform: none;
    }

    .tml-pill {
        display: none;
    }

    .tml-side-cta {
        display: none;
    }

    .tml-grid-2 {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════
   RESPONSIVE — 768px (mobile)
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .tml-account-hero {
        padding: clamp(120px, 16vw, 160px) clamp(20px, 4vw, 40px) clamp(24px, 3vw, 40px);
    }

    .tml-auth-card {
        padding: clamp(24px, 4vw, 32px);
    }

    .tml-account-inner {
        padding: 0 clamp(16px, 4vw, 32px) clamp(40px, 6vw, 80px);
    }
}


/* ═══════════════════════════════════════════
   RESPONSIVE — 480px (small mobile)
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {
    .tml-main {
        padding: clamp(20px, 4vw, 28px);
    }

    .tml-btn-primary,
    .tml-btn-outline {
        width: 100%;
    }

    .tml-btn-row {
        flex-direction: column;
    }

    .tml-order summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


/* ═══════════════════════════════════════════
   LARGE DESKTOP — 1400px+
   ═══════════════════════════════════════════ */
@media (min-width: 1400px) {
    .tml-account-inner.tml-account-wide {
        max-width: 1400px;
    }

    .tml-dashboard {
        grid-template-columns: 280px 1fr;
    }
}
