/* =========================================================
   CP Product Panels — Figma-style
   Colors from Figma:
   - Navy: #193358
   - Teal accent: #2ABEB6 (25% used in comps)
========================================================= */

/* Hide the tab title that some themes print above content */
.woocommerce div.product .woocommerce-tabs ul.tabs li.description_tab a,
.woocommerce div.product .woocommerce-tabs ul.tabs li.description_tab a:before{
  content:none !important;
}

/* Some themes show an H2 "Description" inside the tab content */
.woocommerce div.product .woocommerce-tabs .panel h2{
  display:none !important;
}

.cp-figma-panel{
  --cp-navy:#193358;
  --cp-teal:#2ABEB6;

  background: var(--cp-navy);
  border-radius: 0;
  padding: 16px 16px 18px;
  margin: 0;
  color: rgba(255,255,255,.92);
  font-family: var(--cp-font-body, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
}

/* Tabs row */
.cp-figma-panel .cp-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  margin: 0 0 14px;
}

.cp-figma-panel .cp-tab{
  all: unset;
  cursor: pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 9px 14px;
  border-radius: 999px;

  background: transparent;
  border: 1px solid rgba(42,190,182,.45);
  color: rgba(255,255,255,.92);

  font-family: var(--cp-font-head, "DM Sans", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.cp-figma-panel .cp-tab[aria-selected="true"]{
  background: rgba(42,190,182,.22);
  border-color: rgba(42,190,182,.70);
  color: #ffffff;
}

/* Body */
.cp-figma-panel .cp-body{
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 14px;
}

/* Panels */
.cp-figma-panel .cp-panel{ display:none; }
.cp-figma-panel .cp-panel.cp-active{ display:block; }

/* Typography inside the research focus (coming from Woo description HTML) */
.cp-figma-panel p{
  margin: 0 0 10px;
  line-height: 1.65;
  font-weight: 600;
  font-size: 13px;
  color: rgba(255,255,255,.90);
}

.cp-figma-panel strong{
  color: rgba(255,255,255,.96);
  font-weight: 800;
}

.cp-figma-panel ul{
  margin: 6px 0 10px;
  padding-left: 18px;
}

.cp-figma-panel li{
  margin: 7px 0;
  line-height: 1.55;
  font-weight: 650;
  font-size: 13px;
  color: rgba(255,255,255,.92);
}

.cp-figma-panel .cp-muted{
  opacity: .92;
}

/* COA grid */
.cp-figma-panel .cp-coa-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cp-figma-panel .cp-coa-item{
  display:block;
  border-radius: 12px;
  overflow:hidden;
  text-decoration:none;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
}

.cp-figma-panel .cp-coa-item img{
  width:100%;
  height: 120px;
  object-fit: cover;
  display:block;
}

.cp-figma-panel .cp-coa-item span{
  display:block;
  padding: 8px 9px 9px;
  font-weight: 700;
  font-size: 12px;
  opacity: .92;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px){
  .cp-figma-panel{ padding: 14px 12px 16px; }
  .cp-figma-panel .cp-coa-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-figma-panel .cp-coa-item img{ height: 110px; }
}
