
/* ===== Image With Text Panel ===== */

.cc_zRr7AL87AP_7oLpzRVDhr .iwt-panel, .cc_zRr7AL87AP_image_with_text .iwt-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 560px;
}

.cc_zRr7AL87AP_7oLpzRVDhr .iwt-panel__eyebrow, .cc_zRr7AL87AP_image_with_text .iwt-panel__eyebrow {
  display: inline-block;
  margin-bottom: var(--space-sm);
  color: var(--iwt-eyebrow-color, var(--color-accent));
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 500;
  line-height: 1.4;
}

.cc_zRr7AL87AP_7oLpzRVDhr .iwt-panel__title, .cc_zRr7AL87AP_image_with_text .iwt-panel__title {
  margin: 0 0 var(--space-md) 0;
  color: var(--iwt-text-color, var(--color-text-primary));
  font-family: var(--font-display);
  font-size: var(--text-section-heading);
  font-weight: var(--font-weight-section-display);
  line-height: 1.15;
}

.cc_zRr7AL87AP_7oLpzRVDhr .iwt-panel__description, .cc_zRr7AL87AP_image_with_text .iwt-panel__description {
  margin: 0 0 var(--space-lg) 0;
  color: var(--iwt-description-color, var(--color-text-secondary));
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  font-weight: 400;
  line-height: 1.7;
}

/* Mobile-only body-copy density tune-up — matches BrandBenefits'
   mobile item description (14px/1.6) so the two homepage sections read
   at the same typographic density. Desktop/tablet keep --text-body-lg
   (18px/1.7) untouched. Headline, eyebrow, attribution and CTA are
   deliberately not touched here. */
@media (max-width: 767px) {
  .cc_zRr7AL87AP_7oLpzRVDhr .iwt-panel__description, .cc_zRr7AL87AP_image_with_text .iwt-panel__description {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* Multi-paragraph description (index.tsx splits on blank lines into one
   <p> per paragraph). .iwt-panel is a flex column, so sibling margins
   never collapse — an unconditional margin-top here would stack on top
   of the margin-bottom above instead of replacing it. So every
   paragraph except the true last one has its margin-bottom zeroed
   (:last-of-type, not :last-child, so this still works when the CTA
   actions block follows), and the gap between paragraphs is carried
   entirely by margin-top on each paragraph after the first. A
   single-paragraph description never matches either selector below, so
   its layout is completely unchanged. */
.cc_zRr7AL87AP_7oLpzRVDhr .iwt-panel__description:not(:last-of-type), .cc_zRr7AL87AP_image_with_text .iwt-panel__description:not(:last-of-type) {
  margin-bottom: 0;
}

.cc_zRr7AL87AP_7oLpzRVDhr .iwt-panel__description + .iwt-panel__description, .cc_zRr7AL87AP_image_with_text .iwt-panel__description + .iwt-panel__description {
  margin-top: 1rem; /* 16px on mobile */
}

@media (min-width: 768px) {
  .cc_zRr7AL87AP_7oLpzRVDhr .iwt-panel__description + .iwt-panel__description, .cc_zRr7AL87AP_image_with_text .iwt-panel__description + .iwt-panel__description {
    margin-top: 1.25rem; /* 20px on tablet/desktop */
  }
}

.cc_zRr7AL87AP_7oLpzRVDhr .iwt-panel__actions, .cc_zRr7AL87AP_image_with_text .iwt-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Mobile (<=767px): .iwt-panel is a flex column, so a trailing
   margin-bottom on its last child never collapses away. When there's
   no CTA (showActions false), description's own margin-bottom was
   left as dead space below the visible text, making the panel taller
   than its content. Zero it on whichever child actually ends up
   last — a no-op when actions IS present, since that element has no
   bottom margin of its own. Desktop/tablet keep the unconditional
   margin-bottom above, untouched. */
@media (max-width: 767px) {
  .cc_zRr7AL87AP_7oLpzRVDhr .iwt-panel > *:last-child, .cc_zRr7AL87AP_image_with_text .iwt-panel > *:last-child {
    margin-bottom: 0;
  }
}

.cc_zRr7AL87AP_7oLpzRVDhr .iwt-panel__btn, .cc_zRr7AL87AP_image_with_text .iwt-panel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 24px;
  font-family: var(--font-label);
  font-size: var(--text-small);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .cc_zRr7AL87AP_7oLpzRVDhr .iwt-panel__btn, .cc_zRr7AL87AP_image_with_text .iwt-panel__btn {
    padding: 12px 28px;
  }
}

.cc_zRr7AL87AP_7oLpzRVDhr .iwt-panel__btn--primary, .cc_zRr7AL87AP_image_with_text .iwt-panel__btn--primary {
  background: var(--iwt-accent-color, var(--color-accent));
  color: #ffffff;
  border: none;
}

.cc_zRr7AL87AP_7oLpzRVDhr .iwt-panel__btn--secondary, .cc_zRr7AL87AP_image_with_text .iwt-panel__btn--secondary {
  background: transparent;
  color: var(--iwt-text-color, var(--color-text-primary));
  border: 1px solid var(--color-border);
}

/* Opt-in only (secondaryButtonStyle: "text-link") — stacks on top of
   .iwt-panel__btn--secondary on the same <a>, and, being later in
   source order at equal specificity, overrides its
   border/background/padding/radius/text-decoration. Default
   ("outline") never adds this class, so every existing placement's
   secondary button is untouched. */
.cc_zRr7AL87AP_7oLpzRVDhr .iwt-panel__btn--text-link, .cc_zRr7AL87AP_image_with_text .iwt-panel__btn--text-link {
  display: inline;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--iwt-text-color, var(--color-text-primary));
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: currentColor;
}

.cc_zRr7AL87AP_7oLpzRVDhr .iwt-panel__btn--text-link:hover, .cc_zRr7AL87AP_image_with_text .iwt-panel__btn--text-link:hover {
  color: var(--iwt-accent-color, var(--color-accent));
}

.cc_zRr7AL87AP_7oLpzRVDhr .iwt-panel__btn--text-link:focus-visible, .cc_zRr7AL87AP_image_with_text .iwt-panel__btn--text-link:focus-visible {
  outline: 2px solid var(--iwt-accent-color, var(--color-accent));
  outline-offset: 3px;
  border-radius: 2px;
}

/* ===== Hover & motion ===== */
@media (prefers-reduced-motion: no-preference) {
  .cc_zRr7AL87AP_7oLpzRVDhr .iwt-panel, .cc_zRr7AL87AP_image_with_text .iwt-panel {
    opacity: 0;
    transform: translateY(16px);
    animation: iwt-panel-in 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 80ms forwards;
  }

  .cc_zRr7AL87AP_7oLpzRVDhr .iwt-panel__btn, .cc_zRr7AL87AP_image_with_text .iwt-panel__btn {
    transition: filter 200ms ease, border-color 200ms ease, color 200ms ease, background-color 200ms ease;
  }

  .cc_zRr7AL87AP_7oLpzRVDhr .iwt-panel__btn--primary:hover, .cc_zRr7AL87AP_image_with_text .iwt-panel__btn--primary:hover {
    filter: brightness(0.88);
  }

  .cc_zRr7AL87AP_7oLpzRVDhr .iwt-panel__btn--secondary:hover, .cc_zRr7AL87AP_image_with_text .iwt-panel__btn--secondary:hover {
    border-color: var(--iwt-accent-color, var(--color-accent));
  }

  @keyframes iwt-panel-in {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
