/* PaintDWall production bundle: colour-catalogue.html — group 2. */

/* BEGIN original stylesheet: css/colour-seam-final-v149.css */
/* V149: final high-specificity Colours-page seam fix. Loaded after every legacy stylesheet. */
html:has(body.colour-catalogue-page) body main > .hero,
html:has(body.colour-catalogue-page) body main > .wrap,
html:has(body.colour-catalogue-page) body main > .wrap > .filters,
html:has(body.colour-catalogue-page) body main > .wrap > .catalog-tools,
html:has(body.colour-catalogue-page) body main > .wrap > .catalog-panel,
html:has(body.colour-catalogue-page) body .filters,
html:has(body.colour-catalogue-page) body .catalog-tools {
  background-color: #f1f6fc !important;
  background-image: none !important;
}
html:has(body.colour-catalogue-page) body main > .hero {
  background: #f1f6fc !important;
  background-color: #f1f6fc !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  margin-bottom: 0 !important;
}
html:has(body.colour-catalogue-page) body main > .hero::before,
html:has(body.colour-catalogue-page) body main > .hero::after {
  content: none !important;
  display: none !important;
}
html:has(body.colour-catalogue-page) body main > .hero > .hero-inner,
html:has(body.colour-catalogue-page) body main > .hero .hero-copy {
  background: transparent !important;
  background-image: none !important;
}


/* V150: align colour filters with the hero/panel edges and widen search. */
html:has(body.colour-catalogue-page) body main > .wrap > .filters {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  gap: 8px !important;
}
html:has(body.colour-catalogue-page) body main > .wrap > .catalog-tools {
  padding-left: 0 !important;
  padding-right: 0 !important;
  gap: 16px !important;
}
html:has(body.colour-catalogue-page) body #shadeSearch {
  width: 320px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
