/* ============================================================
   Flooring showroom — styles added on top of v2c.styles.shopify.css
   (that file is the shared engine stylesheet and is left untouched).
   Rules start with #v2c-root so they beat the stylesheet's reset.
   ============================================================ */

/* ---------- one setting, two endings ---------- */
#v2c-root[data-mode="quote"] [data-only="cart"],
#v2c-root[data-mode="cart"]  [data-only="quote"]{ display:none !important }
#v2c-root[data-mode="quote"] details.setup{ display:none }
#v2c-root[data-mode="cart"]  .sr-start-new{ display:none }

/* ---------- banners (outside #v2c-root, so plain selectors) ---------- */
.sr-banner{
  position:sticky; top:0; z-index:60;
  padding:10px 16px; text-align:center;
  font:600 14px/1.4 Inter,system-ui,-apple-system,sans-serif;
}
.sr-banner[hidden]{ display:none }
.sr-banner-demo{
  background:repeating-linear-gradient(45deg,#B3261E,#B3261E 14px,#8E1C16 14px,#8E1C16 28px);
  color:#fff; letter-spacing:.04em; text-transform:uppercase;
}
.sr-banner-offline{ background:#1F2933; color:#fff }
.sr-banner-proto{ background:#B7791F; color:#fff; letter-spacing:.02em }

/* ---------- safe areas (iPad home screen, notches) ---------- */
body{
  padding-left:env(safe-area-inset-left,0); padding-right:env(safe-area-inset-right,0);
  padding-bottom:env(safe-area-inset-bottom,0);
}

/* ---------- touch-first ---------- */
#v2c-root button, #v2c-root select, #v2c-root input, #v2c-root label{ touch-action:manipulation }
#v2c-root button{ -webkit-tap-highlight-color:transparent }
#v2c-root .btn-link{ min-height:48px; display:inline-flex; align-items:center }
#v2c-root .btn-ghost, #v2c-root .btn-primary{ min-height:56px }
#v2c-root .sr-start-new{ min-height:48px; padding:0 18px }
#v2c-root .consent{ min-height:48px; align-items:center }
#v2c-root .consent input[type=checkbox]{ width:26px; height:26px }

/* A shared screen: no accidental text selection or long-press menus, but inputs still work */
html.sr-kiosk body{ -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; overscroll-behavior:none }
html.sr-kiosk input, html.sr-kiosk textarea{ -webkit-user-select:text; user-select:text }

/* ---------- form controls the engine stylesheet does not cover ---------- */
#v2c-root input[type=tel], #v2c-root textarea{
  width:100%; height:52px; padding:0 14px; border:1px solid var(--line-2); border-radius:8px;
  background:var(--surface); color:var(--ink); font-family:inherit; font-size:16px;
}
#v2c-root textarea{ height:auto; min-height:96px; padding:12px 14px; resize:vertical }
#v2c-root .sr-hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden }
#v2c-root .sr-error{ color:#A8442A; font-size:14px; line-height:1.45 }

/* ---------- step 3: summary + lead form ---------- */
#v2c-root .sr-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:20px; display:grid; gap:16px;
}
#v2c-root .sr-summary{ display:grid; grid-template-columns:96px 1fr; gap:16px; align-items:center }
#v2c-root .sr-thumb{ width:96px; height:96px; border-radius:8px; background-size:cover; background-position:center; border:1px solid var(--line) }
#v2c-root .sr-badge{
  display:inline-block; padding:3px 9px; border-radius:999px; background:var(--moss); color:var(--moss-ink);
  font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.1em; text-transform:uppercase;
}
#v2c-root .sr-facts{ display:grid; gap:0 }
#v2c-root .sr-facts .spec:last-child{ border-bottom:0 }
#v2c-root .sr-from{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding-top:12px; border-top:1px solid var(--line) }
#v2c-root .sr-actions{ display:grid; gap:12px }
#v2c-root .sr-visit-link{ text-align:center }
#v2c-root .sr-sent{ text-align:center; display:grid; gap:12px }
#v2c-root .sr-card.sr-sent{ padding:32px 24px }
#v2c-root .sr-dialog .sr-sent{ padding:8px 0 }
#v2c-root .sr-tick{
  width:56px; height:56px; border-radius:50%; margin:0 auto; background:var(--moss); color:var(--moss-ink);
  display:flex; align-items:center; justify-content:center; font-size:30px; line-height:1;
}

