.pceditor-tabs {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}
.pceditor-tabs .g-button.pceditor-tabs__item {
  color: var(--g-color-text-hint);
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  font-size: var(--g-text-code-inline-1-font-size);
  line-height: var(--g-text-code-inline-2-line-height);
  align-items: center;
}
.pceditor-tabs .g-button.pceditor-tabs__item_active {
  pointer-events: none;
  color: var(--g-color-text-primary);
}
.pceditor-tabs__tabs-wrapper {
  width: 100%;
  border-bottom: 1px solid var(--g-color-line-generic);
  display: inline-flex;
  flex-direction: row;
  padding: 12px 4px;
  flex: 0 0 auto;
  box-sizing: border-box;
  overflow-x: auto;
  position: sticky;
  top: 0;
  background-color: var(--g-color-base-background);
  /* This ensures the background is visible when sticky */
  z-index: 2;
  /* Higher z-index for parent tabs-wrapper */
}
.pceditor-tabs {
  /* Make sure any nested tabs component also has proper overflow behavior */
}
.pceditor-tabs .pceditor-tabs {
  overflow: visible;
  /* Ensure nested tabs-wrapper elements are also sticky but positioned below parent tabs-wrapper */
  /* This selector specifically targets tabs-wrapper elements inside a nested tabs component */
}
.pceditor-tabs .pceditor-tabs .pceditor-tabs__tabs-wrapper {
  position: sticky;
  /* Position below parent tabs-wrapper */
  z-index: 1;
  background-color: var(--g-color-base-background);
}
.pceditor-tabs__body {
  flex: 1;
  min-height: 1px;
  height: 100%;
}
.pceditor-tabs__item {
  scrollbar-width: thin;
  scrollbar-color: var(--g-color-scroll-handle) transparent;
  overflow: auto;
}
.pceditor-tabs__item::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background-color: transparent;
}
.pceditor-tabs__item::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 4px;
}
.pceditor-tabs__item::-webkit-scrollbar-thumb {
  background: var(--g-color-scroll-handle);
  border-radius: 4px;
  transition: background-color 0.2s;
  opacity: 0;
}
.pceditor-tabs__item::-webkit-scrollbar-thumb:hover {
  background: var(--g-color-scroll-handle-hover);
  opacity: 1;
}
.pceditor-tabs__item::-webkit-scrollbar-thumb:active {
  background: var(--g-color-scroll-handle-hover);
  opacity: 1;
}
.pceditor-tabs__item::-webkit-scrollbar-corner {
  background: transparent;
}
.pceditor-tabs__item:hover::-webkit-scrollbar-thumb {
  opacity: 0.7;
}
.pceditor-tabs__item:not(:hover)::-webkit-scrollbar-thumb {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}
.pceditor-tabs__item {
  overflow-y: auto;
  max-height: 100%;
}
.pceditor-tabs__item_padding {
  padding: 16px 12px;
}