.specs-table-toolbar-wrap {
  position: relative;
  z-index: 20;
}

.specs-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-16);
  margin-top: var(--spacing-20);
  margin-bottom: var(--spacing-12);
  min-width: 0;
}

.product-specifications,
.specs-table-toolbar-wrap,
.specs-table-toolbar-filters,
.specs-table-toolbar-actions {
  min-width: 0;
  max-width: 100%;
}

.specs-table-toolbar-filters,
.specs-table-toolbar-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-16);
}

.specs-table-toolbar-filters {
  flex-wrap: wrap;
}

.specs-table-chip,
.specs-table-settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-12);
  min-height: var(--spacing-32);
  padding: 0 var(--spacing-12);
  border-radius: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-13);
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}

.specs-table-chip {
  border: 1px solid var(--color-border-gray);
  background-color: var(--color-white);
  color: var(--color-gray-text);
}

.specs-table-chip--active {
  border-color: var(--color-red);
  background-color: var(--color-red);
  color: var(--color-white);
}

.specs-table-chip--clear:hover {
  border-color: var(--color-gray-text);
}

.specs-table-chip-icon,
.specs-table-settings-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: currentColor;
}

.specs-table-chip-icon svg,
.specs-table-settings-btn-icon svg {
  display: block;
}

.specs-table-settings-btn {
  border: 1px solid var(--color-red);
  background-color: var(--color-red);
  color: var(--color-white);
}

.specs-table-settings-btn-icon {
  width: 15px;
  height: 15px;
}

.specs-table-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: var(--spacing-20);
  padding-bottom: 2px;
  border: 1px solid var(--color-border-gray);
  background-color: var(--color-white);
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.specs-table-scroll-shell {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.product-specifications:has(.specs-table-settings-panel:not([hidden])) {
  position: relative;
  z-index: var(--z-index-table-popup);
}

.specs-table-scroll-shell:has(.specs-table-settings-panel:not([hidden])),
.specs-table-wrapper:has(.specs-table-settings-panel:not([hidden])) {
  z-index: var(--z-index-table-popup);
}

/* Меню фильтра позиционируется fixed: без своего контекста наложения у обёртки
   оно перекрывает шапку сайта, а таблица при этом остаётся под ней. */
.specs-table-wrapper:has(.filter-menu.active) {
  z-index: auto;
}

.product-specifications:has(.filter-menu.active) .specs-table-scroll-controls,
.product-specifications:has(.specs-table-settings-panel:not([hidden])) .specs-table-scroll-controls {
  opacity: 0;
  pointer-events: none;
}

.product-specifications:has(.filter-menu.active) .specs-table-wrapper,
.product-specifications:has(.specs-table-settings-panel:not([hidden])) .specs-table-wrapper {
  overflow-y: visible;
}

.specs-table-scroll-controls {
  position: absolute;
  right: var(--spacing-16);
  top: var(--specs-scroll-controls-top, 50%);
  bottom: auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-14);
  transform: translateY(var(--specs-scroll-controls-shift, -50%));
  z-index: 2;
  pointer-events: none;
  will-change: top;
}

.specs-table-scroll-controls[hidden] {
  display: none;
}

.specs-table-scroll-shell--with-cart-column .specs-table-scroll-controls {
  right: calc(3.25rem + (var(--spacing-16) * 2) + var(--spacing-20));
}

.specs-table-scroll-btn {
  width: 1.75rem;
  height: 3.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #cfcfcf;
  background-color: rgba(255, 255, 255, 0.96);
  color: #bdbdbd;
  box-shadow: -9px 0 9.7px 0 #0000000a;
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}

.specs-table-scroll-btn:hover {
  border-color: #a9a9a9;
  color: #8d8d8d;
  box-shadow: -9px 0 9.7px 0 #0000000a;
}

.specs-table-scroll-btn:disabled {
  opacity: 1;
  border-color: #ececec;
  color: #e3e3e3;
  box-shadow: none;
  cursor: default;
}

.specs-table-scroll-btn svg {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
}

.specs-table-scroll-btn svg path {
  stroke-width: 1.2;
}

