.tinymce_template_preview {
}

/* General editor content — prevent oversized images & undersized videos */
body img {
  max-width: 100%;
  height: auto;
}

body video {
  max-width: 100%;
  height: auto;
}

body iframe {
  max-width: 100%;
  min-height: 360px;
}

/* Banner Hero Title Template */
.line-primary {
  display: block;
  color: #fd312e;
  font-size: 36px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  line-height: 1.2;
}

.line-black {
  display: block;
  color: #111827;
  font-size: 36px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  line-height: 1.2;
}

/* Product Top Description Template */
.pdt-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #d1d5db;
}

.pdt-features li {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: rgba(17, 24, 39, 0.8);
  margin-bottom: 10px;
  font-family: "Inter", sans-serif;
}

.pdt-features li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  min-width: 8px;
  background-color: #ff3b30;
  margin-right: 16px;
}

.pdt-colors-label {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 4px 0;
  font-family: "Inter", sans-serif;
}

.pdt-colors-value {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  font-family: "Inter", sans-serif;
}

/* ============================================================
   PRODUCT CONTENT TEMPLATES — Admin TinyMCE Preview
   ============================================================ */

/* Container for all content sections */
.pdt-c-youtube,
.pdt-c-banner,
.pdt-c-banner-full,
.pdt-c-grid4,
.pdt-c-banner-text,
.pdt-c-lr,
.pdt-c-rl,
.pdt-c-2col,
.pdt-c-feature-cards,
.pdt-c-spec,
.pdt-c-certification {
  max-width: 1664px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  margin-bottom: 5rem;
}

/* Shared text elements */
.pdt-c-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px 0;
  font-family: "Inter", sans-serif;
}

.pdt-c-heading {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px 0;
  line-height: 1.3;
  font-family: "Inter", sans-serif;
}

.pdt-c-desc {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 16px 0;
  line-height: 1.6;
  font-family: "Inter", sans-serif;
}

/* Template 1 — YouTube Video */
.pdt-c-youtube {
}

.pdt-c-youtube-inner {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  padding-top: 56.25%; /* 16:9 */
}

.pdt-c-youtube-inner iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Template 2 — Full-Width Banner */
.pdt-c-banner {
}

.pdt-c-banner-media {
  border-radius: 16px;
  overflow: hidden;
  /* height: 720px; */
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdt-c-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdt-c-banner-media video {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
  background: #1a1a1a;
}

/* Template 13 — Full-Width Banner (No Height Limit) */
.pdt-c-banner-full {
}

.pdt-c-banner-full-media {
  border-radius: 16px;
  overflow: hidden;
  background: #e5e7eb;
}

.pdt-c-banner-full-media img {
  width: 100%;
  height: auto;
  display: block;
}

.pdt-c-banner-full-media video {
  width: 100%;
  height: auto;
  display: block;
  background: #1a1a1a;
}

/* Template 14 — Certification / Badge */
.pdt-c-certification {
  padding: 40px 48px;
}

.pdt-c-certification-inner {
  display: flex;
  gap: 40px;
  align-items: center;
}

.pdt-c-certification-media {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}

.pdt-c-certification-media img {
  max-height: 160px;
  width: auto;
  display: block;
}

.pdt-c-certification-text {
  flex: 1;
}

/* Template 3 — Title + 4-Image Grid */
.pdt-c-grid4 {
  text-align: center;
}

.pdt-c-grid4-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 20px 0;
  font-family: "Inter", sans-serif;
}

.pdt-c-grid4-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pdt-c-grid4-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pdt-c-grid4-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
}

.pdt-c-grid4-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdt-c-grid4-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px 0;
  font-family: "Inter", sans-serif;
}

.pdt-c-grid4-item-desc {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
  font-family: "Inter", sans-serif;
}

/* Template 4 — Centered Banner with Eyebrow, Heading & Description */
.pdt-c-banner-text {
  text-align: center;
}

