/* =====================================================================
   Account area + auth pages (login, sign up, forgot / reset password)
   Loaded only on those pages via {% block extra_css %}.
   Brand tokens (--tx-navy, --tx-red …) come from style.css.
   ===================================================================== */

/* ---------- Shared form controls ---------- */
.tx-form{ display: grid; gap: 16px; }
.tx-field{ display: grid; gap: 6px; min-width: 0; }
.tx-label{
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #1F2A3C;
}
.tx-input-wrap{ position: relative; }
.tx-input-icon{
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8A94A6;
    pointer-events: none;
    display: flex;
}
.tx-input,
.tx-auth .form-control,
.tx-acc .form-control{
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1.5px solid #DCE3EC;
    border-radius: 12px;
    background: #fff;
    color: #0B1220;
    font-family: "Lexend", sans-serif;
    font-size: 16px; /* 16px stops iOS from zooming into the field */
    line-height: 1.3;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
    -webkit-appearance: none;
            appearance: none;
}
.tx-input-wrap .tx-input{ padding-left: 44px; }
.tx-input-wrap .tx-input[type="password"],
.tx-input-wrap .tx-input[name*="password"]{ padding-right: 48px; }
.tx-input::placeholder,
.tx-auth .form-control::placeholder,
.tx-acc .form-control::placeholder{ color: #A3ADBD; }
.tx-input:hover,
.tx-auth .form-control:hover,
.tx-acc .form-control:hover{ border-color: #C3CDDA; }
.tx-input:focus,
.tx-auth .form-control:focus,
.tx-acc .form-control:focus{
    outline: none;
    border-color: var(--tx-navy);
    box-shadow: 0 0 0 4px rgba(0,39,90,.10);
}
.tx-acc .form-control:disabled{ background: #F3F6FA; color: #6B7586; }
.tx-input-wrap:focus-within .tx-input-icon{ color: var(--tx-navy); }
.has-error .tx-input,
.has-error .form-control{ border-color: var(--tx-red); }
.tx-error{ margin: 0; font-size: 13px; color: var(--tx-red); }
.tx-hint{ margin: 0; font-size: 13px; color: #6B7586; }
.tx-muted{ color: #6B7586; }

.tx-eye{
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #8A94A6;
    cursor: pointer;
}
.tx-eye:hover{ color: var(--tx-navy); background: #F1F4F9; }
.tx-eye[aria-pressed="true"]{ color: var(--tx-red); }

.tx-grid-2,
.tx-grid-3{ display: grid; gap: 16px; }
@media (min-width: 576px){
    .tx-grid-2{ grid-template-columns: 1fr 1fr; }
    .tx-grid-3{ grid-template-columns: repeat(3, 1fr); }
}

.tx-link{
    color: var(--tx-navy);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(206,3,24,.35);
    transition: color .2s ease, border-color .2s ease;
}
.tx-link:hover{ color: var(--tx-red); border-color: var(--tx-red); }

/* Full-width submit (auth pages) */
.tx-btn-block{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    background: var(--tx-navy);
    color: #fff;
    font-family: "Lexend", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 24px -10px rgba(0,39,90,.6);
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tx-btn-block:hover{ background: var(--tx-red); color: #fff; box-shadow: 0 12px 26px -10px rgba(206,3,24,.6); }
.tx-btn-block:active{ transform: scale(.985); }
.tx-btn-sm{ min-height: 42px !important; padding: 0 16px !important; font-size: 14px !important; width: auto !important; }

/* Loading state while a form submits */
.tx-submit.is-loading{ position: relative; color: transparent !important; pointer-events: none; }
.tx-submit.is-loading > *{ visibility: hidden; }
.tx-submit.is-loading::after{
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2.5px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: txSpin .7s linear infinite;
}
@keyframes txSpin{ to{ transform: rotate(360deg); } }

/* ---------- Alerts ---------- */
.tx-alerts{ display: grid; gap: 10px; margin-bottom: 18px; }
.tx-alert{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 12px 12px 14px;
    border-radius: 12px;
    border: 1px solid;
    font-size: 14px;
    line-height: 1.5;
}
.tx-alert-icon{ display: flex; margin-top: 1px; flex: none; }
.tx-alert-text{ flex: 1; }
.tx-alert-close{
    flex: none;
    width: 28px;
    height: 28px;
    margin: -4px -2px -4px 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    opacity: .6;
    cursor: pointer;
}
.tx-alert-close:hover{ opacity: 1; background: rgba(0,0,0,.05); }
.tx-alert--success{ background: #ECFDF3; border-color: #ABEFC6; color: #067647; }
.tx-alert--error  { background: #FEF3F2; border-color: #FECDCA; color: #B42318; }
.tx-alert--warning{ background: #FFFAEB; border-color: #FEDF89; color: #B54708; }
.tx-alert--info,
.tx-alert--debug  { background: #EFF4FF; border-color: #C7D7FE; color: #1E3A8A; }

/* =====================================================================
   AUTH PAGES
   ===================================================================== */
.tx-auth{
    padding: clamp(24px, 5vw, 64px) 0 clamp(40px, 6vw, 80px);
    background:
        radial-gradient(50% 60% at 100% 0%, rgba(206,3,24,.08), transparent 60%),
        radial-gradient(50% 60% at 0% 100%, rgba(0,39,90,.10), transparent 60%),
        #F3F6FA;
}
.tx-auth-card{
    display: grid;
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(0,39,90,.35), 0 0 0 1px rgba(0,39,90,.05);
}
@media (min-width: 992px){
    .tx-auth-card{ grid-template-columns: 5fr 6fr; }
}

/* Brand panel (desktop only) */
.tx-auth-aside{
    display: none;
    position: relative;
    padding: 48px 40px;
    color: #fff;
    background:
        radial-gradient(80% 60% at 100% 0%, rgba(206,3,24,.45), transparent 60%),
        linear-gradient(160deg, #00275A 0%, #001A3F 100%);
    overflow: hidden;
}
.tx-auth-aside::after{
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
            mask-image: linear-gradient(180deg, #000, transparent 85%);
    pointer-events: none;
}
@media (min-width: 992px){ .tx-auth-aside{ display: flex; align-items: center; } }
.tx-auth-aside-inner{ position: relative; z-index: 1; }
.tx-auth-aside-kicker{
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .4px;
}
.tx-auth-aside-title{
    margin: 0 0 28px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.01em;
}
.tx-auth-perks{ list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.tx-auth-perks li{ display: flex; gap: 14px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.78); }
.tx-auth-perks strong{ display: block; color: #fff; font-size: 15px; }
.tx-auth-perk-icon{
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.12);
    color: #fff;
}

.tx-auth-main{ padding: clamp(24px, 5vw, 48px); }

.tx-auth-tabs{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    margin-bottom: 28px;
    border-radius: 14px;
    background: #F1F4F9;
}
.tx-auth-tabs a{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 10px;
    color: #5A6576;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.tx-auth-tabs a:hover{ color: var(--tx-navy); }
.tx-auth-tabs a.is-active{ background: #fff; color: var(--tx-navy); box-shadow: 0 2px 8px rgba(0,39,90,.10); }

.tx-auth-head{ margin-bottom: 24px; }
.tx-auth-eyebrow{
    display: block;
    margin-bottom: 6px;
    color: var(--tx-red);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.tx-auth-title{
    margin: 0 0 8px;
    color: #0B1220;
    font-size: clamp(24px, 2vw + 16px, 30px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
}
.tx-auth-sub{ margin: 0; color: #5A6576; font-size: 15px; line-height: 1.6; }
.tx-form-row-end{ display: flex; justify-content: flex-end; margin-top: -6px; }
.tx-form-row-end .tx-link{ font-size: 14px; border-bottom: 0; }
.tx-fineprint{ margin: 0; font-size: 12.5px; color: #6B7586; text-align: center; }
.tx-fineprint a{ color: var(--tx-navy); }
.tx-auth-foot{
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #EEF1F5;
    font-size: 14.5px;
    color: #5A6576;
    text-align: center;
}
.tx-back{ display: inline-flex; align-items: center; gap: 6px; border-bottom: 0; }

@media (max-width: 575.98px){
    .tx-auth{ padding: 16px 0 28px; background: #fff; }
    .tx-auth .container{ padding-left: 0; padding-right: 0; }
    .tx-auth-card{ border-radius: 0; box-shadow: none; }
    .tx-auth-main{ padding: 8px 18px 8px; }
    .tx-auth-tabs{ margin-bottom: 22px; }
}

/* =====================================================================
   ACCOUNT AREA
   ===================================================================== */
.tx-acc{
    padding: clamp(20px, 4vw, 48px) 0 clamp(40px, 6vw, 80px);
    background: #F3F6FA;
}
.tx-acc-grid{ display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.tx-acc-side, .tx-acc-main{ min-width: 0; } /* stop the scrolling tab row from widening the page */
@media (min-width: 992px){
    .tx-acc-grid{ grid-template-columns: 270px minmax(0, 1fr); gap: 32px; }
    .tx-acc-side{ position: sticky; top: 100px; }
}

/* Sidebar */
.tx-acc-side{
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 1px 2px rgba(0,39,90,.05), 0 0 0 1px rgba(0,39,90,.05);
}
.tx-acc-user{
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid #EEF1F5;
}
.tx-acc-user-text{ min-width: 0; display: grid; }
.tx-acc-user-text strong{ color: #0B1220; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-acc-user-text span{ color: #6B7586; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tx-avatar{
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
}
.tx-avatar--initials{
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--tx-navy), #1D4E89);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .5px;
}
.tx-avatar--lg{ width: 80px; height: 80px; font-size: 26px; }
.tx-avatar[hidden]{ display: none; }

.tx-acc-nav{ display: grid; gap: 4px; }
.tx-acc-nav a{
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    color: #3F4A5A;
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.tx-acc-nav a:hover{ background: #F3F6FA; color: var(--tx-navy); }
.tx-acc-nav a.is-active{ background: var(--tx-navy); color: #fff; font-weight: 600; }
.tx-acc-nav .tx-acc-nav-logout{ margin-top: 8px; color: var(--tx-red); }
.tx-acc-nav .tx-acc-nav-logout:hover{ background: #FEF3F2; color: var(--tx-red-dark); }

/* Mobile / tablet: user card + horizontal scrolling tabs */
@media (max-width: 991.98px){
    .tx-acc-side{ padding: 14px; border-radius: 16px; }
    .tx-acc-user{ padding-bottom: 12px; margin-bottom: 10px; }
    .tx-acc-nav{
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        margin: 0 -14px;
        padding: 2px 14px;
    }
    .tx-acc-nav::-webkit-scrollbar{ display: none; }
    .tx-acc-nav a{
        flex: none;
        min-height: 40px;
        padding: 0 14px;
        gap: 8px;
        border-radius: 999px;
        background: #F3F6FA;
        font-size: 14px;
        scroll-snap-align: start;
    }
    .tx-acc-nav .tx-acc-nav-logout{ margin-top: 0; background: #FEF3F2; }
}

/* Page header */
.tx-acc-head{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.tx-acc-title{
    margin: 0 0 4px;
    color: #0B1220;
    font-size: clamp(22px, 1.5vw + 16px, 30px);
    font-weight: 700;
    letter-spacing: -.01em;
}
.tx-acc-sub{ margin: 0; color: #5A6576; font-size: 15px; }
.tx-acc-head-actions:empty{ display: none; }
@media (max-width: 575.98px){
    .tx-acc-head{ align-items: flex-start; }
    .tx-acc-head .tx-btn{ width: auto !important; }
}

/* Panels */
.tx-panel{
    background: #fff;
    border-radius: 18px;
    padding: clamp(18px, 3vw, 28px);
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(0,39,90,.05), 0 0 0 1px rgba(0,39,90,.05);
}
.tx-panel--narrow{ max-width: 560px; }
.tx-panel-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.tx-panel-head h2{ margin: 0; color: #0B1220; font-size: 18px; font-weight: 700; }
.tx-panel-head .tx-link{ font-size: 14px; }
.tx-panel > .tx-hint{ margin: -8px 0 14px; }

/* Stats */
.tx-stats{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.tx-stat{
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 4px;
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,39,90,.05), 0 0 0 1px rgba(0,39,90,.05);
}
.tx-stat-icon{
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    border-radius: 12px;
}
.tx-stat-icon--navy { background: #EAF0F8; color: var(--tx-navy); }
.tx-stat-icon--red  { background: #FDECEE; color: var(--tx-red); }
.tx-stat-icon--green{ background: #E8F7EE; color: #15803D; }
.tx-stat-label{ color: #6B7586; font-size: 13px; font-weight: 500; }
.tx-stat-value{ color: #0B1220; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.tx-stat-value--sm{ font-size: 17px; }
@media (max-width: 767.98px){
    .tx-stats{ grid-template-columns: 1fr 1fr; gap: 12px; }
    .tx-stat:last-child{ grid-column: 1 / -1; }
    .tx-stat{ padding: 14px; }
    .tx-stat-value{ font-size: 22px; }
}

/* Status pill */
.tx-status{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.tx-status::before{ content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tx-status--new      { background: #EFF4FF; color: #1D4ED8; }
.tx-status--accepted { background: #FFF6E5; color: #B45309; }
.tx-status--completed{ background: #E8F7EE; color: #15803D; }
.tx-status--cancelled{ background: #FEF3F2; color: #B42318; }

/* ---------- Orders (inline expandable) ---------- */
.tx-orders{ display: grid; gap: 12px; }
.tx-order{
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0,39,90,.05), 0 0 0 1px rgba(0,39,90,.07);
    transition: box-shadow .2s ease;
    scroll-margin-top: 90px;
}
.tx-panel .tx-order{ box-shadow: 0 0 0 1px #E6EBF2; }
.tx-order[open]{ box-shadow: 0 12px 30px -16px rgba(0,39,90,.35), 0 0 0 1.5px var(--tx-navy); }
.tx-order-head{
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    border-radius: 16px;
    -webkit-tap-highlight-color: transparent;
}
.tx-order-head::-webkit-details-marker{ display: none; }
.tx-order-head:hover{ background: #FAFBFD; }
.tx-order-head:focus-visible{ outline: 3px solid rgba(0,39,90,.25); outline-offset: 2px; }
.tx-order-icon{
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #EAF0F8;
    color: var(--tx-navy);
}
.tx-order-id{ display: grid; min-width: 0; }
.tx-order-id strong{ color: #0B1220; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-order-id span{ color: #6B7586; font-size: 13px; }
.tx-order-total{ color: #0B1220; font-size: 15px; font-weight: 700; white-space: nowrap; }
.tx-order-total small{ color: #6B7586; font-size: 11px; font-weight: 600; }
.tx-order-chevron{
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F3F6FA;
    color: #3F4A5A;
    transition: transform .25s ease, background-color .2s ease;
}
.tx-order[open] .tx-order-chevron{ transform: rotate(180deg); background: var(--tx-navy); color: #fff; }

.tx-order-body{
    padding: 4px 16px 18px;
    border-top: 1px solid #EEF1F5;
    animation: txReveal .25s ease;
}
@keyframes txReveal{ from{ opacity: 0; transform: translateY(-4px); } to{ opacity: 1; transform: none; } }

/* progress steps */
.tx-steps{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 18px 0 8px;
    padding: 0;
    list-style: none;
    counter-reset: none;
}
.tx-steps li{
    position: relative;
    display: grid;
    justify-items: center;
    gap: 6px;
    color: #8A94A6;
    font-size: 12.5px;
    font-weight: 500;
}
.tx-steps li::before{
    content: "";
    position: absolute;
    top: 7px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: #E3E8EF;
}
.tx-steps li:first-child::before{ display: none; }
.tx-step-dot{
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #CBD3DF;
}
.tx-steps li.is-done{ color: #15803D; font-weight: 600; }
.tx-steps li.is-done::before{ background: #22C55E; }
.tx-steps li.is-done .tx-step-dot{ background: #22C55E; border-color: #22C55E; box-shadow: 0 0 0 4px #E8F7EE; }
.tx-order-cancelled{
    margin: 16px 0 4px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #FEF3F2;
    color: #B42318;
    font-size: 14px;
}
.tx-order-cancelled a{ color: inherit; font-weight: 600; }

.tx-items{ list-style: none; margin: 14px 0 0; padding: 0; }
.tx-item{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px dashed #E3E8EF;
}
.tx-item-info{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.tx-item-info strong{ width: 100%; color: #0B1220; font-size: 14.5px; }
.tx-chip{
    padding: 3px 8px;
    border-radius: 6px;
    background: #F3F6FA;
    color: #3F4A5A;
    font-size: 12px;
}
.tx-item-price{ display: grid; justify-items: end; text-align: right; flex: none; }
.tx-item-qty{ color: #6B7586; font-size: 12.5px; }
.tx-item-price strong{ color: #0B1220; font-size: 14.5px; }

.tx-order-meta{
    display: grid;
    gap: 12px;
    margin-top: 16px;
}
@media (min-width: 768px){ .tx-order-meta{ grid-template-columns: 1fr 1fr; } }
.tx-order-box{
    padding: 14px 16px;
    border-radius: 12px;
    background: #F8FAFC;
}
.tx-order-box h3{
    margin: 0 0 8px;
    color: #6B7586;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.tx-order-box p{ margin: 0 0 6px; color: #1F2A3C; font-size: 14px; line-height: 1.6; word-break: break-word; }
.tx-sum{ margin: 0; display: grid; gap: 6px; font-size: 14px; }
.tx-sum div{ display: flex; justify-content: space-between; gap: 12px; }
.tx-sum dt{ font-weight: 500; color: #5A6576; }
.tx-sum dd{ margin: 0; color: #1F2A3C; font-weight: 600; }
.tx-sum-total{ margin-top: 4px; padding-top: 8px; border-top: 1px solid #E3E8EF; }
.tx-sum-total dt, .tx-sum-total dd{ color: #0B1220; font-weight: 700; font-size: 15px; }

.tx-order-actions{ display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.tx-order-actions .tx-btn{ min-height: 44px; padding: 0 18px; font-size: 14px; box-shadow: none; }

/* Order card on phones: compact 2-row header */
@media (max-width: 575.98px){
    .tx-order-head{
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "icon id chev"
            "icon status total";
        row-gap: 6px;
        column-gap: 12px;
        padding: 12px 14px;
    }
    .tx-order-icon{ grid-area: icon; width: 38px; height: 38px; align-self: start; }
    .tx-order-id{ grid-area: id; }
    .tx-order-head .tx-status{ grid-area: status; justify-self: start; }
    .tx-order-total{ grid-area: total; justify-self: end; }
    .tx-order-chevron{ grid-area: chev; justify-self: end; width: 28px; height: 28px; }
    .tx-order-body{ padding: 4px 14px 16px; }
    .tx-order-actions{ display: grid; grid-template-columns: 1fr 1fr; }
    .tx-order-actions .tx-btn{ width: 100%; }
}

/* Empty state */
.tx-empty{ display: grid; justify-items: center; gap: 6px; padding: 28px 12px; text-align: center; }
.tx-empty-icon{
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: #EAF0F8;
    color: var(--tx-navy);
}
.tx-empty h3{ margin: 0; color: #0B1220; font-size: 18px; font-weight: 700; }
.tx-empty p{ margin: 0 0 12px; color: #6B7586; font-size: 14.5px; }

/* Account details list */
.tx-details{ margin: 0; display: grid; }
.tx-details div{
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #EEF1F5;
    font-size: 14.5px;
}
.tx-details div:last-child{ border-bottom: 0; padding-bottom: 0; }
.tx-details dt{ color: #6B7586; font-weight: 500; }
.tx-details dd{ margin: 0; color: #0B1220; font-weight: 500; word-break: break-word; }
@media (max-width: 575.98px){
    .tx-details div{ grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
    .tx-details dt{ font-size: 12.5px; }
}

/* Profile form */
.tx-avatar-edit{ display: flex; align-items: center; gap: 18px; }
.tx-avatar-edit input[type="file"]{
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.tx-upload{ cursor: pointer; margin-bottom: 6px; }
.tx-acc .tx-form{ gap: 0; }
.tx-acc .tx-panel .tx-field + .tx-field,
.tx-acc .tx-panel .tx-grid-2 + .tx-grid-2{ margin-top: 16px; }
.tx-acc .tx-panel--narrow .tx-form{ gap: 16px; }
.tx-form-actions{ display: flex; justify-content: flex-end; }
@media (max-width: 575.98px){
    .tx-form-actions .tx-btn{ width: 100%; }
}

@media (prefers-reduced-motion: reduce){
    .tx-order-body, .tx-order-chevron{ animation: none; transition: none; }
}

/* Small fixes */
.tx-acc-head-actions .tx-btn{ white-space: nowrap; }
.tx-acc .tx-panel .tx-grid-2 > .tx-field + .tx-field,
.tx-acc .tx-panel .tx-grid-3 > .tx-field + .tx-field{ margin-top: 0; }