.specs-table-scroll-btn:not(:disabled):not(:hover) {
  border-color: #bcbcbc;
  color: #b0b0b0;
}

.specs-table-wrapper::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.specs-table-wrapper::-webkit-scrollbar-track {
  background: var(--color-gray-light);
}

.specs-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--color-border-gray);
  border-radius: 8px;
  border: 2px solid var(--color-gray-light);
}

.specs-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-gray);
}

.specs-table-toolbar + .specs-table-wrapper,
.specs-table-toolbar + .specs-table-scroll-shell .specs-table-wrapper {
  margin-top: 0;
}

.specs-table-settings-panel {
  position: absolute;
  top: calc(100% + var(--spacing-8));
  right: 0;
  width: min(100%, var(--spacing-700));
  padding: var(--spacing-24);
  border: 1px solid var(--color-border-gray);
  background-color: var(--color-white);
  z-index: 30;
  box-shadow: -9px 0 9.7px 0 #0000000a;
}

.specs-table-settings-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-16);
  margin-bottom: var(--spacing-24);
}

.specs-table-settings-panel-header-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-16);
  width: 100%;
}

.specs-table-settings-panel-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--spacing-16);
  flex: 0 0 auto;
}

.specs-table-settings-panel-title {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-18);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-black);
}

.specs-table-settings-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-gray-text);
  cursor: pointer;
  transition: color 0.2s ease;
  flex: 0 0 auto;
}

.specs-table-settings-close:hover {
  color: var(--color-black);
}

.specs-table-settings-close svg {
  display: block;
  width: 1rem;
  height: 1rem;
}

.specs-table-settings-reset {
  padding: 0;
  border: none;
  background: transparent;
  font-family: var(--font-family);
  font-size: var(--font-size-13);
  font-weight: 400;
  line-height: 1.2;
  color: #c7c7c7;
  text-decoration: underline;
  cursor: pointer;
}

.specs-table-settings-reset:focus-visible,
.specs-table-settings-btn:focus-visible,
.specs-table-settings-apply:focus-visible,
.specs-table-settings-option input:focus-visible {
  outline: none;
}

.specs-table-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--spacing-40);
  row-gap: var(--spacing-16);
}

.specs-table-settings-option {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-14);
  cursor: pointer;
}

.specs-table-settings-option input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 0;
  border: 1px solid #d9d9d9;
  background-color: var(--color-white);
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.specs-table-settings-option input:checked {
  border-color: var(--color-red);
  background-color: var(--color-red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.25 6.15L4.8 8.7L9.75 3.75' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.specs-table-settings-option-label {
  font-family: var(--font-family);
  font-size: var(--font-size-14);
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-black);
}

.specs-table-settings-apply {
  width: 100%;
  min-height: var(--spacing-44);
  margin-top: var(--spacing-32);
  border: 1px solid var(--color-red);
  background-color: transparent;
  color: var(--color-red);
  font-family: var(--font-family);
  font-size: var(--font-size-16);
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.specs-table-settings-apply:hover {
  background-color: var(--color-red);
  color: var(--color-white);
}

pre {
  overflow-x: scroll;
}

.specs-table-wrapper pre {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  font-family: inherit;
  white-space: normal;
  width: 100%;
  max-width: 780px;
  display: block;
  overflow-x: auto;
}

.specs-table,
table:not([class]) {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  overflow: visible;
  margin: 0;
}

.specs-table thead {
}

.specs-table thead tr,
table:not([class]) thead tr {
  box-shadow: 0 1px 0 0 var(--color-border-gray);
}

.specs-table th,
table:not([class]) th {
  color: rgb(51, 51, 51);
  font-size: var(--font-size-13);
  font-weight: 400;
  text-align: left;
  vertical-align: top;
  padding: 1rem 1.25rem 0.875rem;
  border-bottom: none;
}

.specs-table thead th,
table:not([class]) thead th {
  box-shadow: inset 0 -1px 0 0 var(--color-border-gray);
}

.specs-table thead tr,
table:not([class]) thead tr {
  height: 1px;
}

.specs-table thead th,
table:not([class]) thead th {
  height: inherit;
}

.specs-table-sticky-header {
  position: fixed;
  z-index: var(--z-index-table-sticky-header);
  display: none;
  overflow: hidden;
  box-sizing: border-box;
  border-left: 1px solid var(--color-border-gray);
  border-right: 1px solid var(--color-border-gray);
  background-color: var(--color-white);
}

.specs-table-sticky-header.is-visible {
  display: block;
}

.specs-table-sticky-header table {
  table-layout: fixed;
  margin: 0;
}

.specs-table-sticky-header thead th {
  background-color: var(--color-white);
}

.specs-table th:first-child,
.specs-table td:first-child,
table:not([class]) th:first-child,
table:not([class]) td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
}

