body.ui-unified:has(.buyer-chat-page){background:#111214!important;background-image:none!important;color:#eceef1!important}
.ui-unified .buyer-chat-page{max-width:1180px;min-height:calc(100vh - 150px);padding-top:38px;padding-bottom:58px;color:#eceef1}
.buyer-chat-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}
.buyer-chat-eyebrow{display:block;margin-bottom:8px;color:#c58c42;font-size:10px;font-weight:700;letter-spacing:.14em}
.ui-unified .buyer-chat-heading h1{margin:0;color:#f1f2f4;font-size:30px;font-weight:650;letter-spacing:-.04em}
.ui-unified .buyer-chat-heading p{margin:7px 0 0;color:#92959d;font-size:13px}
.buyer-chat-count{padding:6px 10px;border:1px solid #303237;border-radius:20px;color:#aeb0b6;font-size:11px}
.buyer-chat-workspace{display:grid;grid-template-columns:290px minmax(0,1fr);height:min(660px,calc(100dvh - 235px));min-height:430px;overflow:hidden;border:1px solid #2c2e33;border-radius:13px;background:#151618;box-shadow:0 18px 60px #0002}
.buyer-chat-sidebar{display:flex;min-width:0;flex-direction:column;border-right:1px solid #2b2d31;background:#141517}
.buyer-chat-sidebar-head{display:flex;align-items:center;justify-content:space-between;min-height:53px;padding:0 15px;border-bottom:1px solid #292b2f;color:#e8e9ec;font-size:12px}
.buyer-chat-sidebar-head span{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:11px;background:#252629;color:#a5a7ad;font-size:10px}
.buyer-chat-list{flex:1;overflow:auto;scrollbar-width:thin;scrollbar-color:#393b40 transparent}
.buyer-chat-item{display:flex;align-items:flex-start;gap:10px;width:100%;padding:13px 12px;border:0;border-bottom:1px solid #232427;background:transparent;color:#e7e8eb;text-align:left;cursor:pointer;transition:background .14s}
.buyer-chat-item:hover{background:#1b1c1e}
.buyer-chat-item.active{background:#211e19;box-shadow:inset 2px 0 #d69b4c}
.buyer-chat-avatar{display:grid;place-items:center;flex:none;width:38px;height:38px;border:1px solid #3a3b3f;border-radius:50%;background:#242528;color:#d5a15b;font-size:14px;font-weight:650;text-transform:uppercase}
.buyer-chat-item-copy{display:grid;gap:4px;min-width:0;flex:1}
.buyer-chat-item-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.buyer-chat-item-top b{overflow:hidden;color:#ececef;font-size:12px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.buyer-chat-item-top time{flex:none;color:#777a82;font-size:9px}
.buyer-chat-item-copy>strong{overflow:hidden;color:#b9bbc1;font-size:10px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
.buyer-chat-item-copy>small{overflow:hidden;color:#85888f;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.buyer-chat-thread{display:flex;min-width:0;min-height:0;flex-direction:column;background:#111214}
.buyer-chat-thread-head{display:flex;align-items:center;gap:11px;min-height:70px;padding:10px 17px;border-bottom:1px solid #292b2f;background:#151618}
.buyer-chat-avatar-large{width:40px;height:40px}
.buyer-chat-person{display:grid;gap:4px;min-width:0}
.buyer-chat-person strong{overflow:hidden;color:#f0f1f3;font-size:13px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.buyer-chat-person span{color:#92959d;font-size:10px}
.buyer-chat-product{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 10px;min-width:0;max-width:48%;margin-left:auto;padding:8px 10px;border:1px solid #2c2e33;border-radius:8px;background:#191a1c}
.buyer-chat-product small{grid-column:1/-1;color:#83868e;font-size:8px;letter-spacing:.1em}
.buyer-chat-product strong{overflow:hidden;color:#c9cacf;font-size:10px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
.buyer-chat-product b{color:#e6b46c;font-size:11px;white-space:nowrap}
.buyer-chat-messages{display:flex;flex:1;min-height:0;flex-direction:column;gap:8px;overflow:auto;padding:20px clamp(14px,4vw,40px);scrollbar-width:thin;scrollbar-color:#393b40 transparent}
.buyer-chat-load-older{align-self:center;margin:0 0 10px;padding:7px 12px;border:1px solid #34363a;border-radius:8px;background:#191a1c;color:#b5b7bd;font:inherit;font-size:11px;cursor:pointer}.buyer-chat-load-older:hover{border-color:#8a6537;color:#efbd72}.buyer-chat-load-older:disabled{opacity:.6;cursor:wait}
.buyer-chat-message{max-width:min(76%,560px);padding:9px 12px 7px;border:1px solid #2d2f33;border-radius:10px 10px 10px 3px;background:#1d1e21;color:#e3e4e7;overflow-wrap:anywhere}
.buyer-chat-message.is-own{align-self:flex-end;border-color:#493a28;border-radius:10px 10px 3px 10px;background:#29231b}
.buyer-chat-message-author{display:block;margin-bottom:3px;color:#d9a45e;font-size:9px;font-weight:600}
.buyer-chat-message p{margin:0;color:#e4e5e8;font-size:12px;line-height:1.55;white-space:pre-wrap}
.buyer-chat-message time{display:block;margin-top:5px;color:#777a81;font-size:9px;text-align:right}
.buyer-chat-photo{display:block;max-width:min(100%,420px);max-height:340px;margin-top:6px;border:1px solid #393b40;border-radius:8px;object-fit:contain}
.buyer-chat-empty,.buyer-chat-no-thread,.buyer-chat-list-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:auto;color:#c9cacf;text-align:center}
.buyer-chat-empty{gap:6px;min-height:120px;color:#b2b4ba;font-size:13px}
.buyer-chat-empty small,.buyer-chat-no-thread p,.buyer-chat-list-empty small{max-width:270px;color:#85888f;font-size:11px;line-height:1.6}
.buyer-chat-compose{display:flex;align-items:center;gap:9px;margin:0 16px 15px;padding:6px 7px 6px 13px;border:1px solid #34363b;border-radius:9px;background:#1b1c1f;transition:border-color .15s}
.buyer-chat-compose:focus-within{border-color:#8d6839}
.buyer-chat-compose input{flex:1;min-width:0;height:36px;border:0;outline:0;background:transparent;color:#eceef1;font-size:12px}
.buyer-chat-compose input::placeholder{color:#777a82}
.buyer-chat-compose button{display:grid;place-items:center;flex:none;width:34px;height:34px;border:0;border-radius:7px;background:#d99d4b;color:#21180d;cursor:pointer;transition:background .15s}
.buyer-chat-compose button:hover{background:#f0b462}
.buyer-chat-compose button svg{width:17px;height:17px}
.buyer-chat-attach{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:7px;color:#a1a3aa;cursor:pointer;transition:background .15s,color .15s}
.buyer-chat-attach:hover,.buyer-chat-attach.has-file{background:#2a261f;color:#e6b46c}
.buyer-chat-attach input{display:none}
.buyer-chat-attach svg{width:17px;height:17px}
.buyer-chat-file-name{max-width:130px;overflow:hidden;color:#c6a273;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.buyer-chat-file-name:empty{display:none}
.buyer-chat-no-thread,.buyer-chat-list-empty{gap:9px;padding:25px}
.buyer-chat-no-thread>span,.buyer-chat-list-empty>span{display:grid;place-items:center;width:42px;height:42px;border:1px solid #37383c;border-radius:13px;background:#1b1c1f;color:#c8944b;font-size:19px}
.buyer-chat-no-thread strong,.buyer-chat-list-empty strong{color:#d8d9dd;font-size:13px;font-weight:550}
.buyer-chat-no-thread p{margin:0}
/* Keep the storefront controls visible while the conversation fills the viewport. */
body.ui-unified:has(.buyer-chat-page){--chat-site-header:78px;--chat-category-strip:104px;background:#111214!important;background-image:none!important;color:#eceef1!important}
body.ui-unified:has(.buyer-chat-page) .market-header{position:sticky!important;top:0;z-index:300;background:#111214!important}
body.ui-unified:has(.buyer-chat-page) .category-bar{position:sticky;top:var(--chat-site-header);z-index:250;background:#111214;border-bottom:1px solid #292a2d}
body.ui-unified:has(.buyer-chat-page) .category-row{width:calc(100% - 40px);max-width:none;margin:0 auto}
.ui-unified .buyer-chat-page{width:100%;max-width:none;min-height:0;height:auto;margin:0;padding:15px clamp(14px,2.2vw,34px) 16px;box-sizing:border-box;color:#eceef1}
.buyer-chat-heading{align-items:center;margin:0 0 12px}
.ui-unified .buyer-chat-heading h1{font-size:24px}
.ui-unified .buyer-chat-heading p{margin-top:3px}
.buyer-chat-eyebrow{margin-bottom:3px;font-size:9px}
.buyer-chat-workspace{width:100%;height:calc(100dvh - var(--chat-site-header) - var(--chat-category-strip) - 164px);min-height:390px;max-height:none;border-radius:12px;box-shadow:0 12px 36px #0002}
@media(max-width:1024px){body.ui-unified:has(.buyer-chat-page){--chat-site-header:144px;--chat-category-strip:92px}.ui-unified:has(.buyer-chat-page) .category-row{width:calc(100% - 24px)} }
@media(max-width:760px){
 body.ui-unified:has(.buyer-chat-page){--chat-site-header:148px;--chat-category-strip:88px}
 body.ui-unified:has(.buyer-chat-page) .category-bar{overflow:hidden}
 body.ui-unified:has(.buyer-chat-page) .category-row{width:100%;min-height:84px;gap:8px;padding:0 12px;overflow-x:auto;scrollbar-width:none}
 body.ui-unified:has(.buyer-chat-page) .category-row::-webkit-scrollbar{display:none}
 body.ui-unified:has(.buyer-chat-page) .category-top{flex:0 0 76px;min-height:76px;padding:5px 4px}
 body.ui-unified:has(.buyer-chat-page) .category-icon-frame{width:39px;height:39px}
 body.ui-unified:has(.buyer-chat-page) .category-icon-frame img{width:28px;height:28px}
 body.ui-unified:has(.buyer-chat-page) .category-label{font-size:9px}
 .ui-unified .buyer-chat-page{height:auto;min-height:0;padding:12px 10px 12px}
 .buyer-chat-heading{margin-bottom:9px}
 .ui-unified .buyer-chat-heading h1{font-size:21px}
 .ui-unified .buyer-chat-heading p{display:none}
 .buyer-chat-workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:84px minmax(300px,1fr);height:calc(100dvh - var(--chat-site-header) - var(--chat-category-strip) - 105px);min-height:385px;max-height:none}
 .buyer-chat-sidebar{min-height:0}
 .buyer-chat-sidebar-head{display:none}
 .buyer-chat-list{max-height:none}
 .buyer-chat-thread{min-height:0;height:auto}
}
@media(max-width:760px){.ui-unified .buyer-chat-page{min-height:0;padding:24px 14px 38px}.buyer-chat-heading{align-items:center;margin-bottom:15px}.ui-unified .buyer-chat-heading h1{font-size:26px}.ui-unified .buyer-chat-heading p{max-width:270px;font-size:11px}.buyer-chat-count{font-size:10px}.buyer-chat-workspace{grid-template-columns:minmax(0,1fr);height:auto;min-height:0;max-height:none}.buyer-chat-sidebar{border-right:0;border-bottom:1px solid #2b2d31}.buyer-chat-sidebar-head{min-height:43px;padding:0 12px}.buyer-chat-list{display:flex;flex:none;max-height:94px;overflow:auto hidden;scrollbar-width:none}.buyer-chat-list::-webkit-scrollbar{display:none}.buyer-chat-item{flex:0 0 220px;align-items:center;min-height:72px;padding:9px 10px;border-right:1px solid #232427;border-bottom:0}.buyer-chat-avatar{width:34px;height:34px}.buyer-chat-item-copy>small{max-width:145px}.buyer-chat-list-empty{min-height:72px;flex-direction:row;gap:9px;padding:10px 14px;text-align:left}.buyer-chat-list-empty>span{width:34px;height:34px;flex:none}.buyer-chat-list-empty small{display:none}.buyer-chat-thread{min-height:430px;height:min(62dvh,600px)}.buyer-chat-thread-head{min-height:64px;padding:9px 12px}.buyer-chat-product{max-width:50%;padding:7px}.buyer-chat-messages{padding:15px 12px}.buyer-chat-message{max-width:86%}.buyer-chat-compose{margin:0 10px max(10px,env(safe-area-inset-bottom));padding-left:10px}.buyer-chat-compose input{font-size:16px}.buyer-chat-file-name{max-width:72px}}

/* Chat reuses the storefront's real navigation, with its own sticky offset. */
body.ui-unified:has(.buyer-chat-page){--chat-site-header:78px;--chat-category-strip:72px}
body.ui-unified:has(.buyer-chat-page) .market-nav{position:sticky;top:var(--chat-site-header);z-index:250;overflow:visible;background:#0c0e10;border-bottom:1px solid #25292c}
body.ui-unified:has(.buyer-chat-page) .market-nav-inner{width:calc(100% - 80px);max-width:1456px;min-height:72px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:8px}
body.ui-unified:has(.buyer-chat-page) .market-nav-link{position:relative;display:flex;flex:0 1 auto;align-items:center;justify-content:center;gap:10px;min-width:0;min-height:56px;padding:0 17px;border:1px solid transparent;border-radius:10px;background:transparent;color:#e9ebed;font-size:15px;font-weight:700;white-space:nowrap;cursor:pointer}
body.ui-unified:has(.buyer-chat-page) .market-nav-link img{width:32px;height:32px;object-fit:contain}
body.ui-unified:has(.buyer-chat-page) .market-nav-link.active{background:linear-gradient(135deg,#211c15,#171615);border-color:#60421f;color:#ffb34d;box-shadow:inset 0 1px #ffffff0a,0 4px 14px #0003}
body.ui-unified:has(.buyer-chat-page) .market-nav-link:hover{background:#171a1d;border-color:#303438}
body.ui-unified:has(.buyer-chat-page) .market-nav-game{position:relative;display:flex;flex:0 1 auto;min-width:0;align-items:center}
body.ui-unified:has(.buyer-chat-page) .market-nav-game .market-nav-link{flex:1;padding-right:38px}
body.ui-unified:has(.buyer-chat-page) .market-nav-chevron{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:27px;height:30px;border:0;background:transparent;color:#cbd0d4;font-size:18px;cursor:pointer}
body.ui-unified:has(.buyer-chat-page) .market-nav-submenu{display:none;position:fixed;z-index:350;width:min(240px,calc(100vw - 20px));max-height:min(430px,65vh);overflow-y:auto;padding:7px;border:1px solid #30363c;border-radius:0 0 11px 11px;background:#15181c;box-shadow:0 18px 35px #0009}
body.ui-unified:has(.buyer-chat-page) .market-nav-game.open .market-nav-submenu{display:grid}
body.ui-unified:has(.buyer-chat-page) .market-nav-submenu button{display:flex;align-items:center;gap:10px;padding:10px;border:0;border-radius:7px;background:transparent;color:#e7eaec;text-align:left;font-size:13px;cursor:pointer}
body.ui-unified:has(.buyer-chat-page) .market-nav-submenu button:hover,body.ui-unified:has(.buyer-chat-page) .market-nav-submenu button.active{background:#252a2f;color:#ffad36}
body.ui-unified:has(.buyer-chat-page) .market-nav-submenu img{width:24px;height:24px;object-fit:contain}
body.ui-unified:has(.buyer-chat-page) .market-nav-empty{padding:14px;font-size:12px;color:#a8afb5}
@media(max-width:1024px){body.ui-unified:has(.buyer-chat-page){--chat-site-header:144px;--chat-category-strip:64px}body.ui-unified:has(.buyer-chat-page) .market-nav-inner{width:calc(100% - 28px);max-width:none;justify-content:flex-start;overflow-x:auto;scrollbar-width:none}body.ui-unified:has(.buyer-chat-page) .market-nav-inner::-webkit-scrollbar{display:none}body.ui-unified:has(.buyer-chat-page) .market-nav-link,body.ui-unified:has(.buyer-chat-page) .market-nav-game{flex:none;min-width:max-content}}
@media(max-width:760px){body.ui-unified:has(.buyer-chat-page){--chat-site-header:148px;--chat-category-strip:60px}body.ui-unified:has(.buyer-chat-page) .market-nav-inner{width:100%;min-height:60px;padding:0 10px;gap:3px}body.ui-unified:has(.buyer-chat-page) .market-nav-link{min-height:48px;padding:0 12px;font-size:12px}body.ui-unified:has(.buyer-chat-page) .market-nav-link img{width:25px;height:25px}body.ui-unified:has(.buyer-chat-page) .market-nav-game .market-nav-link{min-width:145px}.ui-unified .buyer-chat-page{height:auto;min-height:0;padding:12px 10px}.buyer-chat-workspace{height:calc(100dvh - var(--chat-site-header) - var(--chat-category-strip) - 105px)}}

/* The chat view is a viewport layout: site header + category nav + scrollable chat panes. */
body.ui-unified:has(.buyer-chat-page){height:100%;min-height:100dvh;overflow:hidden!important}
body.ui-unified:has(.buyer-chat-page) #app{display:flex;height:100dvh;min-height:0;flex-direction:column;overflow:hidden}
body.ui-unified:has(.buyer-chat-page) .market-header{position:relative!important;top:auto!important;z-index:20;flex:0 0 auto;background:#0c0e10!important;border-bottom:0!important;box-shadow:none!important}
body.ui-unified:has(.buyer-chat-page) .market-nav{position:relative;top:auto;z-index:15;flex:0 0 auto;background:#0c0e10;border-bottom:1px solid #25292c}
body.ui-unified:has(.buyer-chat-page) .buyer-chat-page{display:flex;flex:1 1 auto;min-width:0;min-height:0;height:auto;margin:0;padding:12px clamp(14px,2.2vw,34px);flex-direction:column;overflow:hidden}
body.ui-unified:has(.buyer-chat-page) .buyer-chat-heading{flex:0 0 auto;margin:0 0 10px}
body.ui-unified:has(.buyer-chat-page) .buyer-chat-workspace{display:grid;flex:1 1 auto;min-width:0;min-height:0;height:auto;max-height:none;overflow:hidden}
body.ui-unified:has(.buyer-chat-page) .buyer-chat-sidebar,body.ui-unified:has(.buyer-chat-page) .buyer-chat-thread{min-height:0;overflow:hidden}
body.ui-unified:has(.buyer-chat-page) .buyer-chat-list,body.ui-unified:has(.buyer-chat-page) .buyer-chat-messages{min-height:0;overscroll-behavior:contain}
body.ui-unified:has(.buyer-chat-page) .buyer-chat-list{overflow-y:auto}
body.ui-unified:has(.buyer-chat-page) .buyer-chat-messages{overflow-y:auto}
body.ui-unified:has(.buyer-chat-page) .footer{display:none!important}
@media(max-width:1024px){body.ui-unified:has(.buyer-chat-page) .buyer-chat-page{padding:10px 14px}}
@media(max-width:760px){body.ui-unified:has(.buyer-chat-page) #app{height:100dvh}body.ui-unified:has(.buyer-chat-page) .buyer-chat-page{padding:8px 10px;gap:0}body.ui-unified:has(.buyer-chat-page) .buyer-chat-heading{margin-bottom:7px}body.ui-unified:has(.buyer-chat-page) .buyer-chat-heading h1{font-size:21px}body.ui-unified:has(.buyer-chat-page) .buyer-chat-heading p{display:none}body.ui-unified:has(.buyer-chat-page) .buyer-chat-workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:84px minmax(0,1fr);height:auto;min-height:0}body.ui-unified:has(.buyer-chat-page) .buyer-chat-sidebar{display:flex;min-height:0;border-right:0;border-bottom:1px solid #2b2d31}body.ui-unified:has(.buyer-chat-page) .buyer-chat-sidebar-head{display:none}body.ui-unified:has(.buyer-chat-page) .buyer-chat-list{display:flex;flex:1 1 auto;max-height:none;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}body.ui-unified:has(.buyer-chat-page) .buyer-chat-list::-webkit-scrollbar{display:none}body.ui-unified:has(.buyer-chat-page) .buyer-chat-thread{display:flex;min-height:0;height:auto}body.ui-unified:has(.buyer-chat-page) .buyer-chat-messages{flex:1 1 auto;overflow-y:auto}body.ui-unified:has(.buyer-chat-page) .buyer-chat-compose{flex:0 0 auto;margin-bottom:max(8px,env(safe-area-inset-bottom))}}


/* Match the homepage header and give the shared discount icon its storefront sizing. */
body.ui-unified:has(.buyer-chat-page) .header.market-header{z-index:100;background:#0c0e10!important;border-bottom:1px solid #24282c!important;box-shadow:0 5px 18px #0005!important}
body.ui-unified:has(.buyer-chat-page) .market-header-inner{width:calc(100% - 80px);max-width:1456px;min-height:82px;margin:auto;display:flex;align-items:center;gap:12px}
body.ui-unified:has(.buyer-chat-page) .market-brand{flex:none;display:flex;align-items:center;gap:12px;min-width:218px;color:#f5f5f4!important;font-size:24px;font-weight:850;letter-spacing:-.04em;text-decoration:none;cursor:pointer}
body.ui-unified:has(.buyer-chat-page) .market-brand .brand-logo{width:56px;height:56px;border-radius:13px}
body.ui-unified:has(.buyer-chat-page) .market-catalog-trigger{height:48px;flex:none;display:flex;align-items:center;gap:10px;padding:0 17px;border:1px solid #30353a;border-radius:13px;background:#191c20;color:#f4f5f6;font-size:14px;font-weight:750;cursor:pointer}
body.ui-unified:has(.buyer-chat-page) .market-catalog-trigger:hover,body.ui-unified:has(.buyer-chat-page) .market-catalog-trigger[aria-expanded="true"]{border-color:#f5a32e;background:#211c15;color:#ffb34a}
body.ui-unified:has(.buyer-chat-page) .market-catalog-trigger svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8}
body.ui-unified:has(.buyer-chat-page) .market-header-search{position:relative;display:flex;align-items:center;flex:1;min-width:0;max-width:none;height:48px;border:1px solid #30353a;border-radius:14px;background:linear-gradient(110deg,#191c20,#14171a);box-shadow:inset 0 1px #ffffff07}
body.ui-unified:has(.buyer-chat-page) .market-search-icon{display:flex;align-items:center;padding:0 14px 0 17px;color:#eef1f3}
body.ui-unified:has(.buyer-chat-page) .market-search-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
body.ui-unified:has(.buyer-chat-page) #market-header-search{min-width:0;flex:1;height:100%;border:0;outline:none;background:transparent;color:#f5f5f4;font-size:13px}
body.ui-unified:has(.buyer-chat-page) #market-header-search::placeholder{color:#a9adb2}
body.ui-unified:has(.buyer-chat-page) .market-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;margin-left:auto;flex:none}
body.ui-unified:has(.buyer-chat-page) .market-header-actions .market-header-action{position:relative;display:flex;min-width:68px;height:54px;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:4px 7px;border:1px solid transparent;border-radius:12px;background:transparent;color:#e6e8ea;font-size:11px;font-weight:700;white-space:nowrap}
body.ui-unified:has(.buyer-chat-page) .market-header-actions .market-header-action:hover{border-color:#373b3e;background:#1a1d20;color:#ffb34a}
body.ui-unified:has(.buyer-chat-page) .market-header-action svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.ui-unified:has(.buyer-chat-page) .market-header-action.market-finance{color:#d6d9dc}
body.ui-unified:has(.buyer-chat-page) .market-header-actions .auth-actions{display:flex;align-items:center;gap:8px;margin-left:8px;padding-left:18px;border-left:1px solid #303438}
body.ui-unified:has(.buyer-chat-page) .market-header-actions .auth-actions button{min-height:44px;padding:0 16px;border-radius:9px;font-size:13px;font-weight:800}
body.ui-unified:has(.buyer-chat-page) .market-header-actions .auth-login{background:#191c20!important;border:1px solid #33383d!important;color:#f2f3f3!important}
body.ui-unified:has(.buyer-chat-page) .market-header-actions .auth-register{background:#ff9e2f!important;border:1px solid #ffae48!important;color:#20150b!important}
body.ui-unified:has(.buyer-chat-page) .market-header-actions .ui-account{margin-left:4px}
body.ui-unified:has(.buyer-chat-page) .market-nav-discounts{color:#ffb34a}
body.ui-unified:has(.buyer-chat-page) .market-nav-discounts svg{display:block;width:25px;height:25px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:1024px){body.ui-unified:has(.buyer-chat-page) .market-header-inner{width:calc(100% - 48px);gap:9px}body.ui-unified:has(.buyer-chat-page) .market-brand{min-width:180px}body.ui-unified:has(.buyer-chat-page) .market-header-actions{gap:9px}}
@media(max-width:760px){body.ui-unified:has(.buyer-chat-page) .market-header-inner{width:calc(100% - 24px);min-height:auto;flex-wrap:wrap;padding:10px 0}body.ui-unified:has(.buyer-chat-page) .market-brand{min-width:0;flex:1;font-size:20px}body.ui-unified:has(.buyer-chat-page) .market-brand .brand-logo{width:44px;height:44px}body.ui-unified:has(.buyer-chat-page) .market-catalog-trigger{height:42px;padding:0 12px}body.ui-unified:has(.buyer-chat-page) .market-header-search{height:44px}body.ui-unified:has(.buyer-chat-page) .market-header-actions{width:100%;justify-content:space-between;gap:3px}body.ui-unified:has(.buyer-chat-page) .market-header-actions .market-header-action{min-width:48px;height:49px;font-size:9px}body.ui-unified:has(.buyer-chat-page) .market-header-action svg{width:23px;height:23px}body.ui-unified:has(.buyer-chat-page) .market-header-actions .auth-actions{gap:6px;margin-left:3px;padding-left:8px}}

/* Keep chat header spacing aligned with the actual storefront; make cart art explicit. */
body.ui-unified:has(.buyer-chat-page) .market-header-inner{min-height:76px!important;gap:12px!important}
body.ui-unified:has(.buyer-chat-page) .market-header-actions{gap:7px!important}
body.ui-unified:has(.buyer-chat-page) .market-header-actions .market-header-action.market-cart{display:flex!important;align-items:center!important;justify-content:center!important;visibility:visible!important;opacity:1!important}
body.ui-unified:has(.buyer-chat-page) .market-header-actions .market-header-action.market-cart svg{display:block!important;visibility:visible!important;opacity:1!important;width:23px!important;height:23px!important;flex:0 0 23px!important;fill:none!important;stroke:#f2f3f4!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
body.ui-unified:has(.buyer-chat-page) .market-header-actions .market-header-action.market-cart:hover svg{stroke:#ffb34a!important}
body.ui-unified:has(.buyer-chat-page) .market-nav-discounts svg{display:block!important;visibility:visible!important;opacity:1!important}
body.ui-unified:has(.buyer-chat-page) .buyer-chat-page{padding-top:4px}
@media(max-width:760px){body.ui-unified:has(.buyer-chat-page) .market-header-inner{min-height:0!important;gap:8px 7px!important}body.ui-unified:has(.buyer-chat-page) .market-header-actions .market-header-action.market-cart svg{width:20px!important;height:20px!important;flex-basis:20px!important}body.ui-unified:has(.buyer-chat-page) .buyer-chat-page{padding-top:5px}}

/* Match the homepage's wider header rhythm and attach the cart count badge to its icon. */
body.ui-unified:has(.buyer-chat-page) .market-header-inner{gap:24px!important}
body.ui-unified:has(.buyer-chat-page) .market-header-search{min-width:220px}
body.ui-unified:has(.buyer-chat-page) .market-header-action.market-cart{position:relative}
body.ui-unified:has(.buyer-chat-page) .market-header-action.market-cart b{position:absolute!important;top:-3px!important;right:5px!important;z-index:2;display:grid!important;place-items:center;width:auto;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#ff9f2f;color:#1c1309;font-size:10px;line-height:1;font-weight:800}
@media(max-width:1024px){body.ui-unified:has(.buyer-chat-page) .market-header-inner{gap:8px 9px!important}}
@media(max-width:760px){body.ui-unified:has(.buyer-chat-page) .market-header-inner{gap:8px 7px!important}body.ui-unified:has(.buyer-chat-page) .market-header-search{min-width:0}}

/* The storefront caps search width so its action buttons keep the same breathing room. */
body.ui-unified:has(.buyer-chat-page) .market-header-search{width:100%;max-width:620px;flex:1 1 620px}
body.ui-unified:has(.buyer-chat-page) .market-header-actions{margin-left:auto!important;flex:0 0 auto!important}
@media(max-width:1024px){body.ui-unified:has(.buyer-chat-page) .market-header-search{max-width:none;flex:1 1 0}}
@media(max-width:760px){body.ui-unified:has(.buyer-chat-page) .market-header-search{max-width:none;flex:1 1 0}}

/* The homepage's later header rule lets search fill all remaining desktop space. */
@media(min-width:1025px){body.ui-unified:has(.buyer-chat-page) .market-header-search{width:auto;max-width:none;min-width:220px;flex:1 1 auto}body.ui-unified:has(.buyer-chat-page) .market-header-actions{flex:0 0 auto}}

/* Match the homepage header width on standard desktop and laptop viewports. */
@media (min-width:761px) and (max-width:1250px){body.ui-unified:has(.buyer-chat-page) .market-header-inner{width:calc(100% - 48px)!important;max-width:1456px!important;gap:24px!important}}

/* Use the homepage's flex sizing so the search receives all remaining header width. */
@media (min-width:1025px){
  body.ui-unified:has(.buyer-chat-page) .market-header-inner{display:flex!important;gap:24px!important;width:calc(100% - 80px)!important;max-width:1456px!important}
  body.ui-unified:has(.buyer-chat-page) .market-header-search{flex:1 1 0%!important;width:0!important;min-width:220px!important;max-width:none!important}
  body.ui-unified:has(.buyer-chat-page) .market-header-actions{flex:0 0 auto!important}
}
@media (min-width:1025px) and (max-width:1250px){
  body.ui-unified:has(.buyer-chat-page) .market-header-inner{width:calc(100% - 48px)!important}
}
