/* ==========================================================================
   PDB NATIVE TABS SECTION
   Location: /wp-content/themes/YOUR-CHILD-THEME/assets/css/pdb-tabs.css

   NOTE: Elementor's "selector" keyword does not work in theme files.
   It is replaced with .pdb-tabs-section -> add the CSS class  pdb-tabs-section
   to the section's main container (Advanced > CSS Classes).

   Colour and font properties removed - set them with Elementor global
   colours / global fonts.
   ========================================================================== */

/* ---------- Section root ---------- */
.pdb-tabs-section {

}

.pdb-tabs-section * {
  box-sizing: border-box;
}

.pdb-tabs-section .elementor-widget {
  max-width: 100%;
  min-width: 0;
  margin-bottom: 0 !important;
}

/* ---------- Heading / intro ---------- */
.pdb-tabs-section .pdb-heading .elementor-heading-title {

}

.pdb-tabs-section .pdb-intro {

}

.pdb-tabs-section p {
  margin: 0;
}

.pdb-tabs-section p + p {
  margin-top: 14px;
}

/* ---------- Tabs wrapper ---------- */
.pdb-tabs-section .pdb-native-tabs {
  min-width: 0;
  --n-tabs-direction: column;
  --n-tabs-heading-direction: row;
  --n-tabs-heading-wrap: nowrap;
  --n-tabs-heading-overflow-x: auto;
  --n-tabs-title-white-space: nowrap;
  --n-tabs-title-flex-shrink: 0;
}

.pdb-tabs-section .e-n-tabs,
.pdb-tabs-section .pdb-native-tabs > .elementor-widget-container {
 

}

/* ---------- Tab heading bar (horizontal scroll) ---------- */
.pdb-tabs-section .e-n-tabs-heading {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 3px 3px 12px !important;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

/* ---------- Tab buttons ---------- */
.pdb-tabs-section .e-n-tab-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  width: auto !important;
  gap: 8px;
  padding: 12px 16px !important;
  min-height: 44px;
  border-width: 1px !important;
  border-style: solid !important;
  border-radius: 12px;
  line-height: 1.25;
  box-shadow: none;
}

.pdb-tabs-section .e-n-tab-title-text {
  white-space: nowrap !important;
}

/* ---------- Tab content / panels ---------- */
.pdb-tabs-section .e-n-tabs-content {
 
}

.pdb-tabs-section .pdb-tab-panel {
  border-width: 2px 1px 1px 1px !important;
  border-style: solid !important;
  border-radius: 16px;
  padding: 28px !important;
  gap: 14px !important;
  min-width: 0;
  margin-top: 6px;
}

.pdb-tabs-section .pdb-panel-heading .elementor-heading-title {
  line-height: 1.35;
}

.pdb-tabs-section .pdb-panel-copy {
  line-height: 1.8;
  overflow-wrap: anywhere;
}

/* ---------- Focus ---------- */
.pdb-tabs-section .e-n-tab-title:focus-visible,
.pdb-tabs-section .elementor-button:focus-visible {
  outline-width: 3px;
  outline-style: solid;
  outline-offset: 2px;
}

/* ---------- CTA button ---------- */
.pdb-tabs-section .pdb-simple-cta .elementor-button {
  padding: 15px 24px;
  border-radius: 12px;
}

/* ---------- Scroll arrow cue (added by JS) ---------- */
.pdb-tabs-section .pdb-scroll-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  line-height: 1;
  pointer-events: none;
}

.pdb-tabs-section .pdb-scroll-behavior {
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
}

/* ==========================================================================
   MOBILE (below 768px)
   ========================================================================== */
@media (max-width: 767px) {
  .pdb-tabs-section {
    padding: 28px 16px !important;
    gap: 16px !important;
  }

  .pdb-tabs-section .pdb-heading .elementor-heading-title {
    letter-spacing: -0.5px;
  }

  .pdb-tabs-section .e-n-tab-title {
    padding: 12px 14px !important;
  }

  .pdb-tabs-section .pdb-tab-panel {
    padding: 20px !important;
  }

  .pdb-tabs-section .pdb-panel-copy {
    line-height: 1.75;
  }
}
