/* BioEdge Porto Tabs Bridge frontend polish */
.woocommerce div.product .woocommerce-tabs ul.tabs li[class*="custom_tab"] a,
.woocommerce div.product .woocommerce-tabs ul.tabs li[id*="custom_tab"] a {
  font-weight: 800 !important;
}
.be-ptb-custom-tab img { max-width: 100%; height: auto; }
.be-ptb-custom-tab h2 { margin-top: 0 !important; }
.be-ptb-custom-tab iframe,
.be-ptb-custom-tab embed,
.be-ptb-custom-tab object { max-width: 100%; }

.woocommerce div.product div.images .be-ptb-coa-accordion,
.be-ptb-coa-accordion {
  width: 100%;
  max-width: 100%;
  clear: both;
  margin: 28px 0 0;
  border: 1px solid #dce8ee;
  border-radius: 16px;
  background: #f3f8fb;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 90, 134, 0.06);
}
.be-ptb-coa-toggle,
.be-ptb-coa-toggle:hover,
.be-ptb-coa-toggle:focus,
.be-ptb-coa-toggle:active {
  width: 100%;
  min-height: 66px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 0 !important;
  border-bottom: 1px solid #dce8ee !important;
  border-radius: 0 !important;
  background: #f7fbfd !important;
  color: #002868 !important;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 22px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  text-align: left !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transform: none !important;
}
.be-ptb-coa-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 999px;
  background: #21b7aa;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.be-ptb-coa-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}
.be-ptb-coa-toggle[aria-expanded="true"] .be-ptb-coa-icon svg { transform: rotate(180deg); }
.be-ptb-coa-panel { padding: 20px 22px 24px; }
.be-ptb-coa-panel[hidden] { display: none !important; }

/* COA items: 2 by 2 on desktop and mobile */
.be-ptb-coa-content {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: start;
}
.be-ptb-coa-content p { margin: 0 !important; color: #253041; }
.be-ptb-coa-content a { color: #002868; font-weight: 800; text-decoration: none; }
.be-ptb-coa-content a:has(img),
.be-ptb-coa-content figure,
.be-ptb-coa-content .wp-caption,
.be-ptb-coa-content p:has(img) {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 14px !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 28px rgba(0,0,0,.08) !important;
}
.be-ptb-coa-content img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  margin: 0 !important;
  cursor: zoom-in !important;
}
.be-ptb-coa-content figcaption,
.be-ptb-coa-content .wp-caption-text {
  margin-top: 12px;
  color: #002868;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.be-ptb-hide-tab,
.woocommerce div.product .woocommerce-tabs .panel.be-ptb-hide-tab-panel { display: none !important; }

.be-ptb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 13, 26, .82);
}
.be-ptb-lightbox.is-open { display: flex; }
.be-ptb-lightbox-inner {
  position: relative;
  width: min(100%, 980px);
  max-height: 92vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
}
.be-ptb-lightbox img { display: block; width: 100%; height: auto; margin: 0 auto; }
.be-ptb-lightbox-close,
.be-ptb-lightbox-close:hover,
.be-ptb-lightbox-close:focus {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 999px !important;
  background: #21b7aa !important;
  color: #ffffff !important;
  font-size: 26px !important;
  line-height: 1 !important;
  padding: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  transform: none !important;
}
@media (max-width: 782px) {
  .woocommerce div.product div.images .be-ptb-coa-accordion,
  .be-ptb-coa-accordion { width: 100%; margin: 22px 0 28px; border-radius: 14px; }
  .be-ptb-coa-toggle { min-height: 62px; padding: 16px 18px; font-size: 20px !important; }
  .be-ptb-coa-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .be-ptb-coa-panel { padding: 16px 16px 18px; }
  .be-ptb-coa-content { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .be-ptb-coa-content a:has(img),
  .be-ptb-coa-content figure,
  .be-ptb-coa-content .wp-caption,
  .be-ptb-coa-content p:has(img) { padding: 10px !important; border-radius: 14px !important; }
  .be-ptb-lightbox { padding: 12px; }
  .be-ptb-lightbox-inner { padding: 10px; }
}

/* v1.1.4 hard COA grid: PHP-normalized individual image cards */
.be-ptb-coa-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: start !important;
  width: 100% !important;
}
.be-ptb-coa-card,
.be-ptb-coa-card:visited,
.be-ptb-coa-card:hover,
.be-ptb-coa-card:focus {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 14px !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 28px rgba(0,0,0,.08) !important;
  text-decoration: none !important;
}
.be-ptb-coa-card img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  border-radius: 10px !important;
  cursor: zoom-in !important;
}
.be-ptb-coa-text-card {
  grid-column: 1 / -1;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
}
@media (max-width: 782px) {
  .be-ptb-coa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .be-ptb-coa-card {
    padding: 10px !important;
    border-radius: 14px !important;
  }
}

/* v1.1.5 nuclear COA 2-column layout: JS-normalized cards */
.be-ptb-coa-panel,
.woocommerce div.product div.images .be-ptb-coa-panel {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}
.be-ptb-coa-grid,
.be-ptb-coa-grid-js,
.be-ptb-coa-panel > .be-ptb-coa-grid,
.woocommerce div.product div.images .be-ptb-coa-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: start !important;
}
.be-ptb-coa-grid > .be-ptb-coa-card,
.be-ptb-coa-grid-js > .be-ptb-coa-card,
.be-ptb-coa-card,
.be-ptb-coa-card:visited,
.be-ptb-coa-card:hover,
.be-ptb-coa-card:focus {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 10px !important;
  border: 1px solid #d7e7ee !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 22px rgba(0, 90, 134, .08) !important;
  text-decoration: none !important;
  cursor: zoom-in !important;
}
.be-ptb-coa-grid > .be-ptb-coa-card img,
.be-ptb-coa-grid-js > .be-ptb-coa-card img,
.be-ptb-coa-card img,
.woocommerce div.product div.images .be-ptb-coa-card img {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 10px !important;
  border: 0 !important;
  box-shadow: none !important;
  background: #ffffff !important;
}
@media (max-width: 782px) {
  .be-ptb-coa-grid,
  .be-ptb-coa-grid-js,
  .be-ptb-coa-panel > .be-ptb-coa-grid,
  .woocommerce div.product div.images .be-ptb-coa-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .be-ptb-coa-grid > .be-ptb-coa-card,
  .be-ptb-coa-grid-js > .be-ptb-coa-card,
  .be-ptb-coa-card {
    padding: 7px !important;
    border-radius: 12px !important;
  }
}