.specs-table th:last-child,
.specs-table td:last-child,
table:not([class]) th:last-child,
table:not([class]) td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
}

.specs-table--plain th:first-child,
.specs-table--plain td:first-child,
.specs-table--plain th:last-child,
.specs-table--plain td:last-child {
  position: static;
  left: auto;
  right: auto;
  z-index: auto;
  box-shadow: none;
}

.specs-table--plain thead th:first-child,
.specs-table--plain thead th:last-child,
.specs-table--plain tbody tr td:first-child,
.specs-table--plain tbody tr td:last-child,
.specs-table--plain tbody tr:nth-child(even) td:first-child,
.specs-table--plain tbody tr:nth-child(even) td:last-child {
  background-color: inherit;
}

.specs-table-wrapper--plain table:not([class]) th:first-child,
.specs-table-wrapper--plain table:not([class]) td:first-child,
.specs-table-wrapper--plain table:not([class]) th:last-child,
.specs-table-wrapper--plain table:not([class]) td:last-child {
  position: static;
  left: auto;
  right: auto;
  z-index: auto;
  box-shadow: none;
  background-color: inherit;
}

.specs-table-wrapper--first-column-only table:not([class]) th:last-child,
.specs-table-wrapper--first-column-only table:not([class]) td:last-child {
  position: static;
  right: auto;
  z-index: auto;
  box-shadow: none;
}

.specs-table-wrapper--first-column-only table:not([class]) {
  width: 100%;
  table-layout: fixed;
}

.specs-table-wrapper--first-column-only {
  border: none;
}

.specs-table-wrapper--first-column-only table:not([class]) th:first-child,
.specs-table-wrapper--first-column-only table:not([class]) td:first-child {
  position: static;
  left: auto;
  z-index: auto;
  box-shadow: none;
  background-color: inherit;
  width: 20%;
  max-width: 20%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.specs-table-wrapper--first-column-only.has-horizontal-scroll table:not([class]) th:first-child,
.specs-table-wrapper--first-column-only.has-horizontal-scroll table:not([class]) td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  box-shadow: 1px 0 0 0 var(--color-border-gray);
  background-color: inherit;
}

.specs-table thead th:first-child,
table:not([class]) thead th:first-child {
  z-index: 4;
  background-color: var(--color-white);
  box-shadow: 1px 0 0 0 var(--color-border-gray), inset 0 -1px 0 0 var(--color-border-gray);
}

.specs-table thead th:last-child,
table:not([class]) thead th:last-child {
  z-index: 4;
  background-color: var(--color-white);
  box-shadow: -1px 0 0 0 var(--color-border-gray), inset 0 -1px 0 0 var(--color-border-gray);
}

.specs-table tbody {
}

.specs-table tbody tr,
table:not([class]) tbody tr {
  background-color: var(--color-white);
  position: relative;
  box-shadow: 0 -1px 0 0 var(--color-border-gray), 0 1px 0 0 var(--color-border-gray);
}

.specs-table tbody tr:nth-child(even),
table:not([class]) tbody tr:nth-child(even) {
  background-color: var(--color-gray-light);
}

.specs-table tbody tr td:first-child,
.specs-table tbody tr td:last-child,
table:not([class]) tbody tr td:first-child,
table:not([class]) tbody tr td:last-child {
  background-color: var(--color-white);
}