.pdt-c-banner-text .pdt-c-desc {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.pdt-c-media-wrap {
  border-radius: 16px;
  overflow: hidden;
  margin-top: 16px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdt-c-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdt-c-media-wrap video {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
  background: #1a1a1a;
}

/* Template 5 — Left Media, Right Text */
.pdt-c-lr {
}

.pdt-c-lr-inner {
  display: flex;
  gap: 36px;
  align-items: center;
}

.pdt-c-lr-media {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  /* height: 449px; */
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdt-c-lr-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdt-c-lr-media video {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.pdt-c-lr-text {
  flex: 1;
}

/* Template 6 — Right Media, Left Text */
.pdt-c-rl {
}

.pdt-c-rl-inner {
  display: flex;
  flex-direction: row-reverse;
  gap: 36px;
  align-items: center;
}

.pdt-c-rl-media {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  /* height: 449px; */
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdt-c-rl-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdt-c-rl-media video {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.pdt-c-rl-text {
  flex: 1;
}

/* Template 7 — Two-Column Media with Title & Description */
.pdt-c-2col {
}

/* Template 8 — Spec Section */
.pdt-c-spec {
}

.pdt-c-spec-heading {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 24px 0;
  font-family: "Inter", sans-serif;
}

.pdt-c-spec-groups {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pdt-c-spec-group-title {
  font-size: 16px;
  font-weight: 500;
  color: #6b7280;
  margin: 0 0 16px 0;
  font-family: "Inter", sans-serif;
}

.pdt-c-spec-table {
  width: 100%;
  height: auto !important; /* Override TinyMCE inline height attribute */
  border-collapse: collapse;
  border-top: 1px solid #d1d5db;
}

.pdt-c-spec-table tr,
.pdt-c-spec-item {
  height: auto !important; /* TinyMCE can also stamp height on tr/td */
}

.pdt-c-spec-item {
  width: 25%;
  vertical-align: top;
  padding: 1.5rem 1.5rem 1.5rem 0;
}

.pdt-c-spec-label {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 4px 0;
  font-family: "Inter", sans-serif;
}

.pdt-c-spec-value {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  font-family: "Inter", sans-serif;
}

.pdt-c-2col-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pdt-c-2col-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px 0;
  font-family: "Inter", sans-serif;
}

.pdt-c-2col-desc {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 14px 0;
  font-family: "Inter", sans-serif;
}

.pdt-c-2col-media {
  border-radius: 16px;
  overflow: hidden;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdt-c-2col-media img {
  width: 100%;
  height: auto;
  display: block;
}

.pdt-c-2col-media video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: #1a1a1a;
}

/* Template 12 — Feature Cards (Media Top) */
.pdt-c-feature-cards {
  border-radius: 16px;
  padding: 40px 36px;
}

.pdt-c-feature-cards-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pdt-c-feature-cards-media {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  max-height: 600px;
}

.pdt-c-feature-cards-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdt-c-feature-cards-item .pdt-c-eyebrow {
  margin-bottom: 10px;
}

.pdt-c-feature-cards-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
  line-height: 1.3;
  font-family: "Inter", sans-serif;
}

.pdt-c-feature-cards-desc {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
  font-family: "Inter", sans-serif;
}

/* Template 15 — Specs Row */
.pdt-c-specs .specs-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 40px 24px;
  gap: 0;
}

.pdt-c-specs .spec-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 30px;
  border-right: 1px solid #ccc;
}

.pdt-c-specs .spec-item:last-child {
  border-right: none;
}

.pdt-c-specs .spec-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  object-fit: contain;
}

.pdt-c-specs .spec-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.pdt-c-specs .spec-value {
  font-size: 14px;
  color: #666;
}

/* Template 16 & 17 — Stats Row (16 = 3-col, 17 = 4-col) */
.pdt-c-dark-stats .stats-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 48px 24px;
  gap: 0;
}

.pdt-c-dark-stats .stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 36px;
  border-right: 1px solid #d1d5db;
}

.pdt-c-dark-stats .stat-item:last-child {
  border-right: none;
}

.pdt-c-dark-stats .stat-title {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
  line-height: 1.2;
}

.pdt-c-dark-stats .stat-desc {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.4;
}

/* ============================================================
   RESPONSIVE STYLES
   Matches Tailwind breakpoints used in prototype:
     sm  → 640px
     md  → 768px
     lg  → 1024px
   ============================================================ */

