/*
 * Comparison: the white card with the two column titles ("AI generates" /
 * "Eleken product designer decides") and a slot for Comparison Rows.
 * Figma "Eleken Site 2026": desktop 503:1458, tablet 503:2940, mobile 503:4521.
 *
 * This CSS lives inside the component's Shadow DOM. The rows are separate
 * components, each in its own Shadow DOM, so nothing here can style them: each
 * row draws its own dashed line and spacing, and repeats the column widths below.
 * Breakpoints follow Webflow: desktop ≥992 (base), tablet ≤991, mobile ≤767.
 * The Designer's open canvas draws every breakpoint in one window, so @media never
 * fires there; each breakpoint frame is a named container instead (wf-container-medium
 * for tablet and below, wf-container-small for mobile and below). Each @media block is
 * followed by an identical @container twin for those frames — designer-canvas.test.ts
 * keeps them in sync. On a published page the containers don't exist.
 */

:host {
  display: block;
}

.cmp,
.cmp *,
.cmp *::before,
.cmp *::after {
  box-sizing: border-box;
}

.cmp {
  padding: 40px 32px;
  border-radius: 6px;
  background-color: var(--colors--white, #fff);
  color: var(--colors--main, #1d1e22);
  text-align: left;
  overflow-wrap: break-word;
}

/* Two equal columns, as in every Comparison Row */
.cmp-head {
  display: flex;
  gap: 80px;
  align-items: center;
}

.cmp-title {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  color: var(--colors--main, #1d1e22);
  font-family: Regolapro, "Regola Pro", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.01em;
}

@media screen and (max-width: 991px) {
  .cmp-head {
    gap: 32px;
  }
}

/* The same rules for the tablet and mobile frames of the Designer canvas (see the header) */
@container wf-container-medium (width > 0) {
  .cmp-head {
    gap: 32px;
  }
}

/* Mobile: a 125px left column, the right one takes the rest */
@media screen and (max-width: 767px) {
  .cmp {
    padding: 32px 8px;
  }

  .cmp-head {
    gap: 12px;
  }

  .cmp-title {
    font-size: 15px;
    line-height: 22px;
  }

  .cmp-title:first-child {
    flex: none;
    width: 125px;
  }
}

/* The same rules for the mobile frames of the Designer canvas (see the header) */
@container wf-container-small (width > 0) {
  .cmp {
    padding: 32px 8px;
  }

  .cmp-head {
    gap: 12px;
  }

  .cmp-title {
    font-size: 15px;
    line-height: 22px;
  }

  .cmp-title:first-child {
    flex: none;
    width: 125px;
  }
}

/*
 * Mobile with Stack columns on mobile: one column under the other, as on
 * todaymade.com — the left title, the left cells of all rows, the right title, the
 * right cells. The cells live in the rows' Shadow DOMs, so they reach this flex
 * column through display: contents: Webflow's slot wrapper (set here), the rows'
 * code-island hosts and roots (display: contents already), and the rows themselves,
 * which take --comparison-row-display. --comparison-stacked: 1 tells the rows to
 * order their cells and draw a dashed line above each.
 */
@media screen and (max-width: 767px) {
  .cmp--stack {
    --comparison-row-display: contents;
    --comparison-stacked: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 16px;
  }

  .cmp--stack .cmp-head,
  .cmp--stack .cmp-rows,
  .cmp--stack ::slotted(*) {
    display: contents;
  }

  .cmp--stack .cmp-title,
  .cmp--stack .cmp-title:first-child {
    flex: none;
    width: auto;
  }

  .cmp--stack .cmp-title:last-child {
    order: 2;
    margin-top: 40px;
  }
}

/* The same rules for the mobile frames of the Designer canvas (see the header) */
@container wf-container-small (width > 0) {
  .cmp--stack {
    --comparison-row-display: contents;
    --comparison-stacked: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 16px;
  }

  .cmp--stack .cmp-head,
  .cmp--stack .cmp-rows,
  .cmp--stack ::slotted(*) {
    display: contents;
  }

  .cmp--stack .cmp-title,
  .cmp--stack .cmp-title:first-child {
    flex: none;
    width: auto;
  }

  .cmp--stack .cmp-title:last-child {
    order: 2;
    margin-top: 40px;
  }
}