.specs-table tbody tr:nth-child(even) td:first-child,
.specs-table tbody tr:nth-child(even) td:last-child,
table:not([class]) tbody tr:nth-child(even) td:first-child,
table:not([class]) tbody tr:nth-child(even) td:last-child {
  background-color: var(--color-gray-light);
}

.specs-table-wrapper--first-column-only table:not([class]) tbody tr td:last-child {
  background-color: inherit;
}

.specs-table th:first-child,
.specs-table td:first-child,
table:not([class]) th:first-child,
table:not([class]) td:first-child {
  box-shadow: 1px 0 0 0 var(--color-border-gray), inset 0 -1px 0 0 var(--color-border-gray);
}

.specs-table th:last-child,
.specs-table td:last-child,
table:not([class]) th:last-child,
table:not([class]) td:last-child {
  box-shadow: -1px 0 0 0 var(--color-border-gray), inset 0 -1px 0 0 var(--color-border-gray);
}

.specs-table-wrapper--first-column-only table:not([class]) th:last-child,
.specs-table-wrapper--first-column-only table:not([class]) td:last-child {
  box-shadow: none;
}

.specs-table tbody tr:hover,
table:not([class]) tbody tr:hover {
  box-shadow: 0 -1px 0 0 var(--color-red), 0 1px 0 0 var(--color-red);
}

.specs-table tbody tr:hover + tr,
table:not([class]) tbody tr:hover + tr {
  box-shadow: 0 -1px 0 0 var(--color-red), 0 1px 0 0 var(--color-border-gray);
}

.specs-table tbody tr:not(.specs-table-hidden):has(+ .specs-table-hidden):hover,
table:not([class]) tbody tr:not(.specs-table-hidden):has(+ .specs-table-hidden):hover {
  box-shadow: 0 -1px 0 0 var(--color-red), 0 1px 0 0 var(--color-red);
}

.specs-table tbody tr:last-child:not(.specs-table-hidden):hover,
table:not([class]) tbody tr:last-child:not(.specs-table-hidden):hover {
  box-shadow: 0 -1px 0 0 var(--color-red), 0 1px 0 0 var(--color-red);
}

.specs-table:not(.specs-table--plain) tbody tr:hover:not(.specs-table-hidden) {
  box-shadow: none;
}

.specs-table:not(.specs-table--plain) tbody tr:hover + tr {
  box-shadow: 0 -1px 0 0 var(--color-border-gray), 0 1px 0 0 var(--color-border-gray);
}

.specs-table:not(.specs-table--plain) tbody tr:hover td:not(:first-child):not(:last-child) {
  position: relative;
}

.specs-table:not(.specs-table--plain) tbody tr:hover td::before,
.specs-table:not(.specs-table--plain) tbody tr:hover td::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--color-red);
  pointer-events: none;
  z-index: 5;
}

.specs-table:not(.specs-table--plain) tbody tr:hover td::before {
  top: 0;
}

.specs-table:not(.specs-table--plain) tbody tr:hover td::after {
  bottom: 0;
}

.specs-table td,
table:not([class]) td {
  color: var(--color-black);
  font-size: var(--font-size-14);
  font-weight: 400;
  padding: var(--spacing-20);
  vertical-align: middle;
  border-bottom: none;
}

.container-content--specs {
  padding-left: var(--spacing-20);
  padding-right: var(--spacing-20);
}

.specs-table {
  table-layout: fixed;
}

.specs-table th:first-child,
.specs-table td:first-child {
  width: 190px;
}

.specs-table th:nth-child(2),
.specs-table td:nth-child(2) {
  width: 160px;
}

.specs-table th:last-child,
.specs-table td:last-child {
  width: 110px;
  text-align: center;
}

.specs-table th:last-child .specs-table-header {
  align-items: center;
}

.specs-table td:last-child .specs-table-cart-btn {
  margin-left: auto;
  margin-right: auto;
}

