
/* Horizontal Tabs Block */
.horizontal-tabs-block {
  padding-top: 0; /* No top border */
}

/* Tabs Header (baseline separator) */
.horizontal-tabs-block .tabs-header {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid #D0D5DA;
}

/* Stronger specificity to beat theme button styles */
.horizontal-tabs-block .tabs-header > button {
  /* Reset and consistency across editor/frontend */
  box-sizing: border-box;
  appearance: none;
  background: none;
  border: 0;
  margin: 0;

  position: relative;              /* for ::after underline */
  display: inline-flex;
  align-items: center;

  /* ✅ Bigger gap between text and underline */
  padding: 0.75rem 1rem 1rem;      /* bottom padding controls the gap */

  /* Reset line-height to avoid compact text affecting underline position */
  line-height: 1.25;               /* or 1.2–1.4 per your type scale */

  /* Colors & weight */
  
  font-weight: 600;
	font-size: 16px;
  cursor: pointer;

  /* Kill any theme link underline */
  text-decoration: none !important;
}

/* If any theme wraps button with <a>, ensure no underline */
.horizontal-tabs-block .tabs-header > button a {
  text-decoration: none !important;
  color: inherit;
}
.horizontal-tabs-block .tabs-header > button { padding-bottom: 1.25rem !important; }

/* Pseudo underline bar — hidden by default */
.horizontal-tabs-block .tabs-header > button::after {
  opacity: 0;
  background-color: #C63A1E;
  position: absolute;

  /* Sits at the bottom of the button box, just above header's border */
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;

  content: '';
  transition: opacity 140ms ease-in-out;
}

/* Active tab */
.horizontal-tabs-block .tabs-header > button.active {
  color: #1A1A1A;
  color: var(--wp--preset--color--custom-link-hover);
  font-weight: 600;
  text-decoration: none !important;
}
.horizontal-tabs-block .tabs-header > button.active::after {
  opacity: 1;
}

/* Hover preview (optional) without text underline */
.horizontal-tabs-block .tabs-header > button:hover {
  color: #1A1A1A;
	color: var(--wp--preset--color--custom-link-hover);
  text-decoration: none !important;
}
.horizontal-tabs-block .tabs-header > button:hover::after {
  opacity: 0.5;
}

/* Keyboard focus */
.horizontal-tabs-block .tabs-header > button:focus-visible {
  outline: 2px solid #0EA5E9;
  outline-offset: 2px;
  text-decoration: none !important;
}

/* Panels */
.horizontal-tabs-block .tabs-content .tab-panel {
  display: none;
  padding: 1rem 0;
}
.horizontal-tabs-block .tabs-content .tab-panel.active {
  display: block;
}
