/*!
 * Printman sticker calculator page — layout + content section.
 *
 * Replaces two things v1 gets for free and v2 must state explicitly:
 *   1. what Elementor generated per-post for /sticker-calculator/ (post-17073.css), and
 *   2. the printspace theme's widget typography (.haru-heading-title--*, .haru-icon-box__*),
 *      including its responsive ramp, which is NOT the same as Elementor's breakpoints.
 *
 * Every number was read off the live page — computed styles at three viewports plus the theme's
 * own rules in style-custom.min.css. See reference/BASELINE-1440.md. Changing a number here
 * changes the design; test/visual.mjs will catch it.
 *
 * Two breakpoint systems are in play and they do not line up. Layout follows Elementor's
 * container widths (1024 / 767). Typography follows the theme's ramp (1440 / 1024 / 991 / 767).
 * Keep them separate or you will "tidy" one into the other and shift type at the wrong width.
 */

/* --- theme shell -------------------------------------------------------------------------- */
/*
 * The theme constrains .haru-page to 1170px, and only widens it for pages carrying the
 * `elementor-page` body class:
 *     .elementor-page .haru-container.haru-page { max-width: none }
 *     .elementor-page .page-content             { padding: 0; margin-bottom: 0 }
 * v2 is deliberately NOT an Elementor page, so it would render 270px narrower than v1 — the
 * single largest visual difference found when this was first deployed. The plugin adds its own
 * body class and the same two rules are restated here, so the full-bleed layout is a property of
 * this page rather than a side effect of a page builder.
 */
body.printman-sticker-calculator-page .haru-container.haru-page {
  max-width: none;
}

body.printman-sticker-calculator-page .page-content {
  padding: 0;
  margin-bottom: 0;
}

.pmc-page,
.pmc-page * {
  box-sizing: border-box;
}

/* --- boxed container ---------------------------------------------------------------------- */
/* Mirrors Elementor's .e-con-boxed: full-bleed outer with 10px gutters, 1140px inner. */

.pmc-section {
  display: flex;
  flex-direction: column;
  padding: 0 10px;
}

.pmc-section__inner {
  width: 100%;
  max-width: min(100%, 1140px);
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* The calculator sits in its own section; the content block follows with a 13px offset. */
.pmc-section--content {
  margin-top: 13px;
}

/*
 * A plain block box between the flex column and the calculator. .sp-wrap centres itself with
 * `margin: 0 auto`; as a direct flex item that auto margin shrink-to-fits it instead of letting
 * it fill the 1140px column. Elementor's widget div plays the same role on v1.
 */
.pmc-widget {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* --- content column ----------------------------------------------------------------------- */
/* The -30px pull tucks the copy up under the calculator card, as on v1. */

.pmc-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: -30px;
  padding: 0 4% 0 5%;
}

/* --- lead heading ------------------------------------------------------------------------- */
/* align-self:center makes it shrink-to-fit and centre, matching the Elementor widget. */

.pmc-lead {
  align-self: center;
  margin: 20px 0 10px;
  font-size: 48px;
  line-height: 1.25;
  font-weight: 700;
  color: #000;
}

.pmc-lead a {
  color: inherit;
  text-decoration: none;
}

.pmc-lead a:hover {
  color: #ff0d00;
}

/* --- feature pair ------------------------------------------------------------------------- */

.pmc-features {
  display: flex;
  flex-direction: row;
  gap: 0;
}

.pmc-feature {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 0;
  min-width: 0;
}

.pmc-feature:last-child {
  padding-bottom: 2%;
}

.pmc-feature__body {
  margin-top: 11px;
  padding: 0 10%;
  text-align: center;
}

.pmc-feature:last-child .pmc-feature__body {
  margin-top: 10px;
}

/*
 * line-height:1 with an inline-block glyph leaves the baseline gap the theme has, which is why
 * the box measures 50px for a 48px icon. Do not add vertical-align — it removes those 2px and
 * shifts everything below by the same amount.
 */
.pmc-feature__icon {
  display: block;
  font-size: 48px;
  line-height: 1;
  color: #000;
}

.pmc-feature__icon a {
  color: inherit;
  text-decoration: none;
}

.pmc-feature__title {
  margin: 20px 0 10px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: #000;
}

.pmc-feature__title a {
  color: inherit;
  text-decoration: none;
}

.pmc-feature__title a:hover {
  color: #ff0d00;
}

.pmc-feature__desc {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  color: #6b6b6b;
}

/* --- pill notes --------------------------------------------------------------------------- */
/* The grey chip the theme gives sub-heading-5; inline-block so it hugs its text. */

.pmc-noteline {
  text-align: center;
}

.pmc-note {
  display: inline-block;
  position: relative;
  margin: 10px 0;
  padding: 8px 18px;
  border-radius: 12px;
  background: #f8f8f8;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: #000;
}

.pmc-note__alert {
  color: #f00;
}

.pmc-note a {
  color: inherit;
  text-decoration: none;
}

.pmc-note a:hover {
  color: #ff0d00;
}

/* --- responsive: layout (Elementor breakpoints) ------------------------------------------- */

@media (max-width: 1024px) {
  .pmc-section__inner {
    max-width: min(100%, 1024px);
  }

  .pmc-content {
    padding: 0 10% 0 0;
  }
}

@media (max-width: 767px) {
  .pmc-section__inner {
    max-width: min(100%, 767px);
  }

  .pmc-content {
    padding: 0 3%;
  }

  /*
   * v1 puts -1% on the Elementor widget wrapper, which then collapses with the heading's own
   * 20px top margin: adjoining margins resolve to largest-positive + most-negative, so the real
   * value is 20px - 1%. There is no wrapper here, so say it directly. Writing plain
   * `margin-top: -1%` REPLACES the 20px and lifts the whole content block 20px — which is what
   * this did on the first pass.
   */
  .pmc-lead {
    margin-top: calc(20px - 1%);
    text-align: center;
  }

  .pmc-features {
    flex-wrap: wrap;
  }

  .pmc-feature {
    flex-basis: 100%;
  }

  .pmc-feature__body {
    padding: 0 0 6% 0;
  }

  .pmc-feature:last-child .pmc-feature__body {
    padding: 0;
  }

  .pmc-noteline--first {
    margin-top: -3%;
    padding: 5% 0 8%;
  }

  .pmc-noteline--second {
    margin-top: -3%;
    padding: 0 0 8%;
  }
}

/* --- responsive: typography (theme breakpoints) ------------------------------------------- */
/* Deliberately separate from the layout queries above — the theme ramps type at its own widths. */

@media (max-width: 1440px) {
  .pmc-lead { font-size: 36px; }
  .pmc-note { font-size: 17px; padding: 6px 18px; }
}

@media (max-width: 1024px) {
  .pmc-lead { font-size: 32px; }
  .pmc-note { font-size: 16px; }
}

@media (max-width: 991px) {
  .pmc-lead { font-size: 28px; }
}

@media (max-width: 767px) {
  .pmc-lead { font-size: 24px; }
}
