/* Amer benefits — the template's box-icon_V01: an icon, a title and a line of
 * text, repeated (4 in both demos), inside a Swiper that shows every item
 * from 1200px (data-preview="4") and self-locks its pagination/arrows there
 * (core.css .swiper-pagination-lock / .swiper-button-lock), so it is
 * only a slider on narrower screens — exactly the template's own carousel.js
 * breakpoints (575 / 768 / 1200 / 1600), with its data-pagination* steps
 * (1 / 2 / 3 / 4 slides per swipe and per dot).
 *
 * Base sizing here is the plain box-icon_V01 (home-cosmetic ~2651: h6 title,
 * 40px icon growing to 48px from 992px, icon margin-bottom 20px) — exactly
 * design 2's numbers, so benefits-2.css overrides nothing but spacing.
 * benefits-1.css (design 1) adds the "style-2" deltas the
 * home-electronics block uses (~4794): a bigger icon from 1200px and a
 * smaller icon margin. See each design sheet's own comment for the measured
 * numbers.
 */
.amer-benefits__slider { position: relative; }
/* Found while re-measuring after review: the template's row-equalising
 * mechanism is `.tf-swiper .swiper-slide{height:auto} .tf-swiper
 * .swiper-slide > *{height:100%}` (styles.css ~506) — an unqualified
 * `height:100%` on `.swiper-slide` (the shared swiper-bundle default) does
 * NOT reliably stretch to the flex row's height in this browser, only an
 * explicit `auto` does, so without this rule a swiper-slide whose row-mate
 * wraps to an extra text line (e.g. a longer merchant title) stays at its
 * own shorter content height instead of matching the row — own measure run,
 * cosmetic content design 2 at 1200/991/768/575px: template slide 156/148px,
 * theme slide 130/122px (26px short) before this rule, 0px difference after.
 * Scoped to this section's own swiper class, not core.css. */
.amer-benefits__swiper .swiper-slide { block-size: auto; }
/* A plain block, as the template's <div class="box-icon_V01"> is
 * (text-align:center; position:relative): the inline-flex icon centres on
 * its own line and the content block takes the card's full width, so a
 * longer merchant title wraps at the card's width. Measured 2026-09-22:
 * display block / position relative on both pages at every width. */
.amer-benefits__item {
  display: block;
  position: relative;
  block-size: 100%;
  text-align: center;
}
.amer-benefits__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  /* The template never resets the icon's line-height: it keeps the body's
     own (16px * 1.625 = 26px, fixed regardless of the icon's own font-size).
     Matching that literally, not a ratio recomputed at 40/48/60px. */
  line-height: calc(var(--amer-fs-body) * var(--amer-lh-body));
  color: var(--amer-heading);
  margin-block-end: 20px;
  transition: transform .5s ease;
}
.amer-benefits__icon .ai { display: block; }
.amer-benefits__icon img { display: block; inline-size: 48px; block-size: 48px; object-fit: contain; }
/* The template's spring (cubic-bezier .47,2.02,.31,-.36) is on the :hover
   rule only, so it springs up on the way in and eases back (.5s ease, the
   base rule's) on the way out — measured 150ms after the pointer leaves:
   template scale 1.037, theme 1.015 while the spring sat on the base rule
   too; same after this split. */
@media (hover: hover) {
  .amer-benefits__item:hover .amer-benefits__icon {
    transform: scale(1.1);
    transition-timing-function: cubic-bezier(.47, 2.02, .31, -.36);
  }
}
.amer-benefits__content { display: block; }
.amer-benefits__title {
  margin: 0 0 8px;
  font-family: var(--amer-font-heading);
  font-weight: var(--amer-fw-heading);
  letter-spacing: var(--amer-ls-heading);
  font-size: var(--amer-fs-h6);
  line-height: 1.4;
  color: var(--amer-heading);
}
.amer-benefits__text {
  margin: 0;
  font-size: var(--amer-fs-body);
  line-height: var(--amer-lh-body);
  color: var(--amer-muted);
}
@media (min-width: 992px) {
  .amer-benefits__icon { font-size: 48px; }
}
/* shared .amer-lines carries no margin by default; the template's own
   .tf-sw-pagination:not(.swiper-pagination-lock) is 20px (styles.css ~8273),
   same override every other Amer slider with line pagination uses. */
.amer-benefits__dots { margin-block-start: 20px; }

/* The template's inner block and its hairline (home-electronics ~4786:
 * `.position-relative.flat-spacing.pb-0` > `.br-line.fake-class.top-0`):
 * a 1px var(--line) rule across the container's width at the block's top,
 * then flat-spacing's own top spacing (80px, 60px at 991px and below, 40px
 * at 425px and below — styles.css ~1121) before the row, and none after it
 * (pb-0). Only with `top_line` on (.amer-benefits--line); off, the inner
 * block adds nothing, as on the cosmetic page. */
.amer-benefits__inner { position: relative; }
.amer-benefits__rule {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  display: flex;
  block-size: 1px;
  background-color: var(--amer-line);
}
.amer-benefits--line .amer-benefits__inner { padding-block-start: 80px; }
@media (max-width: 991px) {
  .amer-benefits--line .amer-benefits__inner { padding-block-start: 60px; }
}
@media (max-width: 425px) {
  .amer-benefits--line .amer-benefits__inner { padding-block-start: 40px; }
}