/* ---------- overlays ---------- */
#v2c-root .sr-overlay{
  position:fixed; inset:0; z-index:80; background:rgba(20,24,20,.6);
  display:flex; align-items:center; justify-content:center; padding:20px; overflow:auto;
}
#v2c-root .sr-overlay[hidden]{ display:none !important }
#v2c-root .sr-dialog{
  width:100%; max-width:520px; max-height:100%; overflow:auto;
  background:var(--surface); border-radius:14px; padding:24px; display:grid; gap:16px;
  box-shadow:0 12px 40px rgba(0,0,0,.35);
}
#v2c-root .sr-dialog h2{ font-size:24px }
#v2c-root .sr-dialog-actions{ display:flex; gap:12px; flex-wrap:wrap }
#v2c-root .sr-dialog-actions > *{ flex:1 1 140px }

/* ---------- landscape iPad: keep two columns and three tiers ---------- */
@media (min-width:900px) and (orientation:landscape){
  #v2c-root .tiers{ grid-template-columns:repeat(3,minmax(0,1fr)) }
}
@media (max-width:480px){
  #v2c-root .sr-summary{ grid-template-columns:72px 1fr }
  #v2c-root .sr-thumb{ width:72px; height:72px }
  #v2c-root .sr-start-new{ min-height:44px; padding:0 14px; font-size:15px }
  .sr-banner{ font-size:12px; padding:8px 12px }
}
@media (prefers-reduced-motion:reduce){ #v2c-root *{ animation:none !important; transition:none !important } }

/* showroom details card (step 3, left column) */

/* showroom details card (step 3, left column) */

/* ---------- favourites: pick grid, then the looks ---------- */
#v2c-root #tierCards.picks-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px }
#v2c-root #tierCards.looks-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px }
#v2c-root .picks-bar{ grid-column:1/-1; display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between }
#v2c-root .pick-swatch{ height:150px; background-size:cover; background-position:center }
#v2c-root .pick-card .body{ padding:16px; gap:8px }
#v2c-root .pick-card h3{ font-size:17px }
#v2c-root .pick-card button[disabled]{ opacity:.55 }
@media (max-width:1000px){ #v2c-root #tierCards.picks-grid{ grid-template-columns:repeat(3,minmax(0,1fr)) } }
@media (max-width:760px){
  #v2c-root #tierCards.picks-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px }
  #v2c-root #tierCards.looks-grid{ grid-template-columns:minmax(0,1fr) }
  #v2c-root .pick-swatch{ height:110px }
}

/* ---------- one setting, two step-3 layouts ---------- */
#v2c-root[data-selection="favourites"] .step3-classic{ display:none !important }
#v2c-root[data-selection="tiers"] .step3-favourites{ display:none !important }

/* ---------- step 1 extras ---------- */
#v2c-root .sr-sizemode{ margin-bottom:8px }
#v2c-root .sr-sizemode{ flex-wrap:nowrap }
#v2c-root .sr-sizemode button{ min-height:48px; flex:1 1 0; padding:8px 6px; font-size:15px }
#v2c-root .sr-samplerow{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px }
#v2c-root .sr-phone{
  display:flex; gap:18px; align-items:center; flex-wrap:wrap;
  border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); padding:16px;
}
#v2c-root .sr-qr{ width:150px; height:150px; flex:0 0 auto; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:#fff }
#v2c-root .sr-qr svg{ display:block; width:100%; height:100% }
#v2c-root .sr-phone-text{ flex:1 1 200px; min-width:0; display:grid; gap:6px }
#v2c-root .sr-phone-text h3{ font-size:17px }
#v2c-root .sr-phone .sr-tick{ margin:0; width:48px; height:48px; font-size:26px }

