/* ODMS Design Kit — phone & tablet polish (2.8.28). Loaded after proto.css. */

/* Product page: the info column may never be wider than the screen (it was pushed to 388px by the colour row) */
@media (max-width:1000px){
	.odms-ui.odms-ui .pdp{grid-template-columns:minmax(0,1fr)}
	.odms-ui.odms-ui .pdp > *,.odms-ui.odms-ui .pinfo,.odms-ui.odms-ui .gallery{min-width:0;max-width:100%}
	.odms-ui.odms-ui .colors{flex-wrap:wrap;row-gap:12px}
	.odms-ui.odms-ui .pinfo table{width:100%;max-width:100%;table-layout:fixed}
	.odms-ui.odms-ui .bulk-box td:last-child{text-align:right}
	.odms-ui.odms-ui .pinfo img,.odms-ui.odms-ui .odms-desc img{max-width:100%;height:auto}
}

@media (max-width:640px){
	/* sizes: as many 70px+ buttons per row as fit, never wider than the screen */
	.odms-ui.odms-ui .sizes{grid-template-columns:repeat(auto-fill,minmax(70px,1fr))}
	.odms-ui.odms-ui .odms-xopt{grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}
	/* quantity · add to bag · wishlist on one row */
	.odms-ui.odms-ui .buy{grid-template-columns:auto 1fr auto;align-items:stretch}
	.odms-ui.odms-ui .buy .odms-wish-btn{display:flex;align-items:center;justify-content:center;width:52px;height:56px;align-self:center;padding:0!important;overflow:hidden}
	.odms-ui.odms-ui .perks div{min-width:0}
	.odms-ui.odms-ui .odms-desc{overflow-wrap:anywhere}

	/* the gold chat button moves up while the sticky "Add to bag" bar is showing */
	.odms-ui.odms-ui .chat-fab{transition:transform .3s,bottom .45s}

	/* centred content */
	.odms-ui.odms-ui .subcats{justify-content:center}
	.odms-ui.odms-ui .odms-prose > .reveal:not(.odms-prose-part),.odms-ui.odms-ui .odms-prose > .lead,.odms-ui.odms-ui .odms-prose > .odms-updated{text-align:center}
	.odms-ui.odms-ui form .btn-dark,.odms-ui.odms-ui form button[type=submit]{display:flex;margin-left:auto;margin-right:auto}
	.odms-ui.odms-ui .ticket-routing,.odms-ui.odms-ui form .routed{text-align:center}

	/* long breadcrumbs (e.g. Special Orders / Hospitality / …) wrap instead of running off the screen */
	.odms-ui.odms-ui .crumbs{flex-wrap:wrap;row-gap:6px;padding:0 8px}
	.odms-ui.odms-ui .crumbs a,.odms-ui.odms-ui .crumbs span{white-space:nowrap}

	/* readable scrolling announcement bar */
	.odms-ui.odms-ui .track span{font-size:11px}

	/* home department tiles: small tiles keep label and title apart */
	.odms-ui.odms-ui .dept .tile:not(.big) .cap p{font-size:11px!important;margin-top:4px!important;line-height:1.35}
	.odms-ui.odms-ui .dept .tile:not(.big) h3{font-size:19px;line-height:1.15}

	/* phones show the same home content as desktop (2.8.26); these blocks are re-flowed to fit */
	.odms-ui.odms-ui .split .float{position:static;margin:14px 0 0;max-width:none;width:auto;transform:none}
	.odms-ui.odms-ui .features{grid-template-columns:1fr 1fr;gap:14px}
	.odms-ui.odms-ui .stats{grid-template-columns:repeat(3,1fr);gap:10px}
	.odms-ui.odms-ui .tile.type p{display:block}
	.odms-ui.odms-ui .world ul{width:fit-content;max-width:100%;margin-left:auto;margin-right:auto;text-align:left}
	.odms-ui.odms-ui .slide .btn-ghost{margin-top:0}
	.odms-ui.odms-ui .dept .tile:not(.big) .cap small,.odms-ui.odms-ui .dept .tile:not(.big) > .eyebrow{font-size:9px;letter-spacing:.12em;line-height:1.35;white-space:nowrap}

	/* B2B "who we serve" strip: 2 tidy columns, words never split, odd last item centred */
	.odms-ui.odms-ui .who .w{padding:18px 10px;gap:10px;font-size:12.5px;border-left:0;border-top:1px solid var(--line-l)}
	.odms-ui.odms-ui .who .w:nth-child(even){border-left:1px solid var(--line-l)}
	.odms-ui.odms-ui .who .w:nth-child(-n+2){border-top:0}
	.odms-ui.odms-ui .who .w:last-child:nth-child(odd){grid-column:1/-1;justify-content:center}
	.odms-ui.odms-ui .who svg{width:24px;height:24px}

	.odms-ui.odms-ui section.sec-sm:has(.dual){padding-top:44px!important}
}

