.byauto {
  margin-top: 0;
  scroll-margin-top: 112px;
}
.byauto-anchors {
  width: 100%;
}
.byauto-anchors-list {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
  height: 182px;
  max-width: 1456px;
  margin: 0 auto 24px;
  padding: 14px 14px;
  list-style-type: none;
}
.byauto-anchors a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 0 0 0 14px;
  background-color: #fff;
  white-space: nowrap;
  color: #444;
}
.anchor-counter {
  display: flex;
  align-items: center;
  height: 42px;
  margin-right: -1px;
  padding: 0 14px;
  border-radius: 16px;
  color: #000;
  font-size: 15px;
  transition: all 0.2s ease-in-out;
}
.byauto-anchors a:hover {
  color: #fff;
  background-color: var(--main-active-red-color);
  border-color: var(--main-active-red-color);
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  transition: all 0.2s ease-in-out;
}
.byauto-anchors a:hover .anchor-counter {
  color: #fff;
  border-color: var(--main-active-red-color);
}

/* auto-gallery ------------------------------------------------------ */

.auto-gallery-title,
.auto-attr-title {
  padding: 0 14px;
  scroll-margin-top: 112px;
}
.auto-gallery {
  display: grid;
  grid-template-columns: 1fr;
  margin: 32px 0;
  padding: 0 14px;
}
.displayed-img {
  width: 100%;
  object-fit: contain;
}
.auto-images-thumb-list {
  order: 1;
  display: flex;
  width: 100%;
  height: 64px;
  list-style-type: none;
  overflow-x: auto;
}
.auto-images-thumb-list li {
  position: relative;
  flex: 0 0 16vw;
  height: auto;
  overflow: hidden;
  cursor: pointer;
}
.auto-images-thumb-list li:hover:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border: 4px solid var(--main-active-red-color);
  pointer-events: none;
}
.auto-images-thumb-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.auto-gallery-nav {
  width: 100%;
}

/* full screen */
.auto-gallery.full-screen {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  height: 100%;
  padding: 0;
  background: #333;
}

.full-screen .auto-images-thumb-list {
  order: 1;
  display: flex;
  height: 164px;
  margin-top: auto;
}
.full-screen .auto-images-full {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 164px);
  background-color: #444;
}
.gallery-close-btn {
  display: none;
}
.full-screen .gallery-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  display: block;
}
/* auto-attr ----------------------------------------------------------------------- */

.auto-attr {
  position: relative;
  height: 310px;
  overflow: hidden;
  margin: 24px 0;
  padding: 0 14px;
}
.auto-attr::after {
  content: "";
  position: absolute;
  height: 24px;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0.0001));
}
.auto-attr.active::after {
  background: transparent;
}
.attr-group {
  display: inline-block;
  break-inside: avoid;
  width: 100%;
  margin-bottom: 24px;
}
.attr-table {
  width: 100%;
  border-collapse: collapse;
}
.attr-table td {
  padding: 4px 0;
  border-bottom: 1px solid #ddd;
  text-align: right;
}
.attr-table td:first-child {
  padding-right: 14px;
  text-align: left;
}
.show-attr,
.show-modif {
  display: block;
  width: 128px;
  margin: -16px auto 24px;
  background-color: #fff;
  border: none;
  appearance: none;
  color: #0857a6;
  cursor: pointer;
}
.show-modif {
  margin: 0 auto 24px;
}
/* auto-modifications ----------------------------------------------------------------------- */

.auto-modifications {
  margin: 0 0 32px;
  padding: 0 14px;
}
.auto-modifications-list {
  display: flex;
  flex-direction: column;
  list-style-type: none;
}
.auto-modifications-list li {
  margin: 0 24px 16px 0;
}

/* tabs ---------------------------------------------------------------------------------------- */