.specs-table th:nth-child(n+3):not(:last-child),
.specs-table td:nth-child(n+3):not(:last-child) {
  width: 140px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.specs-table-wrapper--compact-rows .specs-table th,
.specs-table-wrapper--compact-rows table:not([class]) th {
  padding: var(--spacing-8);
}

.specs-table-wrapper--compact-rows .specs-table td,
.specs-table-wrapper--compact-rows table:not([class]) td {
  padding: var(--spacing-8);
}

.specs-table-model {
  display: flex;
  align-items: center;
  gap: var(--spacing-16);
  min-width: 11rem;
}

.specs-table-model-thumb {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  object-fit: cover;
  display: block;
}

.specs-table-model-thumb.specs-table-model-thumb--ratio-5-3 {
  width: auto;
  aspect-ratio: var(--aspect-ratio-5-3);
  flex: 0 0 auto;
}

.specs-table-wrapper--square-thumbs .specs-table-model-thumb {
  aspect-ratio: var(--aspect-ratio-4-4);
}

.specs-table-model-link {
  color: var(--color-black);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.specs-table-model-link:hover {
  color: var(--color-red);
}

.specs-table-doc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.specs-table-doc-link img {
  width: 2rem;
  height: auto;
  display: block;
}

.specs-table-hidden {
  display: none;
}

.specs-table-more {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-24);
}

.specs-table-toggle {
  color: var(--color-red);
}

.specs-table-cart-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: 1px solid var(--color-red);
  border-radius: 0;
  color: var(--color-red);
  cursor: pointer;
  transition: all 0.3s;
}

.specs-table-cart-btn:hover {
  background-color: var(--color-red);
  color: var(--color-white);
}

.specs-table-cart-btn svg {
  width: 20px;
  height: 20px;
}

.specs-table-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  height: 100%;
  min-height: 100%;
}

.specs-table-header-label {
  display: block;
  min-height: 2rem;
  line-height: 1.25;
}

.specs-table-header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.specs-table-filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  min-height: 1.125rem;
  padding: 0;
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: rgb(51, 51, 51);
  transition: color 0.3s;
}

.specs-table-filter-icon,
.specs-table-sort-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  color: rgb(51, 51, 51);
}

.specs-table-sort-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: none;
  color: rgb(51, 51, 51);
  cursor: pointer;
  transition: color 0.3s;
}

.specs-table-sort-btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.specs-table-sort-btn-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.specs-table-sort-btn .specs-table-sort-desc {
  display: none;
}

.specs-table-sort-btn[data-sort-direction='desc'] .specs-table-sort-asc {
  display: none;
}

.specs-table-sort-btn[data-sort-direction='desc'] .specs-table-sort-desc {
  display: block;
}

.specs-table-filter-btn svg,
.specs-table-filter-icon svg,
.specs-table-sort-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.specs-table-filter-btn:hover,
.specs-table-sort-btn:hover {
  color: var(--color-red);
}

.phototubes-page .specs-table thead th,
.phototubes-page .specs-table-header-label,
.phototubes-page .specs-table-filter-btn:not(:hover),
.phototubes-page .specs-table-filter-icon,
.phototubes-page .specs-table-sort-btn:not(:hover),
.phototubes-page .specs-table-sort-icon {
  color: #707070;
}

.specs-table-filter-btn,
.specs-table-filter-icon {
  order: -1;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
}

