.table-builder { width: 100%; margin: 0; }
.table-builder__title { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.table-builder__viewer { position: relative; width: 100%; background: #777; }
.table-builder__frame { display: block; width: 100%; height: var(--table-builder-frame-height, calc(100dvh - 150px)); min-height: 420px; border: 0; background: #777; }
.table-builder__photos { position: absolute; inset: 0; display: grid; place-items: center; background: #777; }
.table-builder__photos[hidden], .table-builder__photo[hidden] { display: none; }
.table-builder__photo { display: grid; place-items: center; width: 100%; height: 100%; margin: 0; }
.table-builder__image { display: block; width: 100%; height: 100%; object-fit: contain; }
.table-builder__modes { position: absolute; z-index: 2; top: calc(var(--table-builder-scene-height, 100dvh) - 70px); left: calc((100% - max(330px, 25%)) / 2); display: flex; padding: 3px; transform: translateX(-50%); border: 1px solid rgba(255, 255, 255, .55); border-radius: 4px; background: rgba(85, 85, 85, .55); backdrop-filter: blur(8px); }
.table-builder__mode { min-width: 62px; min-height: 30px; padding: 4px 12px; border: 0; border-radius: 2px; background: transparent; color: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.table-builder__mode[aria-selected="true"] { background: #f5f2ec; color: #2b2b2b; }
.table-builder__arrow { position: absolute; top: 50%; width: 44px; height: 44px; transform: translateY(-50%); border: 0; border-radius: 50%; background: rgba(35, 35, 35, .62); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.table-builder__arrow--prev { left: 24px; }
.table-builder__arrow--next { right: 24px; }
.table-builder__count { position: absolute; right: 24px; bottom: 24px; color: #fff; font-size: 13px; }
.table-builder__status { margin: 0; padding: 12px 20px; color: #ad3535; font-size: 14px; }
.table-builder__status:empty { display: none; }

.table-builder__recommendations { box-sizing: border-box; max-width: 1440px; margin: 0 auto; padding: 72px 24px 96px; }
.table-builder__section + .table-builder__section { margin-top: 80px; }
.table-builder__section-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.table-builder__section-title { margin: 0; color: #1a3052; font-size: clamp(25px, 2.4vw, 34px); font-weight: 700; line-height: 1.2; }
.table-builder__controls { display: flex; flex: none; gap: 8px; }
.table-builder__control { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #dce2e6; border-radius: 50%; background: #fff; color: #1a3052; font: 26px/1 Jost, sans-serif; cursor: pointer; }
.table-builder__control:hover { border-color: #ef7d00; color: #ef7d00; }
.table-builder__control:disabled { border-color: #dce2e6; color: #aeb8c2; cursor: default; }
.table-builder__control:focus-visible { outline: 2px solid #ef7d00; outline-offset: 3px; }
.table-builder__rail { display: grid; grid-auto-columns: calc((100% - 60px) / 4); grid-auto-flow: column; gap: 20px; margin: -16px -12px -30px; padding: 16px 12px 30px; overflow-x: auto; list-style: none; scroll-behavior: smooth; scroll-snap-type: x mandatory; scroll-padding-inline: 12px; scrollbar-width: none; }
.table-builder__rail::-webkit-scrollbar { display: none; }
.table-builder__slide { scroll-snap-align: start; }
.table-builder__stock-card { scroll-snap-align: start; }
.table-builder__stock-title { margin-top: 0; }
.table-builder__stock-details { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.table-builder__card-meta { display: -webkit-box; min-height: 2.8em; margin: 0; overflow: hidden; color: #536173; font-size: 14px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.table-builder__card-order { min-height: 44px; margin-top: 4px; padding: 10px 20px; border: 0; border-radius: 8px; background: #ef7d00; color: #fff; font: 600 14px Jost, sans-serif; cursor: pointer; }
.table-builder__card-order:hover { background: #d76f00; }
.table-builder__card-order:focus-visible { outline: 2px solid #1a3052; outline-offset: 3px; }
@media (max-width: 1023px) { .table-builder__rail { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 767px) { .table-builder__recommendations { padding: 48px 16px 64px; } .table-builder__section + .table-builder__section { margin-top: 56px; } .table-builder__rail { grid-auto-columns: minmax(250px, 82%); gap: 12px; } .table-builder__section-title { font-size: 24px; } }
@media (max-width: 767px) {
  .table-builder__arrow { width: 36px; height: 36px; }
  .table-builder__arrow--prev { left: 12px; }
  .table-builder__arrow--next { right: 12px; }
  .table-builder__count { right: 12px; bottom: 12px; }
}
@media (max-width: 860px) { .table-builder__modes { left: 50%; } }
