/* ProdBy funnel drag-and-drop elements (editor + public pages) */
.prodby-visual-html,
.visual-editor-content,
.grapesjs-render,
[data-gjs-type="wrapper"] {
  font-family: var(--pb-font-family, Inter, system-ui, -apple-system, sans-serif);
  font-size: var(--pb-font-size, 16px);
  font-weight: var(--pb-font-weight, 400);
  font-style: var(--pb-font-style, normal);
  line-height: var(--pb-line-height, 1.5);
  letter-spacing: var(--pb-letter-spacing, 0);
}

.prodby-media-upload {
  display: none;
}

.prodby-image {
  margin: 0;
  text-align: center;
  background: transparent;
}

.prodby-image__frame {
  background: transparent;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}

.prodby-image__link {
  display: inline-block;
  max-width: 100%;
  background: transparent;
}

.prodby-image__img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  background: transparent;
  object-fit: contain;
}

.prodby-image__img[data-placeholder="1"],
.prodby-summary-bundle__image img[data-placeholder="1"] {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #f4f4f5 0%, #e4e4e7 100%);
  border: 2px dashed #d4d4d8;
  border-radius: 12px;
  object-fit: cover;
}

.prodby-summary-bundle__image img:not([data-placeholder="1"]) {
  background: transparent;
  object-fit: contain;
}