.specs-table-filter-btn svg,
.specs-table-filter-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 1024px) {
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) .specs-table th:first-child,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) .specs-table td:first-child,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) table:not([class]) th:first-child,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) table:not([class]) td:first-child {
    min-width: calc(2.5rem + (var(--spacing-12) * 2));
    padding-left: var(--spacing-12);
    padding-right: var(--spacing-12);
    max-width: 11rem;
    box-sizing: border-box;
  }

  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) .specs-table td:first-child .specs-table-model,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) table:not([class]) td:first-child .specs-table-model {
    min-width: 11rem;
    gap: var(--spacing-12);
  }

  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) .specs-table th:first-child::after,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) .specs-table td:first-child::after,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) table:not([class]) th:first-child::after,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) table:not([class]) td:first-child::after {
    content: "";
    position: absolute;
    top: 0;
    right: -18px;
    width: 18px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.06) 0%,
      rgba(0, 0, 0, 0.03) 35%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) .specs-table th:last-child,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) .specs-table td:last-child,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) table:not([class]) th:last-child,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) table:not([class]) td:last-child {
    min-width: calc(2.5rem + (var(--spacing-12) * 2));
    padding-left: var(--spacing-12);
    padding-right: var(--spacing-12);
    box-sizing: border-box;
    text-align: center;
  }

  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) .specs-table th:last-child::before,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) .specs-table td:last-child::before,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) table:not([class]) th:last-child::before,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) table:not([class]) td:last-child::before {
    content: "";
    position: absolute;
    top: 0;
    left: -18px;
    width: 18px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.03) 65%,
      rgba(0, 0, 0, 0.06) 100%
    );
  }

  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) .specs-table th:last-child .specs-table-header,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) table:not([class]) th:last-child .specs-table-header {
    align-items: center;
  }

  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) .specs-table tbody tr:hover td:first-child::after,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) table:not([class]) tbody tr:hover td:first-child::after {
    content: "";
    top: 0;
    bottom: auto;
    left: auto;
    right: -18px;
    width: 18px;
    height: 100%;
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.06) 0%,
      rgba(0, 0, 0, 0.03) 35%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) .specs-table tbody tr:hover td:first-child,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) table:not([class]) tbody tr:hover td:first-child {
    box-shadow: 1px 0 0 0 var(--color-border-gray), inset 0 1px 0 0 var(--color-red), inset 0 -1px 0 0 var(--color-red);
  }

  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) .specs-table tbody tr:hover td:last-child::before,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) table:not([class]) tbody tr:hover td:last-child::before {
    content: "";
    top: 0;
    bottom: auto;
    left: -18px;
    right: auto;
    width: 18px;
    height: 100%;
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.03) 65%,
      rgba(0, 0, 0, 0.06) 100%
    );
  }

  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) .specs-table tbody tr:hover td:last-child,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) table:not([class]) tbody tr:hover td:last-child {
    box-shadow: -1px 0 0 0 var(--color-border-gray), inset 0 1px 0 0 var(--color-red), inset 0 -1px 0 0 var(--color-red);
  }

  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) .specs-table td:last-child .specs-table-cart-btn,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) table:not([class]) td:last-child .specs-table-cart-btn {
    margin-left: auto;
    margin-right: auto;
  }

  .specs-table-wrapper--compact-rows.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) .specs-table th:first-child,
  .specs-table-wrapper--compact-rows.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) .specs-table td:first-child,
  .specs-table-wrapper--compact-rows.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) table:not([class]) th:first-child,
  .specs-table-wrapper--compact-rows.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) table:not([class]) td:first-child,
  .specs-table-wrapper--compact-rows.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) .specs-table th:last-child,
  .specs-table-wrapper--compact-rows.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) .specs-table td:last-child,
  .specs-table-wrapper--compact-rows.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) table:not([class]) th:last-child,
  .specs-table-wrapper--compact-rows.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) table:not([class]) td:last-child {
    padding-left: var(--spacing-8);
    padding-right: var(--spacing-8);
  }
}

