/* Elementor Tabs & Scroll Tools */

.etst-tabs-instance.etst-tabs-ready {
  --etst-tabs-gap: clamp(16px, 2vw, 32px);
  --etst-tabs-button-bg: rgba(255, 255, 255, 0.72);
  --etst-tabs-button-active-bg: #111111;
  --etst-tabs-button-text: #111111;
  --etst-tabs-button-active-text: #ffffff;
  --etst-tabs-border: rgba(17, 17, 17, 0.12);
  display: grid !important;
  gap: var(--etst-tabs-gap) !important;
  align-items: stretch;
}

.etst-tabs-position-left.etst-tabs-ready {
  grid-template-columns: minmax(160px, max-content) minmax(0, 1fr);
}

.etst-tabs-position-right.etst-tabs-ready {
  grid-template-columns: minmax(0, 1fr) minmax(160px, max-content);
}

.etst-tabs-position-top.etst-tabs-ready {
  grid-template-columns: minmax(0, 1fr);
}

.etst-tabs-position-right.etst-tabs-ready > .etst-tabs-nav {
  order: 2;
}

.etst-tabs-position-right.etst-tabs-ready > .etst-tabs-panels,
.etst-tabs-position-right.etst-tabs-ready > .e-con-inner,
.etst-tabs-position-right.etst-tabs-ready > .elementor-container {
  order: 1;
}

.etst-tabs-nav {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
  z-index: 2;
}

.etst-tabs-position-left .etst-tabs-nav,
.etst-tabs-position-right .etst-tabs-nav {
  flex-direction: column;
  align-self: start;
  min-width: 160px;
}

.etst-tabs-position-top .etst-tabs-nav {
  flex-direction: row;
  align-self: start;
}

.etst-tabs-button {
  appearance: none;
  border: 1px solid var(--etst-tabs-border);
  background: var(--etst-tabs-button-bg);
  color: var(--etst-tabs-button-text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  padding: 14px 22px;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease, opacity .22s ease;
  text-align: center;
}

.etst-tabs-button:hover {
  transform: translateY(-1px);
}

.etst-tabs-button.is-active {
  background: var(--etst-tabs-button-active-bg);
  color: var(--etst-tabs-button-active-text);
  border-color: var(--etst-tabs-button-active-bg);
}

.etst-tabs-style-pill .etst-tabs-button {
  border-radius: 999px;
}

.etst-tabs-style-line .etst-tabs-button {
  border-width: 0 0 3px 0;
  border-radius: 0;
  background: transparent;
  padding-inline: 10px;
}

.etst-tabs-style-line .etst-tabs-button.is-active {
  background: transparent;
  color: var(--etst-tabs-button-text);
  border-color: var(--etst-tabs-button-active-bg);
}

.etst-tabs-style-plain .etst-tabs-button {
  border-radius: 10px;
  background: transparent;
}

.etst-tabs-panels {
  min-width: 0;
  width: 100%;
}

.etst-tab-panel {
  width: 100%;
}

.etst-tab-panel[hidden] {
  display: none !important;
}

.etst-tab-panel.is-active[data-etst-animation="fade"] {
  animation: etstFadeIn .28s ease both;
}

.etst-tab-panel.is-active[data-etst-animation="slide"] {
  animation: etstSlideFadeIn .32s ease both;
}

@keyframes etstFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes etstSlideFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Editor preview: show the generated buttons without hiding content. */
body.elementor-editor-active .etst-tabs-nav-editor {
  display: flex !important;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px dashed rgba(17, 17, 17, .25);
  border-radius: 12px;
  background: rgba(255, 255, 255, .6);
}

body.elementor-editor-active .etst-editor-tab-panel {
  position: relative;
  outline: 1px dashed rgba(17, 17, 17, .22);
  outline-offset: -1px;
}

body.elementor-editor-active .etst-editor-tab-panel::before {
  content: attr(data-etst-editor-panel);
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 10;
  font-size: 12px;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(17, 17, 17, .72);
  color: #fff;
  pointer-events: none;
}

/* Horizontal scroll */
.etst-hs-section {
  overflow: hidden !important;
}

.etst-hs-section > .elementor-container,
.etst-hs-section > .e-con-inner,
.etst-hs-section.e-con {
  display: flex !important;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  width: max-content !important;
  max-width: none !important;
  will-change: transform;
}

.etst-hs-section > .elementor-container > .elementor-column,
.etst-hs-section > .e-con-inner > .e-con,
.etst-hs-section.e-con > .e-con,
.etst-hs-section.e-con > .elementor-element {
  flex: 0 0 100vw !important;
  width: 100vw !important;
}

.etst-hs-section[data-etst-hs-full-height="yes"] > .elementor-container > .elementor-column,
.etst-hs-section[data-etst-hs-full-height="yes"] > .e-con-inner > .e-con,
.etst-hs-section[data-etst-hs-full-height="yes"].e-con > .e-con,
.etst-hs-section[data-etst-hs-full-height="yes"].e-con > .elementor-element {
  min-height: 100vh !important;
}

body.elementor-editor-active .etst-hs-section > .elementor-container,
body.elementor-editor-active .etst-hs-section > .e-con-inner,
body.elementor-editor-active .etst-hs-section.e-con {
  width: 100% !important;
  max-width: 100% !important;
  flex-wrap: wrap !important;
  flex-direction: column !important;
  transform: none !important;
}

body.elementor-editor-active .etst-hs-section > .elementor-container > .elementor-column,
body.elementor-editor-active .etst-hs-section > .e-con-inner > .e-con,
body.elementor-editor-active .etst-hs-section.e-con > .e-con,
body.elementor-editor-active .etst-hs-section.e-con > .elementor-element {
  width: 100% !important;
  flex-basis: auto !important;
  min-height: 420px;
  outline: 2px dashed rgba(17, 17, 17, .22);
  outline-offset: -2px;
}

@media (max-width: 767px) {
  .etst-tabs-position-left.etst-tabs-ready,
  .etst-tabs-position-right.etst-tabs-ready {
    grid-template-columns: minmax(0, 1fr);
  }

  .etst-tabs-position-left .etst-tabs-nav,
  .etst-tabs-position-right .etst-tabs-nav {
    flex-direction: row;
    min-width: 0;
  }

  .etst-tabs-button {
    padding: 11px 16px;
  }
}