.prodby-features {
  font-family: var(--pb-font-family, Inter, system-ui, -apple-system, sans-serif);
  width: 100%;
  max-width: 100%;
  padding: 48px 24px;
  background: var(--pb-section-bg, #09090b);
  box-sizing: border-box;
  overflow-x: clip;
}

.prodby-features__card {
  background: var(--pb-card-bg, #fff);
  color: var(--pb-text-color, #18181b);
  border-radius: 12px;
  padding: 28px 24px;
  width: 100%;
  max-width: min(560px, 100%) !important;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prodby-features__heading {
  margin: 0 0 12px;
  font-size: calc(var(--pb-font-size, 16px) * 1.25);
  font-weight: 700;
  color: #27272a;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prodby-features__product-title {
  margin: 0 0 10px;
  font-size: calc(var(--pb-font-size, 16px) * 1.125);
  font-weight: 700;
  color: var(--pb-accent, #dc2626);
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prodby-features__description {
  margin: 0 0 20px;
  font-size: calc(var(--pb-font-size, 16px) * 0.9375);
  line-height: 1.55;
  color: #71717a;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prodby-features__list,
.prodby-summary-bundle__features {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

.prodby-features__item,
.prodby-summary-bundle__features .prodby-features__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  font-size: calc(var(--pb-font-size, 16px) * 0.9375);
  line-height: 1.5;
  color: #3f3f46;
  min-width: 0;
  max-width: 100%;
}

.prodby-features__item-body {
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prodby-features__check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin-top: 2px;
  font-size: calc(var(--pb-font-size, 16px) * 1.05);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-weight: 400;
  line-height: 1;
  color: var(--pb-accent, #dc2626);
  user-select: none;
}

.prodby-features__check--img {
  width: 24px;
  height: 24px;
}

.prodby-features__check--img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prodby-features__item-title {
  display: block;
  font-weight: 700;
  color: #27272a;
  margin-bottom: 4px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prodby-features__item-desc {
  margin: 0;
  font-size: calc(var(--pb-font-size, 16px) * 0.875);
  color: #71717a;
  line-height: 1.5;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prodby-summary-bundle {
  font-family: var(--pb-font-family, Inter, system-ui, -apple-system, sans-serif);
  width: 100%;
  max-width: 100%;
  padding: 48px 24px;
  background: var(--pb-section-bg, #09090b);
  box-sizing: border-box;
  overflow-x: clip;
}

.prodby-summary-bundle__card {
  width: 100%;
  max-width: min(480px, 100%) !important;
  margin-left: auto;
  margin-right: auto;
  background: var(--pb-card-bg, #fff);
  color: var(--pb-text-color, #18181b);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.prodby-summary-bundle__urgency {
  background: var(--pb-accent, #dc2626);
  color: #fff;
  text-align: center;
  font-size: calc(var(--pb-font-size, 16px) * 0.8125);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prodby-summary-bundle__body {
  padding: 24px 20px 28px;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

.prodby-summary-bundle__eyebrow {
  margin: 0 0 8px;
  font-size: calc(var(--pb-font-size, 16px) * 0.9375);
  color: #3f3f46;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prodby-summary-bundle__title {
  margin: 0 0 20px;
  font-size: calc(var(--pb-font-size, 16px) * 1.375);
  font-weight: 800;
  line-height: 1.25;
  color: var(--pb-accent, #dc2626);
  text-transform: uppercase;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prodby-summary-bundle__image {
  margin: 0 0 20px;
}

.prodby-summary-bundle__image img {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  height: auto;
  border-radius: 8px;
}

.prodby-summary-bundle__features {
  text-align: left;
  margin-bottom: 20px;
}

.prodby-summary-bundle__price {
  margin: 0 0 20px;
  font-size: calc(var(--pb-font-size, 16px) * 1.125);
  font-weight: 700;
  color: #18181b;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prodby-summary-bundle__price-value {
  color: var(--pb-accent, #dc2626);
  font-size: calc(var(--pb-font-size, 16px) * 1.25);
}

.prodby-summary-bundle__cta {
  display: block;
  width: 100%;
  padding: 16px 20px;
  background: var(--pb-accent, #dc2626);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.3;
  transition: background 0.15s ease, filter 0.15s ease;
}

.prodby-summary-bundle__cta:hover {
  filter: brightness(0.92);
  color: #fff;
}

.prodby-summary-bundle__cta-main {
  display: block;
  font-size: calc(var(--pb-font-size, 16px) * 1.0625);
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prodby-summary-bundle__cta-sub {
  display: block;
  margin-top: 4px;
  font-size: calc(var(--pb-font-size, 16px) * 0.75);
  font-weight: 500;
  opacity: 0.92;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Features with waveforms — scoped to avoid page conflicts */
.prodby-features-waveforms {
  font-family: var(--pb-font-family, Inter, system-ui, -apple-system, sans-serif);
  width: 100%;
  max-width: 100%;
  padding: 48px 24px;
  background: var(--pb-section-bg, #09090b);
  box-sizing: border-box;
  overflow-x: clip;
}

.prodby-features-waveforms__card {
  background: var(--pb-card-bg, #fff);
  color: var(--pb-text-color, #18181b);
  border-radius: 12px;
  padding: 28px 24px;
  width: 100%;
  max-width: min(720px, 100%) !important;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prodby-features-waveforms__heading {
  margin: 0 0 12px;
  font-size: calc(var(--pb-font-size, 16px) * 1.25);
  font-weight: 700;
  color: #27272a;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prodby-features-waveforms__product-title {
  margin: 0 0 10px;
  font-size: calc(var(--pb-font-size, 16px) * 1.125);
  font-weight: 700;
  color: var(--pb-accent, #dc2626);
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prodby-features-waveforms__description {
  margin: 0 0 20px;
  font-size: calc(var(--pb-font-size, 16px) * 0.9375);
  line-height: 1.55;
  color: #71717a;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prodby-features-waveforms__columns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  max-width: 100%;
}

.prodby-features-waveforms__columns--reversed {
  flex-direction: row-reverse;
}

.prodby-features-waveforms__column {
  flex: 1 1 calc(50% - 10px);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.prodby-features-waveforms__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

.prodby-features-waveforms__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #f4f4f5;
  min-width: 0;
  max-width: 100%;
}

.prodby-features-waveforms__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.prodby-features-waveforms__player {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.prodby-features-waveforms__body {
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prodby-features-waveforms__item-title {
  display: block;
  font-weight: 700;
  color: #27272a;
  margin-bottom: 4px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prodby-features-waveforms__item-desc {
  margin: 0;
  font-size: calc(var(--pb-font-size, 16px) * 0.875);
  color: #71717a;
  line-height: 1.5;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Inline player — no box around waveform rows */
.prodby-features-waveforms .prodby-audio-preview,
.prodby-features-waveforms .prodby-audio-preview--compact {
  padding: 0;
  gap: 8px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.prodby-features-waveforms .prodby-audio-preview--compact .prodby-audio-preview__play {
  width: 36px;
  height: 36px;
}

.prodby-features-waveforms .prodby-audio-preview--compact .prodby-audio-preview__wave {
  height: 40px;
}

.prodby-features-waveforms .prodby-audio-preview__wave,
.prodby-features-waveforms .prodby-audio-preview__wave canvas {
  background: transparent;
}

.prodby-audio-preview-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.prodby-audio-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 10px 12px;
  background: #fafafa;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  box-sizing: border-box;
}

.prodby-audio-preview__play {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--pb-audio-btn, #18181b);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.prodby-audio-preview__play-icon {
  font-size: 11px;
  line-height: 1;
  margin-left: 1px;
}

.prodby-audio-preview.is-playing .prodby-audio-preview__play-icon {
  margin-left: 0;
  font-size: 10px;
  letter-spacing: -1px;
}

.prodby-audio-preview__wave {
  flex: 1;
  min-width: 0;
  height: 48px;
}

.prodby-audio-preview__bar {
  flex: 1;
  min-width: 0;
  height: 6px;
  align-self: center;
  background: var(--pb-audio-wave, #e4e4e7);
  border-radius: 999px;
  overflow: hidden;
}

.prodby-audio-preview__bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--pb-audio-progress, #dc2626);
  border-radius: 999px;
  transition: width 0.1s linear;
}

.prodby-audio-preview__audio {
  display: none;
}

.prodby-audio-preview__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 48px;
  font-size: 0.75rem;
  color: #a1a1aa;
  text-align: center;
  padding: 0 8px;
}

.prodby-audio-preview__play:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .prodby-features[style*="width"],
  .prodby-summary-bundle[style*="width"],
  .prodby-features-waveforms[style*="width"] {
    width: 100% !important;
    max-width: 100% !important;
  }
  .prodby-features,
  .prodby-summary-bundle,
  .prodby-features-waveforms {
    padding: 28px 12px;
  }

  .prodby-features__card,
  .prodby-summary-bundle__card,
  .prodby-features-waveforms__card {
    max-width: 100%;
    width: 100%;
    padding: 20px 14px;
    box-sizing: border-box;
  }

  .prodby-features-waveforms__columns,
  .prodby-features-waveforms__columns--reversed {
    flex-direction: column;
    gap: 16px;
  }

  .prodby-features-waveforms__columns--reversed {
    flex-direction: column-reverse;
  }

  .prodby-features-waveforms__column {
    flex: 1 1 100%;
    width: 100%;
  }

  .prodby-features-waveforms__item {
    padding: 12px 0;
  }

  .prodby-features-waveforms .prodby-audio-preview--compact .prodby-audio-preview__play {
    width: 34px;
    height: 34px;
  }

  .prodby-features-waveforms .prodby-audio-preview--compact .prodby-audio-preview__wave {
    height: 36px;
  }

  .prodby-features__heading,
  .prodby-features__product-title,
  .prodby-summary-bundle__title,
  .prodby-summary-bundle__eyebrow,
  .prodby-summary-bundle__price,
  .prodby-summary-bundle__cta-main,
  .prodby-summary-bundle__cta-sub {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .prodby-features__item,
  .prodby-summary-bundle__features .prodby-features__item {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .prodby-features__item-body {
    min-width: 0;
    flex: 1;
  }

  .prodby-summary-bundle__body {
    padding: 20px 14px 24px;
  }

  .prodby-audio-preview {
    gap: 10px;
    padding: 10px;
  }

  .prodby-audio-preview__play {
    width: 36px;
    height: 36px;
  }

  .prodby-audio-preview__wave {
    height: 40px;
  }
}

/* Thank you page block (editor + live thank-you pages) */
.prodby-thankyou-block {
  max-width: 560px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.prodby-thankyou-block__card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prodby-thankyou-block__headline {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.prodby-thankyou-block__message {
  color: #a1a1aa;
  line-height: 1.6;
  margin: 0 0 24px;
  font-size: 1rem;
  max-width: 42ch;
}

.prodby-thankyou-block__details {
  width: 100%;
  max-width: 400px;
  margin: 0 0 20px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
}

.prodby-thankyou-block__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.875rem;
}

.prodby-thankyou-block__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.prodby-thankyou-block__row:first-child {
  padding-top: 0;
}

.prodby-thankyou-block__label {
  color: #71717a;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  flex-shrink: 0;
}

.prodby-thankyou-block__merge {
  color: #fafafa;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

.prodby-thankyou-block__merge--link {
  color: #93c5fd;
  text-decoration: underline;
  text-align: left;
  max-width: 100%;
}

.prodby-thankyou-block__download-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.prodby-thankyou-block__btn {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 24px;
  background: #fafafa;
  color: #09090b;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.prodby-thankyou-block__btn[hidden],
.prodby-thankyou-block__row[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .prodby-thankyou-block {
    padding: 56px 20px;
  }

  .prodby-thankyou-block__headline {
    font-size: 1.625rem;
  }
}
