/* Shared geometry for action buttons and independent icon controls. */
:root {
  --rf-button-radius: 999px;
  --rf-button-height: 48px;
  --rf-button-padding: 20px;
  --rf-button-gap: 10px;
  --rf-button-ink: #092e48;
  --rf-button-gold: linear-gradient(90deg, #ff8324, #f8b538 95%);
}

:where(a,button):is(.cta-button,.button,.m97-toggle,.brand57-more,.b87-filter,.b87-reset,.rolodex-all,.promo59-variant):not(.header-write,.header-promo) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rf-button-gap);
  min-block-size: var(--rf-button-height);
  max-inline-size: 100%;
  padding-inline: var(--rf-button-padding);
  border-radius: var(--rf-button-radius);
  font: 700 14px/1.35 Manrope, sans-serif;
  text-align: center;
}

:where(a,button).cta-button:not(.header-write,.header-promo) {
  --rf82-hover-ink: var(--rf-button-ink);
  --rf82-fill: #f8b538;
  background: var(--rf-button-gold) !important;
  color: var(--rf-button-ink) !important;
}

:is(.header-promo,.header-write) {
  min-block-size: var(--rf-button-height);
  gap: var(--rf-button-gap);
  border-radius: var(--rf-button-radius);
}

:is(.dialog-close,.back-top,.rf-arrow,[data-rolodex-prev],[data-rolodex-next],.header-directions,.header-connect) {
  aspect-ratio: 1;
  border-radius: var(--rf-button-radius);
  align-items: center;
  justify-content: center;
}

:is(.dialog-close,.rf-arrow,[data-rolodex-prev],[data-rolodex-next]) {
  display: inline-grid;
  place-items: center;
  inline-size: var(--rf-button-height);
  block-size: var(--rf-button-height);
  padding: 0;
}

