/* ==========================================================================
   WP AI Custom Tabs — Frontend CSS v1.0.0
   Theme-inheriting: no forced colors, backgrounds, or borders.
   Everything inherits from the active WooCommerce / WordPress theme.
   ========================================================================== */

/* -----------------------------------------------------------------------
   Base wrapper — transparent, inherits everything
   ----------------------------------------------------------------------- */
.woocommerce div.product .woocommerce-tabs .tab-card,
.wpact-shortcode.tab-card,
.wpact-frontend-tab.tab-card {
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* -----------------------------------------------------------------------
   Typography — inherit from theme, add only spacing
   ----------------------------------------------------------------------- */
.tab-card h3,
.tab-card h4,
.wpact-shortcode h3,
.wpact-shortcode h4 {
  font-family: inherit;
  color: inherit;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}
.tab-card h3:first-child,
.tab-card h4:first-child { margin-top: 0; }

.tab-card p {
  margin-bottom: 0.8em;
  color: inherit;
}
.tab-card p:last-child { margin-bottom: 0; }

/* -----------------------------------------------------------------------
   Lists — theme-native
   ----------------------------------------------------------------------- */
.tab-card ul,
.tab-card ol {
  margin-left: 1.4em;
  margin-bottom: 0.8em;
  padding: 0;
}
.tab-card li { margin-bottom: 0.3em; }

/* -----------------------------------------------------------------------
   Tables — light structural styling only
   ----------------------------------------------------------------------- */
.tab-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: inherit;
}
.tab-card table th,
.tab-card table td {
  border: 1px solid rgba(128, 128, 128, 0.2);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.tab-card table th {
  font-weight: 600;
  background: rgba(128, 128, 128, 0.06);
}
.tab-card table tr:nth-child(even) td {
  background: rgba(128, 128, 128, 0.03);
}

/* -----------------------------------------------------------------------
   Definition list variant
   ----------------------------------------------------------------------- */
.tab-card--dl dl { margin: 0; }
.tab-card--dl dt {
  font-weight: 600;
  margin-top: 0.8em;
  margin-bottom: 0.15em;
}
.tab-card--dl dt:first-child { margin-top: 0; }
.tab-card--dl dd {
  margin-left: 0;
  margin-bottom: 0.4em;
  padding-left: 1em;
  border-left: 3px solid rgba(128, 128, 128, 0.2);
  opacity: 0.85;
}

/* -----------------------------------------------------------------------
   Blockquotes — minimal, theme-respecting
   ----------------------------------------------------------------------- */
.tab-card blockquote {
  border-left: 3px solid rgba(128, 128, 128, 0.25);
  margin: 0.8em 0;
  padding: 0.6em 1em;
  font-style: italic;
  opacity: 0.85;
}

/* -----------------------------------------------------------------------
   Card with icon variant
   ----------------------------------------------------------------------- */
.tab-card--icon h4 {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* -----------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------- */
@media (max-width: 640px) {
  .tab-card table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
