/* ==========================================================
   Datasheet Accordion — full stylesheet
   Enqueue via functions.php on product pages only.
   ========================================================== */

.index{
  border: 1px solid #DCE1E6;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  font-family: inherit;
	    border-top: 0 !important;
}

.section{
  border-bottom: 1px solid #DCE1E6;
}
.section:last-child{
  border-bottom: none;
}

/* --- Header row (always visible, click target) --- */
.section-header{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
}
.section-header:hover{
  background: #FBFBFC;
}

.tag{
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 11px;
  color: #8B99A3;
  border: 1px solid #DCE1E6;
  border-radius: 3px;
  padding: 2px 6px;
  min-width: 34px;
  text-align: center;
  flex-shrink: 0;
}

.section-title{
  font-weight: 600;
  font-size: 16px;
  flex: 1;
  color: #14213D;
}

.count{
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 11px;
  color: #5C6B73;
}

.chev{
  width: 9px;
  height: 9px;
  border-right: 2px solid #5C6B73;
  border-bottom: 2px solid #5C6B73;
  transform: rotate(-45deg);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
.section.open .chev{
  transform: rotate(45deg);
}

/* --- Smooth expand/collapse via grid-template-rows --- */
.section-body{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background: #FCFCFD;
}
.section.open .section-body{
  grid-template-rows: 1fr;
}

.section-body-inner{
  overflow: hidden;
  padding: 0 22px;
  transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 0;
}
.section.open .section-body-inner{
  padding: 4px 22px 18px;
}

/* --- File block links inside each section --- */
.section-body .wp-block-file{
  margin: 10px 0;
}
.section-body .wp-block-file a{
  color: #E8590C;
  text-decoration: none;
  font-weight: 500;
}
.section-body .wp-block-file a:hover{
  text-decoration: underline;
}

/* Hide the default WP "Download" button element some themes render,
   keep it if you'd rather show a button instead of a plain link */
.section-body .wp-block-file__button{
  display: none;
}