/* THV_MOBILE_PAGE_LAYOUT_V1 */
.mobile-search-options,.mobile-account-toggle,.mobile-chat-back,.mobile-menu-toggle{display:none}.mobile-app .mobile-home-actions{display:none}.mobile-app .mobile-category-shortcuts{display:contents}.mobile-app .mobile-category-shortcuts>a{display:none}
@media(max-width:650px){
html body.mobile-app .unified-header{font:14px/1.4 Arial,system-ui,sans-serif;background:#fff;box-shadow:none}
html body.mobile-app .unified-top{display:none!important}
html body.mobile-app .unified-search{display:grid!important;grid-template-columns:48px minmax(0,1fr) 50px!important;gap:8px;width:100%!important;margin:0;padding:12px!important;max-width:none!important;align-items:center}
html body.mobile-app .unified-search>input[name=q]{grid-column:2!important;grid-row:1;height:44px;border:1px solid #bccbd5;border-radius:9px;padding:10px;font-size:16px}
html body.mobile-app .unified-search>button[type=submit]{grid-column:3!important;grid-row:1;border-radius:8px!important;height:44px;font-size:0;padding:0!important}
html body.mobile-app .unified-search>button[type=submit]::after{content:attr(data-mobile-label);font-size:14px}
html body.mobile-app .mobile-menu-toggle{display:block;grid-column:1;grid-row:1;height:44px;border:1px solid #b8cbd9;border-radius:8px;background:white;color:#176c9c;font:600 12px Arial;cursor:pointer}
html body.mobile-app .unified-search>select,html body.mobile-app .unified-search>input[name=where],html body.mobile-app .unified-search>.unified-language-slot{display:none!important}
html body.mobile-app .mobile-home-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0 12px 10px;gap:8px;border-bottom:1px solid #dfe6eb}
.mobile-app .mobile-home-actions a{display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:70px;border-radius:10px;color:#304b60!important;font:13px/1.3 Arial;text-decoration:none!important}
.mobile-app .mobile-home-actions a:first-child{background:#1476a6;color:white!important}.mobile-app .mobile-home-actions a[aria-current=page]{box-shadow:inset 0 -3px #1476a6}
.mobile-app .mobile-home-actions img{width:32px;height:32px;border-radius:8px}
html body.mobile-app .category-nav-custom{display:block!important;padding:12px!important;overflow:visible;margin:0;background:white}
html body.mobile-app .category-featured,html body.mobile-app .layout-electric-link,html body.mobile-app .layout-search-heading,html body.mobile-app .layout-mobile-nav{display:none!important}
html body.mobile-app .mobile-category-shortcuts{display:grid;grid-template-columns:44px 44px minmax(0,1fr);gap:8px;align-items:center}
.mobile-app .mobile-category-shortcuts>a{display:flex;align-items:center;justify-content:center;height:44px;border:1px solid #80aec8;border-radius:9px}
html body.mobile-app .category-menu-toggle{width:100%;height:44px;padding:8px!important;border:1px solid #80aec8!important;border-radius:9px!important;font:600 15px Arial!important;min-width:0!important;justify-content:center}
html body.mobile-app .mobile-home-expanded .unified-search>select,html body.mobile-app .mobile-home-expanded .unified-search>input[name=where],html body.mobile-app .mobile-home-expanded .unified-search>.unified-language-slot{display:block!important;grid-column:1/-1!important;grid-row:auto!important;border:1px solid #c5cfd7;border-radius:6px;width:100%;min-height:44px}
html body.mobile-app .mobile-home-expanded .unified-search>.unified-language-slot{display:flex!important}
html body.mobile-app .mobile-search-options{display:block;margin:0 12px 8px;padding:8px 12px;min-height:36px;border:1px solid #c4d2dc;background:white;border-radius:7px;color:#176c9c;font:13px Arial}
html body.mobile-app .account-layout{display:block!important;padding:16px 12px;min-width:0}.mobile-app .account-layout>main{min-width:0;width:100%}
.mobile-app .account-side{display:block!important;width:100%!important;margin:0 0 16px;border:1px solid #d9e2e8;border-radius:10px;padding:0!important;background:white}
.mobile-app .account-side .mobile-account-toggle{display:block!important;width:100%;padding:14px 16px;min-height:48px;text-align:left;font-weight:700;background:#eaf5fa;border:0;border-radius:10px;color:#176c9c}
.mobile-app .account-side.mobile-account-collapsed>:not(.mobile-account-toggle){display:none!important}.mobile-app .account-side>h2,.mobile-app .account-side>h3{padding:0 16px}.mobile-app .account-side-group{display:grid;grid-template-columns:1fr 1fr;padding:4px 8px}.mobile-app .account-side-group button{min-height:44px;white-space:normal;text-align:left}
.mobile-app .profile-card-grid{display:block!important}.mobile-app .profile-tile{padding:16px;margin:0;border:0;border-bottom:1px solid #dce4e9;border-radius:0;box-shadow:none;background:white;min-height:0!important;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;align-items:center}.mobile-app .profile-tile h2{font-size:17px;margin:0;grid-column:1}.mobile-app .profile-tile p{font-size:14px;line-height:1.5;margin:0;grid-column:1;overflow-wrap:anywhere}.mobile-app .profile-tile>button{grid-column:2;grid-row:1/3;min-height:44px;padding:8px 12px}.mobile-app .profile-promo{margin-top:18px}
.mobile-app .profile-heading{flex-wrap:wrap;gap:12px}.mobile-app .profile-heading h1{width:100%;font-size:24px}
.mobile-app .chat-layout{display:block!important;border:0!important;min-height:0!important}.mobile-app .chat-list{width:100%!important;border:0!important;max-height:none!important}.mobile-app .chat-list>button:not(.chat-clear-all){display:flex;align-items:center;gap:12px;width:100%;padding:16px 8px;border:0;border-bottom:1px solid #dce4e9;background:#fff;min-height:90px;text-align:left}.mobile-app .chat-list>button>img{width:64px;height:64px;object-fit:cover;border-radius:8px;flex:none}.mobile-app .chat-list>button>span{min-width:0}.mobile-app .chat-list small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;line-height:1.5}.mobile-app .chat-thread{display:none!important;min-width:0}.mobile-app .mobile-thread-open .chat-list{display:none!important}.mobile-app .mobile-thread-open .chat-thread{display:block!important}.mobile-app .mobile-thread-open .mobile-chat-back{display:block;min-height:44px;padding:10px 14px;border:1px solid #b8cbd9;border-radius:8px;background:#fff;color:#176c9c;margin:0 0 12px}.mobile-app .chat-thread>header{flex-wrap:wrap;gap:10px}.mobile-app .chat-thread>header>div{min-width:0;flex:1}.mobile-app .chat-thread>header a{overflow-wrap:anywhere}.mobile-app .chat-compose textarea{font-size:16px;width:100%;min-height:80px}.mobile-app .chat-bubble{max-width:90%;overflow-wrap:anywhere}.mobile-app .chat-entries{max-height:60vh}
.mobile-app #root .listing-grid,.mobile-app #root .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px 12px!important}.mobile-app #root .listing-card{min-width:0;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important}.mobile-app #root .listing-card>a>img{aspect-ratio:4/3;object-fit:cover;border-radius:9px}.mobile-app #root .listing-title{font:600 14px/1.4 Arial;min-height:40px;overflow-wrap:anywhere}.mobile-app #root .listing-card>a>strong{font-size:19px}.mobile-app #root .listing-card button{min-height:36px}
/* Existing direct advertisement keeps all seller, bid and promotion controls. */
body[data-listing-id] .listing-wrap{padding:12px 12px 40px;min-width:0}body[data-listing-id] .listing-heading h1{font-size:24px}body[data-listing-id] .listing-layout{display:flex;flex-direction:column;gap:0}body[data-listing-id] .listing-main{display:contents}body[data-listing-id] .listing-main>.gallery{order:0}body[data-listing-id] .listing-aside{order:1;width:100%;position:static!important;margin-bottom:18px}body[data-listing-id] .listing-main>:not(.gallery){order:2}body[data-listing-id] .gallery-stage{height:auto;aspect-ratio:4/3;min-height:0}body[data-listing-id] .detail-section{margin:0 0 14px;padding:16px}body[data-listing-id] .listing-aside .seller-card,body[data-listing-id] .listing-aside .listing-info{padding:16px}body[data-listing-id] .listing-top{flex-wrap:wrap;padding:10px 12px;gap:10px}body[data-listing-id] .listing-top nav{flex-wrap:wrap;gap:8px;font-size:12px}body[data-listing-id] .spec-tabs{overflow-x:auto;flex-wrap:nowrap}body[data-listing-id] .spec-tabs button{white-space:nowrap;min-height:44px}
.mobile-app :where(input,select,textarea){max-width:100%;min-width:0}.mobile-app :where(button,input,select,textarea):focus-visible{outline:3px solid #126da8;outline-offset:2px}
}

.mobile-section-head,.mobile-account-hub{display:none}
@media(max-width:650px){
.mobile-section-page #unified-header .unified-search,.mobile-section-page #unified-header .mobile-home-actions,.mobile-section-page #unified-header .mobile-search-options,.mobile-section-page #unified-header .category-nav-custom{display:none!important}
.mobile-section-page .mobile-section-head{display:flex;align-items:center;gap:16px;padding:12px;min-height:68px;background:#fff;border-bottom:1px solid #dce4e9}.mobile-section-head h1{font:700 24px/1.2 Arial;margin:0;min-width:0}.mobile-section-head .mobile-menu-toggle{width:48px;flex:none}
.mobile-section-page .account-layout>.account-side{display:none!important}.mobile-section-page .account-layout:has(.mobile-account-hub) .profile-dashboard,.mobile-section-page .account-layout:has(.mobile-account-hub) #account-overview-link{display:none!important}.mobile-section-page .account-layout:has(.mobile-account-hub) .mobile-profile-open .profile-dashboard{display:block!important}
.mobile-account-hub{display:block;background:#fff;border-radius:10px;overflow:hidden}.mobile-account-row{display:flex;align-items:center;gap:14px;width:100%;padding:16px 12px;min-height:64px;border:0;border-bottom:1px solid #e2e8ec;color:#263c4d;background:white;text-align:left;text-decoration:none;font:16px/1.4 Arial}.mobile-account-row>img:first-child{width:30px;height:30px;flex:none}.mobile-account-row>span{flex:1;min-width:0}.mobile-account-row>img:last-child:not(:first-child){width:20px;height:20px}.mobile-account-row:nth-child(4),.mobile-account-row:nth-child(8){border-top:10px solid #f0f3f5}
.mobile-section-page .chat-layout{margin-top:0}.mobile-section-page main.page>h1,.mobile-section-page .wrap>.actions>h1{display:none}.mobile-section-page .chat-list>button>img{width:90px;height:90px}.mobile-section-page .chat-list>button:not(.chat-clear-all){min-height:120px}.mobile-section-page .chat-list strong{font-size:16px}.mobile-section-page .chat-list small{font-size:14px}
.mobile-section-page #items .item{display:grid;grid-template-columns:82px minmax(0,1fr);gap:8px 12px;border:0;border-bottom:1px solid #dce4e9;padding:14px 12px;border-radius:8px}.mobile-section-page #items .item>img{grid-row:1/5;width:82px;height:82px;object-fit:cover;border-radius:8px}.mobile-section-page #items .item>:not(img){grid-column:2;min-width:0;overflow-wrap:anywhere}.mobile-section-page #items .item h2{font-size:17px;margin:0}.mobile-section-page #items .item p{font-size:15px;line-height:1.4;margin:0}.mobile-section-page #items .item button{min-height:36px}.mobile-section-page .wrap>.actions{flex-wrap:wrap;justify-content:flex-end}.mobile-section-page .wrap{padding:12px}.mobile-section-page .wrap>.actions>div{display:flex;gap:6px;flex-wrap:wrap}
body[data-listing-id] .listing-layout>.gallery{min-width:0!important;width:100%;max-width:100%}
}
@media(max-width:650px){.mobile-section-page #unified-header.mobile-home-expanded .unified-search{display:grid!important}.mobile-section-page #unified-header.mobile-home-expanded .mobile-search-options{display:block!important}}
@media(max-width:650px){body[data-listing-id] .listing-main>.gallery{min-width:0!important;width:100%!important;max-width:100%!important}.mobile-section-page .chat-list>button>span{display:flex;flex-direction:column}.mobile-section-page .chat-list>button>span>strong{order:1}.mobile-section-page .chat-list>button>span>small:nth-child(2){order:0;font-size:16px;font-weight:600}.mobile-section-page .chat-list>button>span>small:last-child{order:2}}

/* THV_MOBILE_PROFILE_ROUTE_V1 */
.mobile-profile-back{display:none}
@media(max-width:650px){.mobile-profile-view .mobile-account-hub{display:none!important}.mobile-profile-view .mobile-profile-back{display:inline-flex;align-items:center;min-height:44px;margin-bottom:12px;padding:8px 12px;border:1px solid #b8cbd9;border-radius:8px;color:#176c9c;background:white;text-decoration:none}}

/* Prevent the unenhanced desktop menu flashing while the mobile header starts. */
@media(max-width:650px){#unified-header:not([data-mobile-ready]){visibility:hidden}}

@media(max-width:650px){.mobile-profile-view>h1,.mobile-profile-view .profile-heading h1{display:none}}

/* Prevent the unenhanced desktop menu flashing while the mobile header starts. */
@media(max-width:650px){#unified-header:not([data-mobile-ready]){visibility:hidden}}

/* THV_MOBILE_SEARCH_DIALOG_V1 */
.mobile-search-dialog{width:calc(100% - 24px);max-width:480px;max-height:90dvh;margin:auto;padding:18px;border:1px solid #b8cbd9;border-radius:14px;background:white;color:#263c4d;font:16px/1.4 Arial;overflow:auto}
.mobile-search-dialog::backdrop{background:#0008}
.mobile-search-dialog .mobile-search-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.mobile-search-dialog h2{font:bold 22px/1.2 Arial;margin:0}
.mobile-search-dialog button{min-height:44px;padding:10px 14px;border:1px solid #b8cbd9;border-radius:8px;background:white;color:#176c9c;font:600 15px Arial;cursor:pointer}
.mobile-search-dialog form{display:grid;gap:16px;margin:0}
.mobile-search-dialog label{display:block;font-weight:600}
.mobile-search-dialog input,.mobile-search-dialog select{display:block;width:100%;min-width:0;min-height:46px;margin:6px 0 0;padding:10px;border:1px solid #b8cbd9;border-radius:8px;background:white;color:#263c4d;font:16px Arial}
.mobile-search-dialog .mobile-search-dialog-submit{width:100%;background:#1476a6;color:white;border-color:#1476a6}
.mobile-search-dialog .mobile-search-dialog-language{width:100%;margin-top:16px}
