/*
 * "Aktion senden" (Dashboard::CampaignsController, Launch-Paket L8): the form
 * or the numbers on the left, the real mail in a frame on the right. On a
 * phone the preview sits below. Lists reuse .order-list, numbers .customer-stats.
 */
@layer components {
  .panel--campaign {
    --panel-size: 60ch;

    @media (min-width: 960px) {
      --panel-size: 112ch;
    }
  }

  .campaign-editor {
    display: grid;
    gap: 24px;
    text-align: start;

    @media (min-width: 960px) {
      align-items: start;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
  }

  .campaign-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;

    @media (min-width: 960px) {
      position: sticky;
      inset-block-start: 16px;
    }
  }

  .campaign-preview__frame {
    background: #F8F5ED; /* the mail's own paper, in both themes: a mail does not follow the dashboard theme */
    block-size: 640px;
    border: 1px solid var(--color-ink-light);
    border-radius: 8px;
    inline-size: 100%;
  }

  .campaign-stats {
    @media (min-width: 640px) {
      grid-template-columns: repeat(2, 1fr);
    }
  }
}