/* ---------- favourites: step 2, pick your floors ---------- */
#v2c-root .fav-host{ display:block; min-width:0; max-width:100% }   /* min-width:0 lets the tab bar scroll inside the page instead of stretching it */
#v2c-root .picks-bar{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; margin-bottom:14px }
#v2c-root .picks-count{ font-weight:600; font-size:17px }
#v2c-root .picks-bar-sticky{ display:none }
#v2c-root .showLooks[disabled]{ opacity:.45; cursor:not-allowed }   /* off until the first pick */
/* the tabs above the grid: one line that scrolls sideways when it is too wide, never stacking */
#v2c-root .fav-tabs{
  display:flex; flex-wrap:nowrap; gap:6px; margin-bottom:16px; border-bottom:1px solid var(--line);
  overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; max-width:100%;
}
#v2c-root .fav-tabs::-webkit-scrollbar{ display:none }
#v2c-root .fav-tab{
  flex:none; white-space:nowrap; min-height:48px; padding:0 18px; margin-bottom:-1px; background:none; border:0;
  border-bottom:3px solid transparent; color:var(--ink-2); font-size:16px; font-weight:500;
}
#v2c-root .fav-tab[aria-selected="true"]{ color:var(--ink); font-weight:700; border-bottom-color:var(--moss) }
#v2c-root .fav-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px }
#v2c-root .fav-card{
  display:flex; flex-direction:column; min-width:0; overflow:hidden;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow);
}
#v2c-root .fav-card.is-picked{ border:2px solid var(--moss) }
#v2c-root .fav-photo{ position:relative; aspect-ratio:3/2; background:var(--line) }
#v2c-root .fav-photo img{ display:block; width:100%; height:100%; object-fit:cover }
#v2c-root .fav-tick{
  position:absolute; left:10px; top:10px; width:34px; height:34px; border-radius:50%;
  background:var(--moss); color:var(--moss-ink); display:flex; align-items:center; justify-content:center;
  font-size:20px; line-height:1; box-shadow:0 1px 4px rgba(0,0,0,.35);
}
#v2c-root .fav-body{ padding:14px 16px 16px; display:flex; flex-direction:column; gap:8px; flex:1 }
#v2c-root .fav-body h3{ font-size:17px }
#v2c-root .fav-estimate{ font-weight:600; font-size:15px }
/* the small "Herringbone" label on a floor's photo (only when the product has a format) */
#v2c-root .fav-format{
  position:absolute; left:10px; bottom:10px; padding:3px 10px; border-radius:999px;
  background:rgba(255,255,255,.92); color:var(--ink); font-size:12px; font-weight:600; line-height:1.4;
  box-shadow:0 1px 3px rgba(0,0,0,.25);
}
#v2c-root .fav-actions{ margin-top:auto; padding-top:6px; display:flex }
#v2c-root .fav-actions .btn-ghost{ width:100%; min-height:48px }
#v2c-root .fav-actions .btn-link{ min-height:48px; padding:0 4px }
#v2c-root .fav-actions button[disabled]{ opacity:.5 }

/* ---------- favourites: step 3, your looks ---------- */
#v2c-root .fav-step3{ display:block }

/* one look per row: the picture, with the details beside it (wide) or below it (narrow) */
#v2c-root .fav-looks{ display:grid; grid-template-columns:minmax(0,1fr); gap:20px }
#v2c-root .fav-look{
  display:grid; grid-template-columns:minmax(0,1fr);
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden;
}
#v2c-root .fav-look.is-favourite{ border:3px solid var(--moss); box-shadow:0 0 0 3px color-mix(in srgb, var(--moss) 22%, transparent), var(--shadow) }
@media (min-width:700px){
  #v2c-root .fav-look{ grid-template-columns:minmax(0,65fr) minmax(0,35fr) }
}
#v2c-root .fav-picwrap{ position:relative; align-self:start }
#v2c-root .fav-pic{ border:0; border-radius:0; aspect-ratio:16 / 9 }
#v2c-root .fav-pic .knob{ width:60px; height:60px; margin:-30px 0 0 -30px; font-size:24px; box-shadow:0 2px 10px rgba(0,0,0,.4) }
#v2c-root .fav-pic .divider{ width:3px }
/* the whole picture is the slider, and the page can still be scrolled up and down with a finger on it */
#v2c-root .fav-pic input[type=range]{ touch-action:pan-y }