html:has(body.colour-catalogue-page) body .catalog-tools > label {
  width: 320px !important;
  max-width: 100% !important;
  flex: 0 1 320px !important;
}
@media (max-width: 639px) {
  html:has(body.colour-catalogue-page) body #shadeSearch,
  html:has(body.colour-catalogue-page) body .catalog-tools > label {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* END original stylesheet: css/colour-seam-final-v149.css */

/* BEGIN original stylesheet: css/colour-mobile-filters-v151.css */
/* V152: compact mobile colour filters; keep controls flowing naturally and fix search icon positioning. */
@media (max-width: 639px) {
  body.colour-catalogue-page main > .wrap > .filters {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 14px 20px 8px !important;
    overflow: visible !important;
  }

  body.colour-catalogue-page main > .wrap > .filters > .filter {
    display: inline-flex !important;
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 38px !important;
    padding: 8px 13px !important;
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* Do not stretch the final category across the whole row. */
  body.colour-catalogue-page main > .wrap > .filters > .filter:last-child {
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-right: auto !important;
  }

  body.colour-catalogue-page main > .wrap > .catalog-tools {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 4px 20px 8px !important;
    margin: 0 !important;
  }

  body.colour-catalogue-page main > .wrap > .catalog-tools > label {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body.colour-catalogue-page main > .wrap > .catalog-tools > label > i {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: block !important;
    z-index: 2 !important;
    pointer-events: none !important;
    line-height: 1 !important;
  }

  body.colour-catalogue-page .shade-search {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 12px 16px 12px 44px !important;
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
  }

  body.colour-catalogue-page .result-count {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
  }
}

@media (max-width: 360px) {
  body.colour-catalogue-page main > .wrap > .filters > .filter {
    padding: 7px 10px !important;
    font-size: 0.76rem !important;
  }
}

/* END original stylesheet: css/colour-mobile-filters-v151.css */

/* BEGIN original stylesheet: css/colour-mobile-filters-v154.css */
/* V154: balanced, tidy mobile colour filter grid. Desktop styles remain untouched. */
@media (max-width: 639px) {
  body.colour-catalogue-page main > .wrap > .filters {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    justify-content: initial !important;
    gap: 8px 10px !important;
    padding: 14px 20px 10px !important;
    overflow: visible !important;
  }

  body.colour-catalogue-page main > .wrap > .filters > .filter {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 9px 10px !important;
    font-size: 0.84rem !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
  }

  /* Keep the final category visually balanced instead of leaving it at the left edge. */
  body.colour-catalogue-page main > .wrap > .filters > .filter:last-child {
    grid-column: 1 / -1 !important;
    width: calc(50% - 5px) !important;
    justify-self: center !important;
  }

  body.colour-catalogue-page main > .wrap > .catalog-tools {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 2px 20px 8px !important;
    margin: 0 !important;
  }

  body.colour-catalogue-page .shade-search-wrap {
    width: 100% !important;
    max-width: none !important;
  }

  body.colour-catalogue-page .shade-search-wrap .shade-search {
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 16px 12px 46px !important;
    font-size: 0.95rem !important;
  }

  body.colour-catalogue-page .result-count {
    margin: 0 !important;
    padding: 0 !important;
  }
}

@media (max-width: 360px) {
  body.colour-catalogue-page main > .wrap > .filters {
    gap: 7px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  body.colour-catalogue-page main > .wrap > .filters > .filter {
    padding: 8px 7px !important;
    font-size: 0.78rem !important;
  }
}

/* END original stylesheet: css/colour-mobile-filters-v154.css */

/* BEGIN original stylesheet: css/colour-mobile-search-final-v153.css */
/* V153: robust mobile search layout. The icon is rendered inside the input itself,
   avoiding dependency on utility-class positioning and preventing stray icon gaps. */
body.colour-catalogue-page .shade-search-wrap {
  position: relative !important;
  display: block !important;
  width: 320px !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.colour-catalogue-page .shade-search-wrap .shade-search {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding-left: 46px !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23718493' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 15px center !important;
  background-size: 20px 20px !important;
}
body.colour-catalogue-page .catalog-tools {
  align-items: flex-start !important;
}
body.colour-catalogue-page .result-count {
  margin: 0 !important;
}
@media (max-width: 639px) {
  body.colour-catalogue-page main > .wrap > .catalog-tools {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 4px 20px 8px !important;
    margin: 0 !important;
  }
  body.colour-catalogue-page .shade-search-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }
  body.colour-catalogue-page .shade-search-wrap .shade-search {
    width: 100% !important;
    min-height: 48px !important;
    font-size: .95rem !important;
    line-height: 1.3 !important;
    padding: 12px 16px 12px 46px !important;
  }
}

/* END original stylesheet: css/colour-mobile-search-final-v153.css */

/* BEGIN original stylesheet: css/colour-mobile-filters-v155.css */
/* V156: keep the mobile/tablet colour categories in a true three-column grid.
   The wider breakpoint accommodates Safari's desktop-window mobile testing view. */
@media (max-width: 1024px) {
  body.colour-catalogue-page main > .wrap > .filters {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    justify-content: initial !important;
    gap: 8px !important;
    padding: 14px 20px 10px !important;
    overflow: visible !important;
  }

  body.colour-catalogue-page main > .wrap > .filters > .filter {
    display: flex !important;
    grid-column: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 7px 5px !important;
    font-size: clamp(0.68rem, 1.8vw, 0.82rem) !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    box-sizing: border-box !important;
  }

  /* Put the seventh category in the middle column of the final row. */
  body.colour-catalogue-page main > .wrap > .filters > .filter:last-child {
    grid-column: 2 !important;
    width: 100% !important;
    justify-self: stretch !important;
  }
}

@media (max-width: 360px) {
  body.colour-catalogue-page main > .wrap > .filters {
    gap: 6px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  body.colour-catalogue-page main > .wrap > .filters > .filter {
    padding: 7px 3px !important;
    font-size: 0.68rem !important;
  }
}

/* END original stylesheet: css/colour-mobile-filters-v155.css */