/* Below lg (1024px) ----------------------------------------- */
@media (max-width: 1023px) {
  /* Containers: reduce horizontal padding and bottom spacing */
  .pdt-c-youtube,
  .pdt-c-banner,
  .pdt-c-banner-full,
  .pdt-c-grid4,
  .pdt-c-banner-text,
  .pdt-c-lr,
  .pdt-c-rl,
  .pdt-c-2col,
  .pdt-c-feature-cards,
  .pdt-c-spec,
  .pdt-c-certification,
  .pdt-c-specs,
  .pdt-c-dark-stats {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 3rem;
  }

  /* Template 14 — Certification / Badge */
  .pdt-c-certification {
    padding: 28px 24px;
  }

  .pdt-c-certification-inner {
    flex-direction: column;
    text-align: center;
  }

  .pdt-c-certification-media {
    justify-content: center;
  }

  /* Top-description heading sizes */
  .line-primary,
  .line-black {
    font-size: 26px;
  }

  /* Shared content heading */
  .pdt-c-heading {
    font-size: 18px;
  }

  /* Template 3 — grid section title */
  .pdt-c-grid4-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  /* Template 5 — Left Media, Right Text: stack vertically */
  .pdt-c-lr-inner {
    flex-direction: column;
  }

  .pdt-c-lr-media {
    width: 100%;
  }

  .pdt-c-lr-media video {
    min-height: auto;
  }

  /* Template 6 — Right Media, Left Text: stack vertically */
  .pdt-c-rl-inner {
    flex-direction: column;
  }

  .pdt-c-rl-media {
    width: 100%;
  }

  .pdt-c-rl-media video {
    min-height: auto;
  }

  /* Template 3 — 4-Image Grid: 2 columns */
  .pdt-c-grid4-items {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Template 8 — Spec Section */
  .pdt-c-spec-heading {
    font-size: 18px;
  }

  .pdt-c-spec-table,
  .pdt-c-spec-table tbody {
    display: block;
    width: 100%;
  }

  .pdt-c-spec-table tr {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  .pdt-c-spec-item {
    display: block;
    width: 50%;
    box-sizing: border-box;
  }

  /* Template 15/16/17 — normalize inner row side padding */
  .pdt-c-specs .specs-row,
  .pdt-c-dark-stats .stats-row {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Below md (768px) ------------------------------------------ */
@media (max-width: 767px) {
  /* Template 7 — Two-Column Media: single column */
  .pdt-c-2col-inner {
    grid-template-columns: 1fr;
  }

  /* Template 12 — Feature Cards: single column, reduce padding */
  .pdt-c-feature-cards {
    padding: 24px 20px;
  }

  .pdt-c-feature-cards-inner {
    grid-template-columns: 1fr;
  }

  .pdt-c-feature-cards-title {
    font-size: 18px;
  }
}

/* Below sm (640px) ------------------------------------------ */
@media (max-width: 639px) {
  /* Template 3 — 4-Image Grid: single column */
  .pdt-c-grid4-items {
    grid-template-columns: 1fr;
  }

  /* Template 8 — Spec Section: single column */
  .pdt-c-spec-item {
    width: 100%;
    padding-right: 0;
  }

  .pdt-c-lr-media video,
  .pdt-c-rl-media video {
    min-height: auto;
  }

  /* Top-description headings: further reduce on small phones */
  .line-primary,
  .line-black {
    font-size: 22px;
  }

  /* Template 15 — Specs Row: single column */
  .pdt-c-specs .specs-row {
    flex-direction: column;
  }

  .pdt-c-specs .spec-item {
    border-right: none;
    border-bottom: 1px solid #ccc;
    padding: 20px 0;
  }

  .pdt-c-specs .spec-item:last-child {
    border-bottom: none;
  }

  /* Template 16 & 17 — Dark Stats: single column */
  .pdt-c-dark-stats .stats-row {
    flex-direction: column;
  }

  .pdt-c-dark-stats .stat-item {
    border-right: none;
    border-bottom: 1px solid #d1d5db;
    padding: 20px 0;
  }

  .pdt-c-dark-stats .stat-item:last-child {
    border-bottom: none;
  }
}