#v2c-root .fav-veil{
  position:absolute; inset:0; z-index:5; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:10px; padding:16px; text-align:center; font-size:15px; font-weight:600; color:#fff; background:rgba(20,24,20,.55);
}
#v2c-root .fav-spinner{ width:30px; height:30px; border-radius:50%; border:3px solid rgba(255,255,255,.35); border-top-color:#fff; animation:v2cspin 1s linear infinite }
@keyframes v2cspin{ to{ transform:rotate(360deg) } }
#v2c-root .fav-retry{ background:#fff; color:#1C1A16 }
#v2c-root .fav-nophoto{ display:flex; flex-wrap:wrap; gap:6px 12px; align-items:center; padding:10px 16px; font-size:13.5px; color:var(--ink-2); background:var(--surface-2) }
#v2c-root .fav-lookbody{ padding:16px 18px; display:flex; flex-direction:column; justify-content:center; gap:12px; min-width:0 }
#v2c-root .fav-name{ font-size:24px; line-height:1.15 }
#v2c-root .fav-prices{ display:grid; gap:2px }
#v2c-root .fav-price{ font-weight:700; font-size:16px }
#v2c-root .fav-price-fitted{ font-weight:600; font-size:16px; color:var(--ink-2) }
#v2c-root .fav-choose{ width:100%; min-height:56px; padding:0 8px; font-size:16px; font-weight:600; white-space:nowrap }
#v2c-root .fav-choose.btn-ghost{ border:2px solid var(--line-2) }
/* the tick on the chosen picture (the same badge as on the picker cards) */
#v2c-root .fav-picwrap .fav-tick{ left:14px; top:14px; z-index:4 }

/* the buttons that take them on: the main one, then two smaller ones side by side. iPad and phones: stuck to the bottom of
   the screen. A mouse on a big screen: just below the cards. */
#v2c-root .fav-panel{
  display:grid; gap:10px; margin-top:20px; padding:14px 0 calc(14px + env(safe-area-inset-bottom));
  position:sticky; bottom:0; z-index:30; background:var(--surface); border-top:1px solid var(--line);
  box-shadow:0 -4px 14px rgba(0,0,0,.08);
}
@media (min-width:1101px) and (hover:hover) and (pointer:fine){
  #v2c-root .fav-panel{ position:static; box-shadow:none; border-top:0; background:none; padding:0; max-width:720px; margin-left:auto; margin-right:auto }
  /* on a big screen the buttons come straight after the cards, before the showroom details */
  #v2c-root #looksHost{ display:flex; flex-direction:column }
  #v2c-root #looksHost .fav-panel{ order:1; width:100% }
  #v2c-root #looksHost .fav-disclaimer{ order:2 }
  #v2c-root #looksHost .fav-store{ order:3 }
}
#v2c-root .fav-main-btn{ width:100%; min-height:64px; font-size:19px; font-weight:700 }
#v2c-root .fav-main-btn[disabled]{ opacity:.55; cursor:not-allowed }
#v2c-root .fav-panel-row{ display:grid; grid-template-columns:1fr 1fr; gap:10px }
#v2c-root .fav-secondary{ min-height:52px; padding:0 8px; font-size:15px; font-weight:600; line-height:1.2 }
#v2c-root .fav-panel-hint{ margin:0; text-align:center; font-weight:600; color:#A8442A }

/* step 4: the quote */
#v2c-root .fav-quote{ display:grid; grid-template-columns:minmax(0,1fr); gap:20px; align-items:start }
@media (min-width:900px){ #v2c-root .fav-quote{ grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) } }
#v2c-root .fav-quote-pic{ border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); box-shadow:var(--shadow) }
#v2c-root .fav-qtitle{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px }
#v2c-root .fav-qtitle h2{ font-size:26px; line-height:1.15 }
#v2c-root .fav-format-pill{ padding:3px 10px; border-radius:999px; background:var(--surface-2); font-size:13px; font-weight:600 }
#v2c-root .fav-qlines{ display:grid; gap:2px; margin:12px 0 14px }
#v2c-root .fav-qline{ display:flex; justify-content:space-between; gap:16px; padding:9px 0; border-bottom:1px solid var(--line); font-size:15px }
#v2c-root .fav-qline span:last-child{ font-weight:600; text-align:right }
#v2c-root .fav-qhead{ margin:14px 0 0; font-size:13px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-2) }
#v2c-root .fav-qsub{ font-weight:600 }
#v2c-root .fav-qtotal{ border-bottom:0; padding-top:14px; font-size:20px; font-weight:700 }
#v2c-root .fav-qtotal span:last-child{ font-size:24px }

/* the confirmation after an order request */
#v2c-root .sr-ref{ margin:6px 0; font-size:40px; font-weight:800; letter-spacing:.06em; text-align:center }
#v2c-root .fav-disclaimer{ margin-top:14px }
@media (max-width:1000px){
  #v2c-root .fav-grid{ grid-template-columns:repeat(3,minmax(0,1fr)) }
}
@media (max-width:760px){
  #v2c-root .fav-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px }
  /* phones: the "Show my looks" bar sticks to the bottom of the screen, clear of the home bar */
  #v2c-root .fav-host > .picks-bar:not(.picks-bar-sticky){ display:none }
  #v2c-root .picks-bar-sticky{
    display:flex; position:sticky; bottom:0; z-index:30; margin:16px -20px 0; padding:12px 20px calc(12px + env(safe-area-inset-bottom));
    background:var(--surface); border-top:1px solid var(--line); box-shadow:0 -4px 14px rgba(0,0,0,.08);
  }
  #v2c-root .picks-bar-sticky{ flex-wrap:nowrap; justify-content:space-between; gap:10px }
  #v2c-root .picks-bar-sticky .picks-count{ font-size:16px; white-space:nowrap }
  #v2c-root .fav-tab{ padding:0 14px; font-size:15px }
  #v2c-root .fav-add{ font-size:14px; line-height:1.25; padding:0 6px }
  #v2c-root .sr-qr{ width:130px; height:130px }
  #v2c-root .fav-name{ font-size:24px }
  #v2c-root .fav-price, #v2c-root .fav-price-fitted{ font-size:17px }
}

