/* LW Partner Suite – front end. Uses the site's fonts; colours follow the LW palette. */
.lwp-auth,.lwp-portal{--lwp-ink:#202526;--lwp-muted:#5d6668;--lwp-line:#dedede;--lwp-accent:#b8e4e8;--lwp-accent-ink:#087e92;--lwp-paper:#fff;color:var(--lwp-ink);max-width:880px;margin:0 auto}
.lwp-auth .lwp-pills{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 26px;padding:0;border:0;background:none}
.lwp-auth .lwp-pills .lwp-pill{appearance:none;-webkit-appearance:none;margin:0;border:1px solid var(--lwp-line)!important;background:var(--lwp-paper)!important;color:var(--lwp-ink)!important;font:inherit;font-size:14px!important;font-weight:600;line-height:1!important;padding:12px 18px!important;border-radius:999px!important;cursor:pointer;white-space:nowrap;box-shadow:none!important;text-decoration:none;opacity:1!important}
.lwp-auth .lwp-pills .lwp-pill:hover{border-color:var(--lwp-ink)!important}
.lwp-auth .lwp-pills .lwp-pill.is-active{background:var(--lwp-ink)!important;border-color:var(--lwp-ink)!important;color:#fff!important}
.lwp-auth .lwp-pills .lwp-pill:focus-visible{outline:2px solid var(--lwp-accent-ink);outline-offset:2px}
@media (max-width:640px){.lwp-auth .lwp-pills .lwp-pill{flex:1 1 calc(50% - 8px);padding:12px 10px!important;font-size:13px!important}}
.lwp-applied{background:#eef8f0;border-left:3px solid #11643a;padding:12px 16px;margin:0 0 20px}
.lwp-panel h2{margin:0 0 6px}
.lwp-intro{margin:0 0 10px;color:var(--lwp-muted)}
.lwp-note{background:#f1f9fa;border-left:3px solid var(--lwp-accent-ink);padding:10px 14px;margin:0 0 18px;font-size:14px}
.lwp-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
.lwp-grid .form-row{margin:0 0 14px;padding:0;width:auto;float:none}
.lwp-grid .lwp-wide{grid-column:1/-1}
@media (max-width:640px){.lwp-grid{grid-template-columns:1fr}}
.lwp-register-form label,.lwp-auth .woocommerce-form-login label{display:block;margin-bottom:5px;font-size:14px;font-weight:600}
.lwp-register-form .input-text,.lwp-register-form textarea{width:100%;box-sizing:border-box}
.lwp-hp{position:absolute!important;left:-9999px!important;height:1px;overflow:hidden}
.lwp-privacy{font-size:13px;color:var(--lwp-muted);margin:4px 0 14px}
.lwp-login-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}

/* Affiliate portal */
.lwp-portal{max-width:none}
.lwp-portal h3{margin:30px 0 12px;font-size:18px}
.lwp-eyebrow{margin:0 0 4px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--lwp-accent-ink);font-weight:700}
.lwp-muted{color:var(--lwp-muted)}
.lwp-small{font-size:13px}
.lwp-portal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;flex-wrap:wrap;margin-bottom:22px}
.lwp-portal-head h2{margin:0 0 6px}
.lwp-portal-head p{margin:0}
.lwp-owed{background:var(--lwp-ink);color:#fff;border-radius:16px;padding:18px 22px;min-width:220px;display:flex;flex-direction:column;gap:4px}
.lwp-owed > span{font-size:13px;opacity:.85}
.lwp-owed strong,.lwp-owed strong *{font-size:30px!important;line-height:1.15;color:#fff!important;font-weight:700}
.lwp-owed small{font-size:12px;opacity:.8}
.lwp-share{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:22px}
@media (max-width:760px){.lwp-share{grid-template-columns:1fr}}
.lwp-share-item{background:#f1f9fa;border:1px solid var(--lwp-accent);border-radius:14px;padding:16px}
.lwp-share-item label{display:block;font-weight:700;font-size:14px;margin-bottom:8px}
.lwp-copy{display:flex;gap:8px;margin-bottom:6px}
.lwp-copy input{flex:1;min-width:0;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px;background:#fff}
.lwp-copy .button{white-space:nowrap}
.lwp-copy .button.is-copied{background:var(--lwp-accent-ink);color:#fff}
.lwp-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:8px}
@media (max-width:760px){.lwp-stats{grid-template-columns:1fr 1fr}}
.lwp-stat{border:1px solid var(--lwp-line);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:3px;background:#fff}
.lwp-stat-label{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--lwp-muted);font-weight:700}
.lwp-stat-value{font-size:22px;line-height:1.2}
.lwp-stat-sub{font-size:12px;color:var(--lwp-muted)}
.lwp-stat-comm{font-size:13px;color:var(--lwp-accent-ink);font-weight:600}
.lwp-chart{display:flex;align-items:flex-end;gap:3px;height:140px;padding:10px;border:1px solid var(--lwp-line);border-radius:14px;background:#fff}
.lwp-bar{flex:1;background:#e6eeee;border-radius:3px 3px 0 0;min-height:2px}
.lwp-bar.has-sales{background:var(--lwp-accent-ink)}
.lwp-chart-axis{display:flex;justify-content:space-between;font-size:12px;color:var(--lwp-muted);margin-top:4px}
.lwp-table-wrap{overflow-x:auto}
.lwp-table{width:100%;border-collapse:collapse;font-size:14px}
.lwp-table th,.lwp-table td{padding:10px 12px;border-bottom:1px solid var(--lwp-line);text-align:left;vertical-align:top}
.lwp-badge{display:inline-block;padding:3px 9px;border-radius:999px;font-size:12px;font-weight:600;background:#eee}
.lwp-badge-unpaid{background:#fff4d6;color:#8a5a00}
.lwp-badge-paid{background:#dff5e8;color:#11643a}
.lwp-badge-excluded,.lwp-badge-void{background:#eef0f0;color:#5d6668}

/* ===================================================================
   My Account (logged in) – LW look: square edges, aqua + ink, Avenir
   =================================================================== */
body.lwp-account{--lwa-ink:#202e31;--lwa-aqua:#b8e4e8;--lwa-aqua-soft:#eef8f9;--lwa-deep:#087e92;--lwa-line:#d8dedd;--lwa-muted:#5f6b6d;--lwa-paper:#fafaf7}
body.lwp-account .woocommerce{display:grid;grid-template-columns:240px minmax(0,1fr);gap:30px 44px;align-items:start;width:90%;max-width:1280px;margin:0 auto;padding:48px 0 80px;color:var(--lwa-ink)}
body.lwp-account .woocommerce::before,body.lwp-account .woocommerce::after{display:none}
body.lwp-account .woocommerce>.woocommerce-notices-wrapper{grid-column:1/-1}
body.lwp-account .woocommerce-MyAccount-navigation,body.lwp-account .woocommerce-MyAccount-content{float:none!important;width:auto!important;margin:0}

/* Greeting band */
.lwp-account-head{grid-column:1/-1;display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap;padding:30px 34px;background:var(--lwa-aqua);border:0}
.lwp-account-head h2{margin:0;font-size:clamp(28px,3.4vw,40px);line-height:1.1;font-weight:500;letter-spacing:-.01em;color:var(--lwa-ink);text-transform:none}
.lwp-account-eyebrow{margin:0 0 6px;font-size:11px;letter-spacing:.18em;text-transform:uppercase;font-weight:600;color:var(--lwa-ink);opacity:.7}
.lwp-account-since{margin:8px 0 0;font-size:13px;color:var(--lwa-ink);opacity:.75}
.lwp-account-head-side{display:flex;align-items:center;gap:18px}
.lwp-tier-badge{display:inline-block;padding:8px 14px;background:var(--lwa-ink);color:#fff;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.lwp-account-logout{font-size:14px;color:var(--lwa-ink);text-decoration:underline;text-underline-offset:3px}

/* Side menu */
body.lwp-account .woocommerce-MyAccount-navigation{position:sticky;top:150px;border:1px solid var(--lwa-line);background:#fff}
body.lwp-account .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:8px 0}
body.lwp-account .woocommerce-MyAccount-navigation li{margin:0;padding:0;border:0}
body.lwp-account .woocommerce-MyAccount-navigation li a{display:flex;align-items:center;gap:12px;padding:13px 20px;font-size:15px;color:var(--lwa-ink);text-decoration:none;border-left:3px solid transparent;transition:background .15s ease,border-color .15s ease}
body.lwp-account .woocommerce-MyAccount-navigation li a::before{content:"";flex:0 0 20px;width:20px;height:20px;background:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;opacity:.85}
body.lwp-account .woocommerce-MyAccount-navigation li a:hover{background:var(--lwa-aqua-soft)}
body.lwp-account .woocommerce-MyAccount-navigation li.is-active a{background:var(--lwa-aqua-soft);border-left-color:var(--lwa-ink);font-weight:600}
body.lwp-account .woocommerce-MyAccount-navigation-link--customer-logout{border-top:1px solid var(--lwa-line)!important;margin-top:8px!important;padding-top:8px!important}
body.lwp-account .woocommerce-MyAccount-navigation-link--customer-logout a{color:var(--lwa-muted)}
body.lwp-account .woocommerce-MyAccount-navigation-link--dashboard a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22/%3E%3Crect%20x%3D%2214%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22/%3E%3Crect%20x%3D%223%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22/%3E%3Crect%20x%3D%2214%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22/%3E%3Crect%20x%3D%223%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22/%3E%3C/svg%3E")}
body.lwp-account .woocommerce-MyAccount-navigation-link--orders a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%207h12l-1%2013H7L6%207z%22/%3E%3Cpath%20d%3D%22M9%207a3%203%200%200%201%206%200%22/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%207h12l-1%2013H7L6%207z%22/%3E%3Cpath%20d%3D%22M9%207a3%203%200%200%201%206%200%22/%3E%3C/svg%3E")}
body.lwp-account .woocommerce-MyAccount-navigation-link--downloads a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203v12%22/%3E%3Cpath%20d%3D%22m7%2010%205%205%205-5%22/%3E%3Cpath%20d%3D%22M4%2021h16%22/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203v12%22/%3E%3Cpath%20d%3D%22m7%2010%205%205%205-5%22/%3E%3Cpath%20d%3D%22M4%2021h16%22/%3E%3C/svg%3E")}
body.lwp-account .woocommerce-MyAccount-navigation-link--edit-address a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2021s-7-6.2-7-11a7%207%200%200%201%2014%200c0%204.8-7%2011-7%2011z%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%222.5%22/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2021s-7-6.2-7-11a7%207%200%200%201%2014%200c0%204.8-7%2011-7%2011z%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%222.5%22/%3E%3C/svg%3E")}
body.lwp-account .woocommerce-MyAccount-navigation-link--payment-methods a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%226%22%20width%3D%2218%22%20height%3D%2213%22%20rx%3D%221%22/%3E%3Cpath%20d%3D%22M3%2010h18%22/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%226%22%20width%3D%2218%22%20height%3D%2213%22%20rx%3D%221%22/%3E%3Cpath%20d%3D%22M3%2010h18%22/%3E%3C/svg%3E")}
body.lwp-account .woocommerce-MyAccount-navigation-link--edit-account a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M4%2021v-1a8%208%200%200%201%2016%200v1%22/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M4%2021v-1a8%208%200%200%201%2016%200v1%22/%3E%3C/svg%3E")}
body.lwp-account .woocommerce-MyAccount-navigation-link--affiliate-portal a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2020V10%22/%3E%3Cpath%20d%3D%22M10%2020V4%22/%3E%3Cpath%20d%3D%22M16%2020v-7%22/%3E%3Cpath%20d%3D%22M22%2020H2%22/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2020V10%22/%3E%3Cpath%20d%3D%22M10%2020V4%22/%3E%3Cpath%20d%3D%22M16%2020v-7%22/%3E%3Cpath%20d%3D%22M22%2020H2%22/%3E%3C/svg%3E")}
body.lwp-account .woocommerce-MyAccount-navigation-link--customer-logout a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M15%204h4v16h-4%22/%3E%3Cpath%20d%3D%22M10%208l-4%204%204%204%22/%3E%3Cpath%20d%3D%22M6%2012h10%22/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M15%204h4v16h-4%22/%3E%3Cpath%20d%3D%22M10%208l-4%204%204%204%22/%3E%3Cpath%20d%3D%22M6%2012h10%22/%3E%3C/svg%3E")}

/* Content */
body.lwp-account .woocommerce-MyAccount-content{min-width:0;font-size:15px;line-height:1.6}
body.lwp-account .woocommerce-MyAccount-content>p:first-child{margin-top:0}
body.lwp-account .woocommerce-MyAccount-content h2,body.lwp-account .woocommerce-MyAccount-content h3{font-weight:500;color:var(--lwa-ink);text-transform:none}
body.lwp-account .woocommerce-MyAccount-content a:not(.button){color:var(--lwa-deep)}

/* Dashboard tiles */
.lwp-dash .woocommerce-info{margin-bottom:22px}
.lwp-dash-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.lwp-tile{position:relative;display:flex;flex-direction:column;gap:6px;min-height:170px;padding:22px 22px 20px;background:#fff;border:1px solid var(--lwa-line);color:var(--lwa-ink)!important;text-decoration:none!important;transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease}
@media (hover:hover){a.lwp-tile:hover{border-color:var(--lwa-ink);transform:translateY(-2px);box-shadow:0 10px 24px -18px rgba(32,46,49,.55)}}
.lwp-tile-feature{background:var(--lwa-aqua-soft);border-color:var(--lwa-aqua)}
.lwp-tile-dark{background:var(--lwa-ink);border-color:var(--lwa-ink);color:#fff!important}
.lwp-tile-dark .lwp-tile-label,.lwp-tile-dark .lwp-tile-text{color:rgba(255,255,255,.8)}
.lwp-tile-dark .lwp-tile-value,.lwp-tile-dark .lwp-tile-value *{color:#fff}
.lwp-tile-dark .lwp-tile-link{color:var(--lwa-aqua)}
.lwp-tile-label{font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:600;color:var(--lwa-muted)}
.lwp-tile-value{font-size:34px;line-height:1.1;font-weight:500}
.lwp-tile-value-sm{font-size:22px;line-height:1.25}
.lwp-tile-text{font-size:14px;color:var(--lwa-muted);line-height:1.5}
.lwp-tile-link{margin-top:auto;padding-top:10px;font-size:14px;font-weight:600;color:var(--lwa-deep)}
.lwp-tile-chip{align-self:flex-start;margin-top:4px;padding:5px 10px;background:var(--lwa-aqua);font-size:12px;font-weight:600}
.lwp-dash-section{margin-top:34px}
.lwp-dash-section-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:10px}
.lwp-dash-section-head h3{margin:0;font-size:20px}
.lwp-orders{list-style:none;margin:0;padding:0;border-top:1px solid var(--lwa-line)}
.lwp-orders li{margin:0;border-bottom:1px solid var(--lwa-line)}
.lwp-orders a{display:grid;grid-template-columns:90px 1fr 90px auto 110px;gap:14px;align-items:center;padding:16px 4px;color:var(--lwa-ink)!important;text-decoration:none!important}
@media (hover:hover){.lwp-orders a:hover{background:var(--lwa-aqua-soft)}}
.lwp-order-no{font-weight:600}
.lwp-order-date,.lwp-order-items{color:var(--lwa-muted);font-size:14px}
.lwp-order-total{text-align:right}

/* Status badges (dashboard + orders table) */
.lwp-status,body.lwp-account .woocommerce-orders-table__cell-order-status{font-size:12px;font-weight:600}
.lwp-status{display:inline-block;padding:4px 10px;background:#eef0f0;color:var(--lwa-ink);white-space:nowrap}
.lwp-status-processing{background:var(--lwa-aqua)}
.lwp-status-completed{background:#dff3e6;color:#14532d}
.lwp-status-on-hold,.lwp-status-pending{background:#fbf0d2;color:#6b4a00}
.lwp-status-cancelled,.lwp-status-failed,.lwp-status-refunded{background:#f9e3e3;color:#7f1d1d}

/* Orders table */
body.lwp-account table.woocommerce-orders-table,body.lwp-account table.shop_table{width:100%;border:0!important;border-collapse:collapse;background:#fff}
body.lwp-account table.woocommerce-orders-table thead th,body.lwp-account .woocommerce-MyAccount-content table.shop_table thead th{padding:12px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--lwa-muted);border-bottom:1px solid var(--lwa-ink)!important;text-align:left}
body.lwp-account table.woocommerce-orders-table td,body.lwp-account table.woocommerce-orders-table tbody th{padding:16px 12px;border-bottom:1px solid var(--lwa-line)!important;vertical-align:middle}
body.lwp-account .woocommerce-orders-table__cell-order-actions .button{padding:10px 16px!important;font-size:13px;margin:2px 4px 2px 0}

/* Addresses */
body.lwp-account .woocommerce-Addresses{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:16px}
body.lwp-account .woocommerce-Addresses::before,body.lwp-account .woocommerce-Addresses::after{display:none}
body.lwp-account .woocommerce-Address{float:none!important;width:auto!important;padding:22px;border:1px solid var(--lwa-line);background:#fff}
body.lwp-account .woocommerce-Address-title{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:10px}
body.lwp-account .woocommerce-Address-title h2,body.lwp-account .woocommerce-Address-title h3{margin:0;font-size:18px}
body.lwp-account .woocommerce-Address-title .edit{font-size:14px;font-weight:600}
body.lwp-account .woocommerce-Address address{font-style:normal;line-height:1.7;color:var(--lwa-muted)}

/* Forms (account details, address edit) */
body.lwp-account .woocommerce-MyAccount-content form .form-row{margin:0 0 16px}
body.lwp-account .woocommerce-MyAccount-content form label{display:block;margin-bottom:6px;font-size:13px;font-weight:600;color:var(--lwa-ink)}
body.lwp-account .woocommerce-MyAccount-content form input.input-text,body.lwp-account .woocommerce-MyAccount-content form select,body.lwp-account .woocommerce-MyAccount-content form textarea,body.lwp-account .woocommerce-MyAccount-content .select2-container .select2-selection{width:100%;box-sizing:border-box;min-height:48px;padding:12px 14px;border:1px solid var(--lwa-line);border-radius:0;background:#fff;font:inherit;color:var(--lwa-ink)}
body.lwp-account .woocommerce-MyAccount-content form input.input-text:focus,body.lwp-account .woocommerce-MyAccount-content form select:focus,body.lwp-account .woocommerce-MyAccount-content form textarea:focus{outline:none;border-color:var(--lwa-ink);box-shadow:0 0 0 3px var(--lwa-aqua)}
body.lwp-account .woocommerce-MyAccount-content fieldset{margin:26px 0 16px;padding:22px;border:1px solid var(--lwa-line)}
body.lwp-account .woocommerce-MyAccount-content fieldset legend{padding:0 8px;font-weight:600}
body.lwp-account .woocommerce-MyAccount-content form .button{min-width:180px}

/* Mobile */
@media (max-width:980px){.lwp-dash-grid{grid-template-columns:1fr 1fr}}
@media (max-width:820px){
 body.lwp-account .woocommerce{grid-template-columns:minmax(0,1fr);gap:20px;width:92%;padding:28px 0 60px}
 .lwp-account-head{padding:24px 20px}
 body.lwp-account .woocommerce-MyAccount-navigation{position:static;border:0;background:none;margin:0 -4%;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
 body.lwp-account .woocommerce-MyAccount-navigation::-webkit-scrollbar{display:none}
 body.lwp-account .woocommerce-MyAccount-navigation ul{display:flex;gap:8px;padding:0 4%;width:max-content}
 body.lwp-account .woocommerce-MyAccount-navigation li a{padding:10px 14px;border:1px solid var(--lwa-line);border-left-width:1px;background:#fff;font-size:14px;white-space:nowrap}
 body.lwp-account .woocommerce-MyAccount-navigation li.is-active a{background:var(--lwa-ink);border-color:var(--lwa-ink);color:#fff}
 body.lwp-account .woocommerce-MyAccount-navigation-link--customer-logout{border:0!important;margin:0!important;padding:0!important}
 body.lwp-account .woocommerce-Addresses{grid-template-columns:1fr}
 .lwp-orders a{grid-template-columns:1fr auto;row-gap:4px}
 .lwp-order-date,.lwp-order-items{grid-column:1}
 .lwp-orders .lwp-status{grid-column:2;grid-row:1;justify-self:end}
 .lwp-order-total{grid-column:2;grid-row:2}
}
@media (max-width:560px){.lwp-dash-grid{grid-template-columns:1fr}.lwp-tile{min-height:0}.lwp-account-head-side{width:100%;justify-content:space-between}}

/* Affiliate portal – square edges to match */
body.lwp-account .lwp-owed,body.lwp-account .lwp-share-item,body.lwp-account .lwp-stat,body.lwp-account .lwp-chart,body.lwp-account .lwp-badge,body.lwp-account .lwp-copy input,body.lwp-account .lwp-copy .button{border-radius:0}
body.lwp-account .lwp-owed{background:var(--lwa-ink)}
body.lwp-account .lwp-share-item{background:var(--lwa-aqua-soft);border-color:var(--lwa-aqua)}

/* Phones: orders table becomes stacked cards */
@media (max-width:820px){
 body.lwp-account table.woocommerce-orders-table thead{display:none}
 body.lwp-account table.woocommerce-orders-table,body.lwp-account table.woocommerce-orders-table tbody,body.lwp-account table.woocommerce-orders-table tr{display:block;width:100%}
 body.lwp-account table.woocommerce-orders-table tr{margin:0 0 14px;border:1px solid var(--lwa-line);background:#fff}
 body.lwp-account table.woocommerce-orders-table td,body.lwp-account table.woocommerce-orders-table tbody th{display:block;padding:11px 14px;border-bottom:1px solid var(--lwa-line)!important;text-align:right}
 body.lwp-account table.woocommerce-orders-table td::before,body.lwp-account table.woocommerce-orders-table tbody th::before{content:attr(data-title);float:left!important;margin-right:12px;font-size:11px;line-height:2.1;letter-spacing:.12em;text-transform:uppercase;font-weight:600;color:var(--lwa-muted);text-align:left}
 body.lwp-account table.woocommerce-orders-table tr>*:last-child{border-bottom:0!important}
 body.lwp-account .woocommerce-orders-table__cell-order-actions{text-align:right}
 body.lwp-account .woocommerce-orders-table__cell-order-actions::before{display:none}
}
/* Affiliate portal copy boxes */
body.lwp-account .lwp-copy input{border:1px solid var(--lwa-line)!important;min-height:44px;padding:0 12px;box-shadow:none}
body.lwp-account .lwp-copy .button{min-height:44px;padding:0 18px!important}