@media (min-width: 1920px) {
  .specs-table th,
  .specs-table td,
  table:not([class]) th,
  table:not([class]) td {
    padding-left: var(--spacing-24);
    padding-right: var(--spacing-24);
  }

  .specs-table-model {
    min-width: 16rem;
    gap: var(--spacing-20);
  }

  .specs-table-model-thumb {
    width: 5rem;
    height: 5rem;
    flex-basis: 5rem;
  }

  .specs-table-doc-link img {
    width: 2.25rem;
  }

  .specs-table-cart-btn {
    width: 3rem;
    height: 3rem;
  }

  .specs-table-cart-btn svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain)
    .specs-table
    th:first-child,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain)
    .specs-table
    td:first-child,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain)
    table:not([class])
    th:first-child,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain)
    table:not([class])
    td:first-child {
    min-width: 15rem;
    max-width: 15rem;
    padding-left: var(--spacing-16);
    padding-right: var(--spacing-16);
  }

  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain)
    .specs-table
    td:first-child
    .specs-table-model,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain)
    table:not([class])
    td:first-child
    .specs-table-model {
    min-width: 15rem;
  }

  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain)
    .specs-table
    th:last-child,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain)
    .specs-table
    td:last-child,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain)
    table:not([class])
    th:last-child,
  .specs-table-wrapper.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain)
    table:not([class])
    td:last-child {
    min-width: calc(3rem + (var(--spacing-16) * 2));
    padding-left: var(--spacing-16);
    padding-right: var(--spacing-16);
  }

  .specs-table-wrapper--compact-rows.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) .specs-table th:first-child,
  .specs-table-wrapper--compact-rows.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) .specs-table td:first-child,
  .specs-table-wrapper--compact-rows.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) table:not([class]) th:first-child,
  .specs-table-wrapper--compact-rows.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) table:not([class]) td:first-child,
  .specs-table-wrapper--compact-rows.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) .specs-table th:last-child,
  .specs-table-wrapper--compact-rows.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) .specs-table td:last-child,
  .specs-table-wrapper--compact-rows.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) table:not([class]) th:last-child,
  .specs-table-wrapper--compact-rows.has-horizontal-scroll:not(.specs-table-wrapper--first-column-only):not(.specs-table-wrapper--plain) table:not([class]) td:last-child {
    padding-left: var(--spacing-8);
    padding-right: var(--spacing-8);
  }
}

