/* Chameleon: preserve the existing layout and palette; make controls usable on touch screens. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.ch-product-lightbox{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.ch-product-lightbox img{width:auto;height:auto;min-width:0;min-height:0;max-width:100%!important;max-height:100%!important;justify-self:center;align-self:center}
@media(max-width:1024px),(pointer:coarse){
  .che-rec-controls button,.ch-latest-products-controls button,.ch-ranked-products-controls button,
  .ch-product-lightbox-close{min-width:44px;min-height:44px;touch-action:manipulation}
  .che-rec-controls,.ch-latest-products-controls,.ch-ranked-products-controls{flex-shrink:0;flex-wrap:wrap}
  .che-recommendations>header,.che-rec-header,.che-rec-heading,.ch-latest-products-heading,.ch-ranked-products-heading{flex-wrap:wrap}
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{font-size:16px}
  .header-search .search-submit{min-width:44px;min-height:44px}
  select{min-height:44px}
}
/* The inherited five-column community row needs earlier tablet breakpoints. */
@media(max-width:1279px){.ch-community .ch-community-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:899px){.ch-community .ch-community-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:480px){.ch-community .ch-community-grid{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:319px){
  .che-editorial article:not(.che-catalog-general) .che-finish-options{grid-template-columns:repeat(auto-fit,minmax(52px,1fr))!important}
  .che-editorial article:not(.che-catalog-general) .che-finish-option span{max-width:100%;overflow-wrap:anywhere;white-space:normal!important}
}
@media(max-height:500px) and (orientation:landscape){
  .ch-product-lightbox{overflow:auto;overscroll-behavior:contain}
  .ch-product-lightbox img{max-height:calc(100dvh - 64px)!important}
}

.ch-owned-orders{color:#20352c;min-width:0}.ch-owned-orders .ch-order-card{display:flex;align-items:center;flex-wrap:wrap;gap:16px;background:#f3f5ef;border:1px solid #dfe7df;border-radius:14px;padding:18px;margin:14px 0;overflow-wrap:anywhere}.ch-order-card>div{flex:1 1 180px;min-width:0}.ch-order-card p{margin:8px 0}.ch-order-card a.button{min-height:44px;background:#3d604a;color:#fff}.ch-order-totals{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:18px;border:1px solid #dfe7df;border-radius:14px}.ch-order-totals dd{margin:0}.ch-owned-orders nav{display:flex;gap:12px;flex-wrap:wrap}.ch-order-lines .ch-order-card>strong:first-child{flex:1 1 180px;min-width:0}