:is(.cta-button,.button,.m97-toggle,.brand57-more,.b87-filter,.b87-reset,.rolodex-all,.dialog-close,.back-top,.rf-arrow,[data-rolodex-prev],[data-rolodex-next]):focus-visible {
  outline: 2px solid #176b92;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}

@media (hover:hover) and (pointer:fine) {
  :where(a,button).cta-button:not(.header-write,.header-promo)[data-rf83-hover="classic"]:hover {
    background: #f8b538 !important;
  }
}

@media (hover:none), (pointer:coarse) {
  :where(a,button).cta-button:not(.header-write,.header-promo):active {
    background: #f8b538 !important;
  }
}

/* Match the corner geometry across shared and page-specific actions. */
:where(button, input[type="button"], input[type="submit"], [role="button"], a):is(
  button, input[type="button"], input[type="submit"], [role="button"],
  .button, .cta-button, .contact-action, .m97-primary, .pdf57-row,
  .catalogue-open, .collection106-cta, .back-top, .rolodex-all,
  .promo59-variant, .m97-open
):not(.m97-legend button) {
  border-radius: var(--rf-button-radius) !important;
}
/* Shared dimensions for labeled actions, including anchors that navigate. */
:is(a,button):is(.cta-button,.button,.m97-primary,.m97-toggle,.collection106-cta,.brand57-more,.b87-filter,.b87-reset,.rolodex-all,.promo59-variant) {
  box-sizing: border-box;
  min-height: var(--rf-button-height);
  height: auto;
  padding: 8px var(--rf-button-padding);
  align-items: center;
  gap: var(--rf-button-gap);
  font: 700 14px/1.35 Manrope, sans-serif;
}
:is(.m97-primary,.m97-actions .cta-button,.collection106-cta) svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

/* The offer spans both rows. The two companion links share one column. */
.home-page .home-hero-grid64 {
  display: grid;
  width: min(700px, 90%);
  max-width: 700px;
  height: auto;
  max-height: none;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 12px);
}
.home-page .home-hero-grid64 .home-promo57 {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding: clamp(12px, 2vw, 24px);
  min-height: clamp(222px, 24svh, 260px);
  gap: 6px;
}
.home-page .home-hero-grid64 .home-promo57 > a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}
.home-page .home-hero-grid64 .promo57-discount {
  font-size: clamp(48px, 12vw, 93px);
  line-height: .95;
  margin: auto 0;
}
.home-page .home-hero-grid64 .promo57-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.home-page .home-hero-grid64 .promo57-details > strong {
  font: 700 clamp(13px, 2vw, 17px)/1.35 var(--sans);
  max-width: none;
}
.home-page .home-hero-grid64 .promo57-details > span {
  white-space: normal;
  border: 0;
  padding: 0;
  font: 700 12px/1.35 var(--sans);
}
.home-page .home-hero-grid64 .home-hero-link64 {
  min-width: 0;
  min-height: 0;
  width: auto;
  height: auto;
  grid-column: 2;
  padding: clamp(12px, 2vw, 22px);
  white-space: normal;
}
.home-page .home-hero-grid64 .home-hero-map65 {
  grid-row: 1;
  background: #f6f8f7 !important;
  color: #092e48 !important;
}
.home-page .home-hero-grid64 .home-hero-map65 > span {
  font: 400 clamp(19px, 4vw, 32px)/1.05 var(--serif);
  white-space: normal;
}
.home-page .home-hero-grid64 .home-hero-map65 .home-map-icon71 {
  width: 38px;
  height: 46px;
  flex: 0 0 38px;
}
.home-page .home-hero-grid64 .home-hero-link64:last-child { grid-row: 2; }
@media (hover:hover) and (pointer:fine) {
  .home-page .home-hero-grid64 .home-hero-map65:not([data-rf83-hover="fill"]):hover { background: #e4edef !important; }
}
@media (max-width: 760px) {
  .home-page .home-hero-grid64 .promo57-discount {
    align-self: center;
    font-size: clamp(46px, 17vw, 80px);
  }
  .home-page .home-hero-grid64 .home-hero-map65 .home-map-icon71 {
    width: 26px;
    height: 30px;
    flex-basis: 30px;
  }
}
.m97-actions :is(.m97-primary,.cta-button) {
  block-size: var(--rf-button-height);
  min-block-size: var(--rf-button-height);
}
@media (min-width: 900px) {
  .home-page .home-hero-grid64 .home-hero-map65 > span { font-size: 28px; }
  .home-page .home-hero-grid64 .home-hero-map65 > span > br { display: none; }
}

/* Optical spacing for single-line pills. The minimum height can add to the
   vertical inset, so use the larger of that inset and the declared padding. */
:root {
  --rf-pill-line: 1lh;
  --rf-pill-cap: 1cap;
}
@supports not (width: 1cap) {
  :root { --rf-pill-cap: .72em; }
}
@supports not (width: 1lh) {
  :root { --rf-pill-line: 1.35em; }
}

:is(a,button):is(.cta-button,.button,.m97-primary,.m97-toggle,.collection106-cta,.brand57-more,.b87-filter,.b87-reset,.rolodex-all,.promo59-variant,.pdf118-link,.rf-product-contact-action):not([hidden]) {
  --rf-pill-x: var(--rf-button-padding);
  --rf-pill-y: 8px;
  --rf-pill-min: var(--rf-button-height);
  --rf-pill-border: 0px;
  --rf-pill-gap: var(--rf-button-gap);
  --rf-pill-inset: max(var(--rf-pill-y), calc((var(--rf-pill-min) - var(--rf-pill-line)) / 2 - var(--rf-pill-border)));
  --rf-pill-radius: calc(var(--rf-pill-inset) + var(--rf-pill-line) / 2);
  /* 1 − π/4 */
  --rf-pill-text-edge: calc(var(--rf-pill-x) + var(--rf-pill-radius) * .2146018366);
  padding-inline: var(--rf-pill-text-edge);
  column-gap: var(--rf-pill-gap);
}

.premium-header.classic-header .header-contact :is(.header-promo,.header-write).cta-button {
  --rf-pill-x: 16px;
  --rf-pill-y: 11px;
  --rf-pill-min: 46px;
  padding-inline: var(--rf-pill-text-edge);
}
.pdf118 :is(a,button).pdf118-link:not([hidden]) {
  --rf-pill-x: 16px;
  --rf-pill-border: 2px;
  padding-inline: var(--rf-pill-text-edge);
  column-gap: var(--rf-pill-gap);
}
:is(a,button).rf-product-contact-action:not([hidden]) {
  --rf-pill-x: 16px;
  --rf-pill-min: 44px;
  --rf-pill-gap: 8px;
  padding-inline: var(--rf-pill-text-edge);
  column-gap: var(--rf-pill-gap);
}
@media (max-width: 900px), (pointer: coarse) {
  .rf-product-contact :is(a,button).rf-product-contact-action {
    --rf-pill-x: 11px;
    --rf-pill-gap: 6px;
    padding-inline: var(--rf-pill-text-edge);
    column-gap: var(--rf-pill-gap);
  }
}

:is(a,button):is(.cta-button,.button):has(> :is(.whatsapp-official-symbol,[data-pill-circle])):not(.header-write,.header-promo) {
  padding-block: var(--rf-pill-y);
}

@media (max-width: 350px) {
  .rf-product-contact :is(a,button).rf-product-contact-action { --rf-pill-x: 8px; }
}

/* The stroke-only glyphs already have breathing room inside their viewBox. */
:is(.m97-primary,.m97-actions .cta-button,.collection106-cta,.pdf118-link):has(> svg, > .action-arrow > svg) {
  --rf-pill-gap: max(6px, calc(var(--rf-button-gap) - 2px));
}

:is(a,button):is(.cta-button,.button):has(> :is(.whatsapp-official-symbol,[data-pill-circle])),
.premium-header.classic-header .header-contact .header-write.cta-button {
  column-gap: max(var(--rf-pill-inset), calc(var(--rf-pill-x) - (var(--rf-pill-line) - var(--rf-pill-cap)) / 2));
}
:is(.cta-button,.button):has(> :is(.whatsapp-official-symbol,[data-pill-circle]):first-child),
.premium-header.classic-header .header-contact .header-write.cta-button {
  padding-inline-start: var(--rf-pill-x);
}
:is(.cta-button,.button):has(> :is(.whatsapp-official-symbol,[data-pill-circle]):last-child) {
  padding-inline-end: var(--rf-pill-x);
}
:is(.cta-button,.button) > :is(.whatsapp-official-symbol,[data-pill-circle]) {
  inline-size: var(--rf-pill-line);
  block-size: var(--rf-pill-line);
  flex: 0 0 var(--rf-pill-line);
  align-self: center;
}
:is(.cta-button,.button) > :is(.whatsapp-official-symbol,[data-pill-circle]):first-child {
  margin-inline-start: calc(var(--rf-pill-inset) - var(--rf-pill-x));
}
:is(.cta-button,.button) > :is(.whatsapp-official-symbol,[data-pill-circle]):last-child {
  margin-inline-end: calc(var(--rf-pill-inset) - var(--rf-pill-x));
}
.premium-header.classic-header .header-contact .header-write > .whatsapp-official-symbol {
  width: var(--rf-pill-line);
  height: var(--rf-pill-line);
  flex-basis: var(--rf-pill-line);
}

/* Keep the existing circular control sizes and center their artwork. */
:is(.dialog-close,.back-top,.rf-arrow,[data-rolodex-prev],[data-rolodex-next],.header-directions,.header-connect,.rf-request-close) {
  box-sizing: border-box;
  align-items: center;
  justify-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
}
:is(.dialog-close,.back-top,.rf-arrow,[data-rolodex-prev],[data-rolodex-next],.header-directions,.header-connect,.rf-request-close) > :is(svg,img) {
  display: block;
  margin: auto;
}
.classic-header :is(.header-directions,.header-connect) { padding: 0; }
