
/* Only layout for the worktop-specific controls. The catalogue provides the theme. */
.worktops [hidden] { display:none !important }
.worktops .wt-intro {align-items:flex-start;margin-bottom:32px}
.worktops .material-hero img {display:block;width:100%;height:auto;max-height:300px;object-fit:contain;background:white}
.worktops .material-tabs {display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px 18px;margin:0 0 24px}
.worktops .material-tabs .btn {text-align:left;white-space:normal}
.worktops .material-tabs [aria-current] {text-decoration:underline}
.worktops .material-tabs .product-availability {display:block;font-size:10px}
.worktops .materials {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 24px}
.worktops .materials .material-card {margin:0;min-height:0}
.worktops .materials .material-card .product__wrap {
  display:flow-root;
  position:relative;
  inset:auto;
  width:100%;
  min-height:0;
  padding:0;
}
/* Keep the colour count in the row when the catalogue theme reveals it on hover. */
.worktops .materials .material-card .product__desc {margin:8px 0 0;visibility:visible;opacity:1}
@media (hover:hover) and (pointer:fine) {
  .worktops .materials .material-card:not(:hover):not(:focus-visible) .product__desc {visibility:hidden;opacity:0}
}
.worktops .material-card .product__image {aspect-ratio:3/2;min-height:0;padding:0}
.worktops .material-card .product__image:before {display:none}
.worktops section {margin:0 0 40px;scroll-margin:95px}
.worktops h2 {scroll-margin:95px}
.worktops h2 small {display:block;font-size:14px;text-transform:none;font-weight:400}
.worktops .sizes-section {max-width:496px;margin:16px 0 0}
.worktops .wt-sizes {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,138px),1fr));border:0;min-width:0;padding:0;gap:5px;margin:10px 0}
.worktops .size-choice {position:relative;margin:0;min-height:44px;background:white;padding:5px 8px;display:flex;gap:6px;align-items:center;cursor:pointer}
.worktops .size-choice input {width:20px;height:20px;position:absolute;left:8px;top:50%;transform:translateY(-50%);opacity:0;z-index:1;cursor:pointer}
.worktops .size-choice .ui__checkbox {left:8px;top:50%;transform:translateY(-50%)}
.worktops .size-choice .ui__check-text {padding:0 0 0 28px}
.worktops .size-choice input:focus-visible + span {outline:2px solid currentColor}
.worktops .size-choice input:checked + span:after {opacity:1}
.worktops .size-choice small,.worktops .incoming,.worktops .incoming small {display:block}
.worktops .wt-actions {display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.worktops .decor-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;width:100%;max-width:max(835px,75%)}
.worktops .decor-card {background:white;padding:12px;height:100%}
.worktops .decor-card table {font-size:15px}
.worktops .decor-card td,.worktops .decor-card th {padding:5px 6px}
.worktops .decor-card th {white-space:nowrap}
.worktops .wt-decor-head {display:flex;gap:10px;align-items:center;margin:0 0 8px}
.worktops button.decor-zoom-trigger {cursor:zoom-in;border:0;background:white;padding:0}
.worktops .wt-decor-head img {width:84px;height:66px;object-fit:contain;display:block}
.worktops .factory-color button {width:100%}
.worktops .factory-color .product__image img {position:absolute;inset:5%;width:90%;height:90%;object-fit:contain}
.worktops .material-card .product__image img {position:absolute;inset:1.5%;width:97%;height:97%;object-fit:contain}
.worktops table {border-collapse:collapse;width:100%;font:inherit;background:white}
.worktops td,.worktops th {padding:8px 10px;text-align:left;border-bottom:1px solid #e3e3e3;line-height:1.35}
.worktops .selected-size {background:#f2f1ed}
.worktops .specs-scroll {max-width:100%;overflow-x:auto}
.worktops .specs-scroll table {min-width:645px}
.worktops .profile {display:block;width:235px;max-width:none;height:auto}
.worktops .incoming {font-size:13px}
.worktops .factory-color {margin-bottom:12px}
.worktops .sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#decor-zoom,#decor-lightbox {background:white;color:#202020;box-shadow:0 8px 30px #0003;padding:12px;text-align:center;border:0}
#decor-zoom {position:fixed;z-index:10020;pointer-events:none;max-width:calc(100vw - 24px)}
#decor-zoom img {display:block;width:100%;max-height:48vh;object-fit:contain}
#decor-lightbox {width:min(640px,94vw);max-height:90vh;margin:auto;position:fixed}
#decor-lightbox::backdrop {background:#0009}
#decor-lightbox form {display:flex;justify-content:flex-end}
#decor-lightbox img {display:block;width:100%;max-height:62vh;object-fit:contain}
@media(min-width:1600px) {
  .worktops .materials {grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:1199px) {
  .worktops .materials {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:991px) {
  .worktops .decor-grid {grid-template-columns:repeat(2,minmax(0,1fr));max-width:100%}
}
@media(max-width:575px) {
  .worktops .materials,.worktops .decor-grid {grid-template-columns:minmax(0,1fr)}
  .worktops .wt-sizes {grid-template-columns:repeat(2,minmax(0,1fr))}
  .worktops .decor-card {padding:10px}
  .worktops td,.worktops th {padding:6px}
  .worktops .wt-decor-head img {width:85px;height:70px}
}
