/* === LL_FILE_START ===
 * File: event-listing-choice.css
 * Description: Presentation-only layout for the canonical Event Basic/Premium newsletter-listing chooser.
 */

/* The Event chooser benefits from the same wide comparison space used by
 * listing previews. :has() is already part of the dashboard modal CSS policy. */
#dashboard-modal:has(.ll-event-listing-choice) {
  --modal-max-w: 1240px;
}

#dashboard-modal:has(.ll-event-listing-choice) .dashboard-modal-content {
  width: 94vw;
  max-width: var(--modal-max-w);
}

.ll-event-listing-choice {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Stack the plans. Each plan is comparison copy + the real newsletter item +
 * a separate decision rail. The plan itself is deliberately not boxed so the
 * only prominent rectangle is the newsletter preview. */
.ll-event-listing-choice .ll-event-listing-choice__grid {
  display: block;
  width: 100%;
}

.ll-event-listing-choice .ll-event-listing-choice__card,
.ll-event-listing-choice .ll-event-listing-choice__card--premium {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 26px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ll-event-listing-choice .ll-event-listing-choice__card + .ll-event-listing-choice__card {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid #dfe3e8;
}

.ll-event-listing-choice .ll-event-listing-choice__card-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 8px;
  padding: 0;
}

.ll-event-listing-choice .ll-event-listing-choice__card-heading strong {
  font-size: 17px;
}

.ll-event-listing-choice .ll-event-listing-choice__benefit {
  margin: 0 0 14px;
}

.ll-event-listing-choice__option-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--ll-newsletter-preview-width)) minmax(190px, 230px);
  gap: 24px;
  align-items: center;
  justify-content: start;
}

.ll-event-listing-choice__preview-column {
  min-width: 0;
  width: var(--ll-newsletter-preview-width);
  max-width: 100%;
}

.ll-event-listing-choice__preview-label {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .01em;
  color: #646970;
}

/* This frame marks the exact newsletter content width. The content inside is
 * rendered by the production Event newsletter renderer and production item wrapper. */
.ll-event-listing-choice .ll-event-listing-choice__newsletter-frame,
.ll-event-listing-choice .ll-event-listing-choice__basic-preview,
.ll-event-listing-choice .ll-event-listing-choice__premium-preview {
  width: var(--ll-newsletter-preview-width);
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid #cfd5dc;
  border-radius: 6px;
  background: #fff;
}

.ll-event-listing-choice__newsletter-frame > table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: auto;
}

.ll-event-listing-choice__action-column {
  display: flex;
  align-items: center;
  justify-content: stretch;
  min-width: 0;
}

.ll-event-listing-choice__action-column .ll-btn {
  width: 100%;
  min-height: 46px;
  white-space: normal;
  line-height: 1.3;
  text-align: center;
}

/* Preserve the canonical checkout state behavior from promo-calendar.css. */
.ll-event-listing-choice.is-checkout-active .ll-event-listing-choice__option-layout {
  display: none;
}

@media (max-width: 980px) {
  #dashboard-modal:has(.ll-event-listing-choice) .dashboard-modal-content {
    width: 96vw;
  }

  .ll-event-listing-choice__option-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .ll-event-listing-choice__preview-column {
    width: 100%;
  }

  .ll-event-listing-choice .ll-event-listing-choice__newsletter-frame,
  .ll-event-listing-choice .ll-event-listing-choice__basic-preview,
  .ll-event-listing-choice .ll-event-listing-choice__premium-preview {
    width: min(100%, var(--ll-newsletter-preview-width));
  }

  .ll-event-listing-choice__action-column {
    width: min(100%, var(--ll-newsletter-preview-width));
  }
}

@media (max-width: 640px) {
  .ll-event-listing-choice .ll-event-listing-choice__card-heading {
    align-items: flex-start;
  }
}