/* home: room above the "Two ways to shop" section now that it sits under the service strip */
@media (min-width:641px){.odms-ui.odms-ui section.sec-sm:has(.dual){padding-top:72px!important}}

/* all screen sizes: the B2B "who we serve" strip style must not paint the review card's customer line */
.odms-ui.odms-ui .review .who{background:none}

/* all screen sizes: tile labels stay readable on light photos */
.odms-ui.odms-ui .dept .tile .cap small,.odms-ui.odms-ui .dept .tile .cap h3{text-shadow:0 1px 10px rgba(0,0,0,.55)}

/* all screen sizes: the chat button never covers the sticky "Add to bag" bar */
html:has(.sticky-buy.on) .odms-ui.odms-ui .chat-fab{bottom:100px}
@media (max-width:640px){html:has(.sticky-buy.on) .odms-ui.odms-ui .chat-fab{bottom:82px}}

/* ---------- B2B portal upgrade (2.8.28) ---------- */
/* hero: live catalogue figures */
.odms-ui.odms-ui .b2b-figs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:34px;padding-top:26px;border-top:1px solid rgba(255,255,255,.14)}
.odms-ui.odms-ui .b2b-figs b{display:block;font-family:var(--serif,'Cormorant Garamond',serif);font-size:34px;font-weight:500;line-height:1;color:var(--gold-soft)}
.odms-ui.odms-ui .b2b-figs span{display:block;margin-top:8px;font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.62);line-height:1.4}
/* catalog: category tabs + counts */
.odms-ui.odms-ui .cat-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.odms-ui.odms-ui .cat-tabs button{padding:10px 16px;border:1px solid var(--sand);border-radius:999px;background:#fff;font-size:12.5px;font-weight:600;transition:all .25s}
.odms-ui.odms-ui .cat-tabs button.on{background:var(--midnight);border-color:var(--midnight);color:#fff}
.odms-ui.odms-ui .cat-count{font-size:13px;color:var(--muted);margin:0 0 12px}
.odms-ui.odms-ui .cat-count .link-arrow{margin-left:6px}
.odms-ui.odms-ui .bulk-nav summary small,.odms-ui.odms-ui .bulk-nav li small{font-weight:400;color:var(--muted-2,#9a9a9a);margin-left:4px}
.odms-ui.odms-ui .bulk-nav summary small{margin-left:auto;margin-right:10px}
/* catalog rows: product photo + name, headers on one line */
.odms-ui.odms-ui .btable th{white-space:nowrap}
.odms-ui.odms-ui .btable td.pn{display:grid;grid-template-columns:52px minmax(0,1fr);column-gap:14px;align-items:center}
.odms-ui.odms-ui .btable td.pn .bthumb{grid-row:1 / span 2;width:52px;height:52px;border-radius:8px;overflow:hidden;background:var(--ivory)}
.odms-ui.odms-ui .btable td.pn .bthumb img{width:100%;height:100%;object-fit:cover;display:block}
.odms-ui.odms-ui .btable td.pn b,.odms-ui.odms-ui .btable td.pn small{grid-column:2}
/* quote builder: product search */
.odms-ui.odms-ui .qpick{position:relative;min-width:0}
.odms-ui.odms-ui .qres{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:20;background:#fff;border:1px solid var(--sand);border-radius:var(--r-sm);box-shadow:0 14px 34px rgba(15,30,61,.14);max-height:340px;overflow:auto}
.odms-ui.odms-ui .qres button{display:flex;gap:10px;align-items:center;width:100%;text-align:left;padding:9px 12px;border-bottom:1px solid var(--line);font-size:13px;line-height:1.3}
.odms-ui.odms-ui .qres button:hover{background:var(--ivory)}
.odms-ui.odms-ui .qres img{width:38px;height:38px;object-fit:cover;border-radius:6px;flex:none}
.odms-ui.odms-ui .qres small{display:block;color:var(--muted);font-size:11.5px;margin-top:2px}
.odms-ui.odms-ui .qres .qcustom{color:var(--gold-2)}
@media (max-width:1000px){
	.odms-ui.odms-ui .b2b-figs{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
	.odms-ui.odms-ui .b2b-figs{gap:14px;margin-top:26px}
	.odms-ui.odms-ui .b2b-figs b{font-size:27px}
	.odms-ui.odms-ui .cat-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
	.odms-ui.odms-ui .cat-tabs button{flex:none}
	.odms-ui.odms-ui .qline{grid-template-columns:minmax(0,1fr) 80px 36px}
}