@media (max-width: 1023px) {
  .specs-table-scroll-controls {
    display: none;
  }

  .specs-table-scroll-controls {
    right: var(--spacing-8);
    top: var(--specs-scroll-controls-top, 50%);
    bottom: auto;
    gap: var(--spacing-8);
    transform: translateY(var(--specs-scroll-controls-shift, -50%));
  }

  .specs-table-scroll-shell--with-cart-column .specs-table-scroll-controls {
    right: var(--spacing-8);
  }

  .specs-table-scroll-btn {
    width: 1.75rem;
    height: 3.75rem;
  }

  .specs-table-scroll-btn svg {
    width: 1.75rem;
    height: 1.75rem;
  }

  .product-specifications,
  .specs-table-toolbar-wrap {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .specs-table-wrapper {
    width: calc(100% + (var(--spacing-20) * 2));
    max-width: none;
    min-width: 0;
    margin-left: calc(var(--spacing-20) * -1);
    margin-right: calc(var(--spacing-20) * -1);
    border-left: none;
    border-right: none;
  }

  .specs-table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .specs-table-toolbar-actions {
    justify-content: flex-start;
  }

  .specs-table-settings-btn {
    width: fit-content;
  }

  .specs-table-settings-grid {
    grid-template-columns: 1fr;
    row-gap: var(--spacing-14);
  }

  .specs-table-settings-panel {
    position: static;
    width: 100%;
    margin-top: var(--spacing-12);
    box-shadow: none;
  }

  .specs-table-settings-panel-header {
    align-items: stretch;
  }

  .specs-table-settings-panel-header-main {
    align-items: center;
  }

  .specs-table-settings-panel-actions {
    gap: var(--spacing-12);
  }

  .filter-menu {
    width: min(100%, 20rem);
  }

  .specs-table,
  table:not([class]) {
    width: max-content;
    min-width: 100%;
  }

  .specs-table thead tr,
  table:not([class]) thead tr,
  .specs-table tbody tr,
  table:not([class]) tbody tr {
    box-shadow: none;
  }

  .specs-table th,
  .specs-table td,
  table:not([class]) th,
  table:not([class]) td {
    border-bottom: 1px solid var(--color-border-gray);
  }

  .specs-table th:first-child,
  .specs-table td:first-child,
  table:not([class]) th:first-child,
  table:not([class]) td:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    box-shadow: 1px 0 0 0 var(--color-border-gray);
    width: auto;
    min-width: 0;
    max-width: calc(100vw / 3);
    box-sizing: border-box;
    padding-left: var(--spacing-20);
    padding-right: var(--spacing-20);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .specs-table th:first-child::after,
  .specs-table td:first-child::after,
  table:not([class]) th:first-child::after,
  table:not([class]) td:first-child::after {
    content: "";
    position: absolute;
    top: 0;
    right: -18px;
    width: 18px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.14) 0%,
      rgba(0, 0, 0, 0.08) 35%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  .specs-table tbody tr td:first-child,
  table:not([class]) tbody tr td:first-child {
    background-color: var(--color-white);
  }

  .specs-table tbody tr:nth-child(even) td:first-child,
  table:not([class]) tbody tr:nth-child(even) td:first-child {
    background-color: var(--color-gray-light);
  }

  .specs-table:not(.specs-table--plain) tbody tr:hover td:first-child::after,
  table:not([class]) tbody tr:hover td:first-child::after {
    left: auto;
    right: -18px;
    width: 18px;
    height: 100%;
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.14) 0%,
      rgba(0, 0, 0, 0.08) 35%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  .specs-table thead th:first-child,
  table:not([class]) thead th:first-child {
    background-color: var(--color-white);
  }

  .specs-table td:first-child .specs-table-model,
  table:not([class]) td:first-child .specs-table-model {
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-8);
  }

  .specs-table th:last-child,
  .specs-table td:last-child,
  table:not([class]) th:last-child,
  table:not([class]) td:last-child {
    position: static;
    right: auto;
    z-index: auto;
    box-shadow: none;
    padding-left: var(--spacing-6);
    padding-right: var(--spacing-6);
    text-align: center;
  }

  .specs-table td:last-child .specs-table-cart-btn,
  table:not([class]) td:last-child .specs-table-cart-btn {
    margin-left: auto;
    margin-right: auto;
  }

  .specs-table th:first-child,
  .specs-table td:first-child,
  table:not([class]) th:first-child,
  table:not([class]) td:first-child {
    padding-left: var(--spacing-6);
    padding-right: var(--spacing-6);
  }

  .specs-table td:last-child .specs-table-cart-btn,
  table:not([class]) td:last-child .specs-table-cart-btn {
    margin-left: auto;
  }

  .specs-table-wrapper--first-column-only table:not([class]) th:first-child,
  .specs-table-wrapper--first-column-only table:not([class]) td:first-child {
    position: static;
    left: auto;
    z-index: auto;
    box-shadow: none;
    background-color: inherit;
    width: auto;
    max-width: none;
  }

  .specs-table-wrapper--first-column-only table:not([class]) th:last-child,
  .specs-table-wrapper--first-column-only table:not([class]) td:last-child {
    position: static;
    right: auto;
    z-index: auto;
    box-shadow: none;
    text-align: left;
    padding-left: var(--spacing-20);
    padding-right: var(--spacing-20);
  }

  .specs-table-wrapper--first-column-only table:not([class]) {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
  }

  .specs-table--plain th:first-child,
  .specs-table--plain td:first-child,
  .specs-table--plain th:last-child,
  .specs-table--plain td:last-child {
    position: static;
    left: auto;
    right: auto;
    z-index: auto;
    box-shadow: none;
    text-align: left;
    padding-left: var(--spacing-20);
    padding-right: var(--spacing-20);
  }

  .specs-table--plain td:last-child .specs-table-cart-btn {
    margin-left: 0;
  }

  .specs-table-wrapper--plain table:not([class]) th:first-child,
  .specs-table-wrapper--plain table:not([class]) td:first-child,
  .specs-table-wrapper--plain table:not([class]) th:last-child,
  .specs-table-wrapper--plain table:not([class]) td:last-child {
    position: static;
    left: auto;
    right: auto;
    z-index: auto;
    box-shadow: none;
    text-align: left;
    padding-left: var(--spacing-20);
    padding-right: var(--spacing-20);
  }

  .specs-table-wrapper--plain table:not([class]) td:last-child .specs-table-cart-btn {
    margin-left: 0;
  }

  .specs-table th,
  table:not([class]) th {
    min-width: 8.75rem;
  }
}
