.section-product-details-tabs {
  color: rgba(var(--color-text));
  background-color: rgba(var(--color-background));
}
.product-details-tabs {
  --tab-transition-duration: 300ms;
  --tab-column-gap: 20px;
  --tab-row-gap: 12px;
  --tab-radius: 8px;
  display: block;
  width: 100%;
}
.product-details-tabs .tab-switcher__nav--inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--tab-column-gap);
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.product-details-tabs .tab-switcher__nav::-webkit-scrollbar { display: none; }
.product-details-tabs .tab-switcher__nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  cursor: pointer;
  transition: all var(--tab-transition-duration) ease;
  position: relative;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}
.product-details-tabs .tab-switcher__nav-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.product-details-tabs .tab-switcher__nav-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: rgb(var(--color-text));
  transition: width var(--tab-transition-duration) ease;
  z-index: 1;
}
.product-details-tabs .tab-switcher__nav-item:hover {
  background: var(--tab-nav-bg-active);
  color: rgb(var(--color-text));
}
.product-details-tabs .tab-switcher__nav-item.active {
  background: var(--tab-nav-bg-active);
  color: rgb(var(--color-text));
}
.product-details-tabs .tab-switcher__nav-item.active .tab-switcher__nav-content::after {
  width: 100%;
}
.product-details-tabs .tab-switcher__content {
  margin-top: 16px;
  width: 100%;
}
.product-details-tabs .tab-switcher__panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--tab-transition-duration) ease;
}
.product-details-tabs .tab-switcher__panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.product-details-tabs .tab-switcher__nav-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.product-details-tabs .tab-switcher__nav-text {
  display: -webkit-box;
  flex-shrink: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.product-details-tabs .tab-switcher__panel-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-block-start: 24px;
}
.product-details-tabs .tab-switcher__nav-item:not(.active) .tab-switcher__nav-text {
  opacity: 0.75;
}
.product-details-tabs .tab-switcher__nav-item:focus {
  outline: 2px solid rgb(var(--color-text));
  outline-offset: 2px;
}
.product-details-tabs .tab-switcher__nav-item:focus:not(:focus-visible) {
  outline: none;
}
.product-details-tabs .tab-switcher__nav-item[aria-selected="true"] {
  color: rgb(var(--color-text));
}
@keyframes fadeInUpTabs {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.product-details-tabs .tab-switcher__panel.active .tab-switcher__panel-inner {
  animation: fadeInUpTabs var(--tab-transition-duration) ease;
}
.product-details-tabs.tabs--underline {
  --tabs-underline-thickness: 1px; 
}
.product-details-tabs.tabs--underline .tab-switcher__nav {
  position: relative;
}
.product-details-tabs.tabs--underline .tab-switcher__nav::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgb(var(--color-entry-line));
  z-index: 1;
}
.product-details-tabs.tabs--underline .tab-switcher__nav-content::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: rgb(var(--color-text));
  transition: width var(--tab-transition-duration) ease;
  z-index: 2;
}
.product-details-tabs.tabs--underline .tab-switcher__nav-item.active .tab-switcher__nav-content::after {
  width: 100%;
}
