/* root */
body.wp-singular.product-template-default {
  background-color: var(--color-cream) !important;
}
.product-template-default #page {
  background-color: var(--color-cream) !important;
}

.single-research-tabs-wrapper {
  padding: 40px var(--site-padding-fixed) !important;
  margin-top: 30px;
}
/* media */
@media (max-width: 1005px) {
  .woocommerce-tabs ul.wc-tabs li {
    line-height: 30px !important;
  }
}
@media (max-width: 715px) {
  .single-research-tabs-wrapper {
    overflow: scroll;
    width: 100vw !important;
  }
  .woocommerce-tabs ul.wc-tabs li {
    padding: 0px !important;
    margin: 0px !important;
    line-height: 22px !important;
  }
  .woocommerce-tabs ul.wc-tabs li a {
    line-height: 18px;
    display: flex;
    margin: 10px 0px;
  }

  span.single-research-dot {
    width: 2rem !important;
  }

  ol,
  ul {
    margin: 0 0 0.5em 0em !important;
  }
  .woocommerce-tabs ul {
    margin: 0px !important;
  }
}

.single-research-card-container .single-research-img:hover .cl-pdf-preview-wrapper {
  display: flex;
}

.quantity {
  display: none;
}
.woocommerce-breadcrumb {
  display: none;
}
.woocommerce div.product form.cart {
  margin-bottom: 2em;
  text-align: center;
}
.woocommerce div.product div.summary {
  width: 100% !important;
}
.woocommerce-tabs.wc-tabs-wrapper {
  background: #e6e8df !important;
  color: var(--base-2);
}
.wc-tabs-wrapper p {
  color: var(--base-2);
}
.single-product.separate-containers .content-area {
  margin: 0px !important;
  padding: 0px !important;
}
.single-product.separate-containers #main {
  margin: 0px !important;
  padding: 0px !important;
}
.sidebar-include h2 {
  padding-left: 0.8em !important;
}
.sidebar-include ul {
  margin: 0px !important;
}

.single-research-card-container {
  /* padding: 0px var(--site-padding-fixed)!important; */
  width: 100% !important;
  display: flex;
  flex-direction: column;
}
@media (max-width: 2000px) {
  .single-product.separate-containers #main {
    margin: 0px !important;
    padding: 0px var(--site-padding-fixed) !important;
  }
}
.woocommerce div.product div.images {
  margin-bottom: 0px !important;
}

.single-research-title {
  width: 100%;
  text-align: center;
  color: var(--base-2);
  font-family: var(--gp-font--lateef);
  font-size: 64px;
  letter-spacing: 8px;
  line-height: auto;
  text-align: center;
  margin: 0px;
  padding: 0px;
  text-transform: uppercase;
  margin-bottom: 30px;
  padding-top: var(--site-padding-fixed);
}

.single-research-img {
  height: 617px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.woocommerce-product-gallery__wrapper {
  height: 617px;

  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}
.woocommerce div.product {
  margin-bottom: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}
.woocommerce-product-gallery {
  background-color: white;
  width: 100% !important;
  max-height: 617px;
  overflow: hidden;
}
.woocommerce-product-gallery__trigger {
  display: none;
}
.woocommerce-product-gallery div.product div.images img {
  width: auto;
  height: auto;
  max-width: initial;
}

.woocommerce-product-gallery__image {
  max-width: 460px;
  margin: 0 auto;
}
.single-research-meta {
  font-size: 28px !important;
  color: var(--base-2);
  font-family: var(--gp-font--lateef);
  text-align: center;
  margin: 0px;
  padding: 0px;
  text-transform: uppercase;
  margin: 20px 0px;
  display: flex;
  justify-content: center;
  width: 500px;
  margin: auto;
  padding-right: 30px;
  margin-bottom: 15px;
  margin-top: 10px;
}
span.single-research-dot {
  width: 15%;
  display: flex;
  justify-content: center;
}

#wc-stripe-express-checkout-element {
  display: none !important;
}

@media (max-width: 640px) {
  ol,
  ul {
    margin: 0 0 0em 0em !important;
  }
  .single-research-meta {
    font-size: 20px !important;
    width: 100%;
  }
  .single-research-img {
    height: 335px;
  }
  ul.tabs.wc-tabs {
    margin-bottom: 0px !important;
  }
  .single-research-title {
    font-size: 32px !important;
  }
  .entry-title {
    font-size: 32px !important;
  }
}
/* ============================================================
   RESEARCH — FULL WIDTH TABS WRAPPER
   ============================================================ */
.single-research-tabs-wrapper {
  margin-left: calc(50% - 50vw);
  background: #e6e8df;
  padding: 60px 0;
}
.woocommerce-tabs.wc-tabs-wrapper {
  max-width: var(--gb-container-width);
}
.woocommerce-tabs {
  background-color: transparent;
}
/* ============================================================
   TABS HEADER
   ============================================================ */
.woocommerce-tabs.wc-tabs-wrapper {
  margin: 0 auto;
}
.woocommerce-page .entry-content {
  margin-top: 0px !important;
}