/* the "Visit the showroom" card (address, phone, hours) */
#v2c-root .sr-card h3{ font-size:20px }
#v2c-root .sr-hours{ display:grid; gap:2px; color:var(--ink-2); font-size:14px }
#v2c-root .sr-card a{ color:var(--ink); font-weight:600; text-decoration:underline }

/* when the bottom bar scrolls to the form, leave room for the banner that sticks to the top */
#v2c-root #srForm{ scroll-margin-top:64px }
#v2c-root .fav-store{ margin-top:20px }

#v2c-root .sr-protocard{ display:flex; gap:12px; align-items:center; padding:12px; margin-top:10px; border:1px solid var(--line, #d9d4c9); border-radius:12px; background:#FBF6E9 }
#v2c-root .sr-protocard img{ width:84px; height:64px; object-fit:cover; border-radius:8px; flex:none }
#v2c-root .sr-protocard p{ margin:0 }
#v2c-root .sr-protocard-title{ font-weight:600; margin-bottom:2px }

/* ---------- header, step 1 and footer ---------- */
/* the logo on the left, "Start new design" on the right, on one line at every width: the logo shrinks first */
#v2c-root header.top{ flex-wrap:nowrap; gap:12px; align-items:center }
#v2c-root header.top .logo{ flex:0 1 auto; min-width:0; max-width:100%; object-fit:contain }
#v2c-root header.top .spacer{ flex:1 1 0; min-width:0 }
#v2c-root header.top .sr-start-new{ flex:0 0 auto; white-space:nowrap }
@media (max-width:480px){
  #v2c-root header.top .logo{ height:34px }
  #v2c-root header.top .sr-start-new{ min-height:44px; padding:0 12px; font-size:14px }
}

/* step 1 is just the form: the room size, the photo and the button */
#v2c-root .step1-form{ max-width:680px }

/* the photo box: everything stays inside the dashed line, and the box grows to fit */
#v2c-root .dropzone{ padding:18px; box-sizing:border-box; max-width:100% }
#v2c-root .dropzone .copy{ grid-template-columns:minmax(0,1fr) }
#v2c-root .dropzone .copy p{ overflow-wrap:anywhere }
#v2c-root .sr-photo-btns{ display:flex; flex-wrap:wrap; gap:10px }
#v2c-root .sr-photo-btn{ white-space:nowrap; padding:0 12px; position:relative; display:inline-flex; align-items:center; justify-content:center; flex:1 1 140px; box-sizing:border-box; text-align:center; cursor:pointer; font-size:15px }
#v2c-root .sr-photo-btn input[type=file]{ position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; font-size:0 }
#v2c-root .sr-photo-btn:focus-within{ outline:3px solid var(--moss); outline-offset:2px }
@media (max-width:520px){
  /* phones: the preview sits on top, full width, and the words and the button below it, so nothing is squeezed */
  #v2c-root .dropzone{ flex-direction:column; align-items:stretch; gap:14px }
  #v2c-root .dropzone .thumb{ width:100%; height:130px }
  #v2c-root .dropzone .copy{ flex:0 0 auto; width:100% }
}

/* the quiet credit at the bottom of every step */
#v2c-root .sr-credit{ margin-top:10px; font-size:12px; color:var(--ink-2); opacity:.7 }
#v2c-root .sr-credit a{ color:inherit; text-decoration:underline; text-underline-offset:2px; font-weight:400 }
#v2c-root .sr-credit a:hover{ opacity:1; color:var(--ink) }
