/* Adapter: makes the six customer layouts (customer-layouts.css) fit the home163 home page.
   customer-layouts.css was written for the atelier home page, so on this page it ordered unknown
   sections to the middle (steps below the price list, footer above the gallery) and stretched each
   category button across the whole row. Visual only. The original Atelier layout is untouched. */

/* Page order: hero, ticker, assistant, price list, steps, gallery, offers, holidays, reviews, rewards, footer. */
html[data-salon-layout]:not([data-salon-layout=atelier]) body.home163.preview-home #main>.lx-hero{order:1}
html[data-salon-layout]:not([data-salon-layout=atelier]) body.home163.preview-home #main>.lx-marquee{order:2}
html[data-salon-layout]:not([data-salon-layout=atelier]) body.home163.preview-home #main>.ask171{order:3}
html[data-salon-layout]:not([data-salon-layout=atelier]) body.home163.preview-home #main>#services{order:4}
html[data-salon-layout]:not([data-salon-layout=atelier]) body.home163.preview-home #main>.lx-steps{order:5}
html[data-salon-layout]:not([data-salon-layout=atelier]) body.home163.preview-home #main>.ink-moment{order:6}
html[data-salon-layout]:not([data-salon-layout=atelier]) body.home163.preview-home #main>#promotion{order:7}
html[data-salon-layout]:not([data-salon-layout=atelier]) body.home163.preview-home #main>#year163{order:8}
html[data-salon-layout]:not([data-salon-layout=atelier]) body.home163.preview-home #main>#feedback-trigger140{order:9}
html[data-salon-layout]:not([data-salon-layout=atelier]) body.home163.preview-home #main>#home-feedback276{order:10}
html[data-salon-layout]:not([data-salon-layout=atelier]) body.home163.preview-home #main>.soft163{order:11}
html[data-salon-layout]:not([data-salon-layout=atelier]) body.home163.preview-home #main>#visit{order:12}
html[data-salon-layout]:not([data-salon-layout=atelier]) body.home163.preview-home #main>.bottom{order:13}

/* Category buttons keep their grid cell. The layout CSS spans every non-link child across the row,
   which on this page made each category photo the full page width. */
html[data-salon-layout]:not([data-salon-layout=atelier]) body.home163.preview-home #services #servicecards>.cat163{grid-column:auto}

/* The assistant box sits inside the page width instead of running 12px past the right edge. */
html[data-salon-layout]:not([data-salon-layout=atelier]) body.home163.preview-home #main>.ask171{width:auto;max-width:1200px!important;margin:24px max(16px,calc((100% - 1200px)/2))!important;box-sizing:border-box}

/* Dark headers (Velvet, Lacquer, Glam): this page's sign-in and menu buttons, and Velvet's nav links,
   kept the dark text of the light header and could not be read. */
html[data-salon-layout=lacquer] body.home163:not(#_) .nw-header :is(.nw-signin163,.nw-menu-button){color:#fbf3e8!important;border-color:rgba(251,243,232,.45)!important}
html[data-salon-layout=glam] body.home163:not(#_) .nw-header :is(.nw-signin163,.nw-menu-button){color:#d8cbc3!important;border-color:rgba(216,203,195,.45)!important}
html[data-salon-layout=velvet] body.home163:not(#_) .nw-header :is(.nw-navigation a,.nw-signin163,.nw-menu-button){color:#e2c691!important}
html[data-salon-layout=velvet] body.home163:not(#_) .nw-header :is(.nw-signin163,.nw-menu-button){border-color:rgba(226,198,145,.45)!important}

/* Desktop category row: on this page the categories are photo cards. Velvet's single-column list and
   Petal's fixed 280px rows were drawn for text rows, and gave one huge arch per row. Phones keep the
   page's own side-scrolling row. */
@media (min-width:54.01rem){
 html[data-salon-layout]:not([data-salon-layout=atelier]) body.home163.preview-home:not(#_) #services #servicecards{grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-auto-rows:auto!important;gap:16px!important;border-top:0!important}
}