.tabs-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: auto;
  gap: 14px;
  padding: 14px 14px 28px;
  background-color: #eee;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  font-size: 16px;
  line-height: 1;
}
.tabs-nav li {
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: pointer;
  white-space: nowrap;
}
.tabs-nav li:first-child {
  grid-column-start: 1;
  grid-column-end: 3;
}
.tabs-nav span {
  border-bottom: 1px dashed #ccc;
  pointer-events: none;
}
.tabs-nav .active {
  color: var(--main-active-red-color);
  cursor: default;
}
.tabs-nav .active span {
  border-bottom: 1px dashed #952525;
}
.tabs-container > section {
  padding: 14px;
}
.byauto .tabs-container section:first-child .product_card_list::before {
  height: 0;
  border-top: none;
}
.tabs-container .showcase h2 {
  padding: 8px 0;
}
.tabs-container h2.showcase_title_top {
  padding-bottom: 22px;
}
.tabs-container .showcase_nav_list {
  padding: 0 14px 14px;
}
/* ******************************************************************** */
/* @media ************************************************************* */
/* ******************************************************************** */

@media screen and (min-width: 440px) {
  .byauto .tabs-container .product-card-list {
    grid-template-columns: 1fr 1fr;
  }
}
@media screen and (min-width: 768px) {
  .tabs-container > section {
    padding: 24px;
  }
  .tabs-nav {
    grid-template-columns: repeat(3, 1fr);
  }
  .tabs-nav li:first-child {
    grid-column-start: 1;
    grid-column-end: 4;
  }
  .tabs-container h2.showcase_title_top {
    padding-bottom: 0;
  }
  .byauto-anchors-list {
    padding: 0 24px;
  }
  .auto-gallery-title,
  .auto-attr-title,
  .auto-gallery,
  .auto-attr,
  .auto-modifications {
    padding: 0 24px;
  }
  .auto-modifications-list {
    display: block;
    column-count: 2;
  }
  .auto-modifications-list li {
    break-inside: avoid-column;
    display: inline-grid;
    page-break-inside: avoid;
    margin: 0 0 24px 0;
  }
  @supports (break-inside: avoid-column) {
    .auto-modifications-list li {
      display: block;
    }
  }
  .auto-modifications-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 0 14px;
    background-color: #fff;
    white-space: nowrap;
    color: #444;
  }
  .auto-attr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media screen and (min-width: 1024px) {
  .byauto-anchors {
    width: 100%;
    background: #fff;
  }
  .byauto-anchors-list {
    height: 42px;
    gap: 24px;
    margin: 0 auto 44px;
  }
  .tabs-nav {
    grid-template-columns: repeat(7, 1fr);
    height: 42px;
    padding: 0;
  }
  .tabs-nav li:first-child {
    grid-column-start: 1;
    grid-column-end: 2;
  }
  .attr-group {
    margin-bottom: 24px;
  }
}

@media screen and (min-width: 1152px) {
  .auto-gallery {
    grid-template-columns: 1fr 834px;
  }
  .auto-images-thumb-list {
    order: initial;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
    height: 498px;
  }
  .auto-images-thumb-list li {
    overflow: visible;
  }
  .displayed-img {
    max-width: 930px;
    max-height: 556px;
  }

  .auto-attr {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 44px;
  }
  .auto-modifications-list {
    column-count: 3;
  }
}

@media screen and (min-width: 1280px) {
  .auto-images-thumb-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media screen and (min-width: 1456px) {
  .byauto {
    padding: 0 24px;
  }
  .auto-gallery {
    grid-template-columns: 1fr 930px;
    padding: 0 calc((100% - 1456px + 24px) / 2);
  }
  .auto-images-thumb-list {
    grid-template-columns: 1fr 1fr 1fr;
    height: 556px;
  }
  .auto-gallery-title,
  .auto-attr-title,
  .auto-attr,
  .auto-modifications {
    padding: 0 calc((100% - 1456px + 24px) / 2);
  }

  .attr-group {
    margin-bottom: 24px;
  }
  .auto-modifications-list {
    column-count: 4;
  }
}