.woocommerce-tabs ul.wc-tabs {
  display: flex;
  gap: 0px;
  border-bottom: none !important;
  border-radius: 4px;
  padding: 0;
  margin: 0px;
}
.wp-singular {
  font-size: 28px;
}
.wp-singular .woocommerce-page .entry-content p {
  font-size: 28px !important;
}
.woocommerce-tabs ul.wc-tabs li {
  list-style: none;
  text-align: center;
  margin: 0 !important;
  padding: 5px 40px;
  cursor: pointer;
  background-color: #ece8d0;
  text-transform: uppercase;
}

.woocommerce-tabs ul.wc-tabs li a {
  color: #1f2a1f;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none !important;
}

.woocommerce-tabs ul.wc-tabs li.active {
  background: var(--tab-inside);
  border: none;
}

.woocommerce-tabs ul.wc-tabs li.active a {
  color: var(--color-forest-dark);
}
#tab-research_overview table {
  margin: 0px !important;
}
/* ============================================================
   TAB PANELS (CONTENT BOX)
   ============================================================ */
.woocommerce-Tabs-panel {
  background: var(--tab-inside);
  border-radius: 6px;
  padding: var(--site-padding-general);
  margin-top: 20px;
  color: var(--color-forest-dark);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}
.woocommerce-Tabs-panel table {
}
.woocommerce-Tabs-panel table td {
  padding: 0px;
}
/* ============================================================
   TWO-COLUMN LAYOUT (TEXT LEFT + INCLUDES RIGHT)
   ============================================================ */
@media (min-width: 900px) {
  .woocommerce-Tabs-panel {
    gap: 40px;
  }
}

/* Left text column mario */
.woocommerce-Tabs-panel p {
  font-size: 22px;
  color: var(--color-forest-dark) !important;
}

/* Right "INCLUDES" column */
.woocommerce-Tabs-panel ul {
  padding-left: 20px;
}
.woocommerce-Tabs-panel ul li::marker {
  position: relative;
  top: 2px;
}

/* FIX DOTS */
.woocommerce-Tabs-panel ul {
  list-style: none;
  padding-left: 1.2em;
}

.woocommerce-Tabs-panel ul li {
  position: relative;
  padding-left: 0.6em;
}

.woocommerce-Tabs-panel ul li::before {
  content: '•';
  position: absolute;
  left: -0.4em;
  top: -0.1em;
  line-height: normal;
}

/* Title "INCLUDES:" */
.woocommerce-Tabs-panel h3 {
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: #1a3315;
  font-weight: 700;
}

/* ===== PDF Modal ===== */

.cl-pdf-preview-button {
  display: inline-block;
  padding: 13px 30px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  border: none;
  background: var(--color-forest-dark) !important;
  color: white !important;
  text-transform: uppercase;
  letter-spacing: var(--font-title-spacing);
  text-decoration: none;
  font-size: var(--font-size) !important;
  font-family: var(--font-family) !important;
  border-radius: 0px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.cl-pdf-preview-button:hover {
  background: var(--color-forest);
  transform: translateY(-1px);
}
@media screen and (max-width: 768px) {
  .single-research-img {
    position: relative;
  }
  .cl-pdf-preview-wrapper {
    bottom: 20px;
  }
  .woocommerce img,
  .woocommerce-page img {
    height: auto;
    max-width: 60%;
  }
}

/* Modal base */
.cl-pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none; /* hidden by default */
}

.cl-pdf-modal.is-open {
  display: block;
}

/* Overlay */
.cl-pdf-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

/* Dialog */
.cl-pdf-modal__dialog {
  position: fixed;
  width: 100% !important;
  max-width: 768px !important;
  inset: 5%;

  margin: auto;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: transparent;
}
.pdfViewer .page {
  width: 100% !important;
  height: 100% !important;
}
.cl-pdf-modal__close {
  align-self: flex-end;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
}

.cl-pdf-modal__body {
  flex: 1;
  min-height: 60vh;
}

.cl-pdf-modal__iframe {
  width: 100%;
  height: 100%;
  border: none;
}
/* ===============================
   MODAL PDF – TAMAÑO GRANDE
================================ */

/* Dialog del modal */
.cl-pdf-modal__dialog {
  width: 95vw !important;
  height: 90vh !important;
  max-width: 1400px;
  max-height: 900px;
  display: flex;
  flex-direction: column;
}

/* Body del modal */
.cl-pdf-modal__body {
  flex: 1;
  overflow: hidden;
}

/* PDF Poster wrapper */
.cl-pdf-modal__body .pdfp_wrapper,
.cl-pdf-modal__body #viewerContainer,
.cl-pdf-modal__body #viewer,
.cl-pdf-modal__body .pdfViewer {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

/* Centrar páginas */
.cl-pdf-modal__body .pdfViewer .page {
  margin: 0 auto !important;
}

/* Responsive */
@media (max-width: 768px) {
  .cl-pdf-modal__dialog {
    inset: 8%;
    max-height: 70vh !important;
  }
}

.cl-pdf-preview-wrapper {
  display: block;
  justify-content: center;
  align-items: center;
  margin: auto;
  position: absolute;
}
iframe #content,
iframe body {
  background-color: white !important;
}
.cl-pdf-modal__dialog {
  inset: 2%;
  max-width: none;
  border-radius: 0;
}

.cl-pdf-modal__body {
  padding: 0;
  background: #000; /* disimula el gris */
}

.cl-pdf-modal__iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
