/*
 * Temporary compatibility rules used while the WordPress homepage is migrated.
 * Keep this file separate from the mirrored Autoptimize bundle so each change is
 * easy to review and remove when the legacy CSS is rebuilt.
 */

@font-face {
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("legacy/wp-content/self/fa-solid-900.woff2") format("woff2");
}

.fa,
.fas {
  display: inline-block;
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-variant: normal;
  font-weight: 900;
  line-height: 1;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fa-plus::before {
  content: "\f067";
}

.fa-minus::before {
  content: "\f068";
}

.static-contact-cta {
  width: min(100% - 32px, 720px);
  margin: 28px auto 18px;
  padding: 28px;
  text-align: center;
  background: #f4f8f3;
  border: 1px solid #dce8da;
  border-radius: 10px;
}

.static-contact-cta p {
  margin: 0 0 18px;
}

.static-contact-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  color: #fff !important;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none !important;
  background: #27734f;
  border-radius: 5px;
}

.static-contact-button:hover,
.static-contact-button:focus-visible {
  color: #fff !important;
  background: #185d3d;
}

/* WCAG AA contrast for green headings, inline prices, and commerce actions. */
.headline-1 {
  background-color: #176b2a;
}

.headline-1::before {
  border-top-color: #0f4d1e;
}

[style*="#2b932d"] {
  color: #176b2a !important;
}

.uagb-infobox-cta-link.wp-block-button__link {
  color: #fff !important;
  background-color: #176b2a !important;
}

.uagb-buttons-repeater .uagb-button__link {
  color: #fff !important;
  background-color: #176b2a !important;
}

/* Make review actions comfortable touch targets without changing their text. */
.sankou {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.sankou input,
.sankou a,
#review-search {
  position: relative;
  z-index: 1;
  min-height: 44px !important;
}

.sankou input {
  margin-right: 0 !important;
}

.sankou a {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
}

.sankou span {
  flex-basis: 100%;
}

#review-search {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* Prefer smaller WebP derivatives while retaining the mirrored originals. */
.wp-block-uagb-container.uagb-block-a32c3c0b {
  background-image: url("legacy/wp-content/uploads/2022/01/green-back-scaled.jpg");
  background-image: image-set(
    url("legacy/wp-content/uploads/2022/01/green-back-scaled.webp") type("image/webp"),
    url("legacy/wp-content/uploads/2022/01/green-back-scaled.jpg") type("image/jpeg")
  );
}

.top-spins-campaign {
  background-image: url("legacy/wp-content/uploads/2023/06/spins-3.png");
  background-image: image-set(
    url("legacy/wp-content/uploads/2023/06/spins-3.webp") type("image/webp"),
    url("legacy/wp-content/uploads/2023/06/spins-3.png") type("image/png")
  );
}

/* Skip layout and paint work for sections that start below the viewport. */
.uagb-block-02fb1427,
.uagb-block-88be0da6,
.uagb-block-07d48eb5,
.uagb-block-462acbc3,
.uagb-block-98005e9e,
.uagb-block-83fde431,
.uagb-block-d8e080b3 {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 600px) {
  .static-contact-cta {
    width: min(100% - 20px, 720px);
    padding: 22px 16px;
  }

  .static-contact-button {
    width: 100%;
  }
}
