/* Shared contrast hover: add tt-button-contrast to a button in any language. */
:root {
  --tt-hover-duration: 0.3s;
  --tt-hover-easing: ease;
  --tt-button-hover-background: #000;
  --tt-button-hover-text: #fff;
  --tt-marquee-background: #071827;
  --tt-teal-button-hover-background: #fff;
  --tt-teal-button-hover-text: #12646c;
  --tt-white-button-hover-background: #12646c;
  --tt-white-button-hover-text: #fff;
}
/* All storefront buttons share the same timing in both interaction directions. */
@layer tt-teal-buttons {
  html body :is(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"], a.button, a.btn, a[class*="-btn"], a[class*="btn-"], a[class*="button"], a[class*="cta-primary"], a[class*="cta-secondary"], .tt-hero-copy a),
  html body :is(button, [role="button"], a.button, a.btn, a[class*="-btn"], a[class*="button"], .tt-hero-copy a) :is(svg, i) {
    transition: all 0.3s ease !important;
    transition-delay: 0s !important;
  }
  @media (prefers-reduced-motion: reduce) {
    html body :is(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"], a.button, a.btn, a[class*="-btn"], a[class*="btn-"], a[class*="button"], a[class*="cta-primary"], a[class*="cta-secondary"], .tt-hero-copy a),
    html body :is(button, [role="button"], a.button, a.btn, a[class*="-btn"], a[class*="button"], .tt-hero-copy a) :is(svg, i) {
      transition: none !important;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  :root { --tt-hover-duration: 0s; }
}
@layer tt-teal-buttons {
  .tt-button-white:not(:disabled):not(.disabled):not([aria-disabled="true"]):is(:hover, :active, :focus-visible) {
    background: var(--tt-white-button-hover-background) !important;
    border-color: var(--tt-white-button-hover-background) !important;
    color: var(--tt-white-button-hover-text) !important;
    -webkit-text-fill-color: var(--tt-white-button-hover-text) !important;
    filter: none !important;
  }
  .tt-button-white:not(:disabled):not(.disabled):not([aria-disabled="true"]):is(:hover, :active, :focus-visible) * {
    color: var(--tt-white-button-hover-text) !important;
    -webkit-text-fill-color: var(--tt-white-button-hover-text) !important;
  }
  .tt-button-teal:not(:disabled):not(.disabled):not([aria-disabled="true"]):is(:hover, :active, :focus-visible) {
    background: var(--tt-teal-button-hover-background) !important;
    border-color: var(--tt-teal-button-hover-text) !important;
    color: var(--tt-teal-button-hover-text) !important;
    -webkit-text-fill-color: var(--tt-teal-button-hover-text) !important;
    filter: none !important;
  }
  .tt-button-teal:not(:disabled):not(.disabled):not([aria-disabled="true"]):is(:hover, :active, :focus-visible) * {
    color: var(--tt-teal-button-hover-text) !important;
    -webkit-text-fill-color: var(--tt-teal-button-hover-text) !important;
  }
}
/* Catalogue marquee uses the same dark background as the other page marquees. */
.tt-marquee-theme {
  background: var(--tt-marquee-background) !important;
  color: #fff !important;
}
.tt-marquee-theme span {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
@layer tt-button-contrast {
  .tt-button-contrast {
    transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease, translate 300ms ease !important;
  }
  .tt-button-contrast:not(:disabled):not(.disabled):not([aria-disabled="true"]):is(:hover, :focus-visible) {
    background: var(--tt-button-hover-background) !important;
    border-color: var(--tt-button-hover-background) !important;
    color: var(--tt-button-hover-text) !important;
    -webkit-text-fill-color: var(--tt-button-hover-text) !important;
    filter: none !important;
  }
  .tt-button-contrast:not(:disabled):not(.disabled):not([aria-disabled="true"]):is(:hover, :focus-visible) * {
    color: var(--tt-button-hover-text) !important;
    -webkit-text-fill-color: var(--tt-button-hover-text) !important;
  }
  .tt-button-contrast:focus-visible { outline: 2px solid #aec9cc; outline-offset: 3px; }
  @media (prefers-reduced-motion: reduce) {
    .tt-button-contrast { transition: none !important; }
  }
}

/* Hero outline buttons use the white production-quote reference style. */
@layer tt-teal-buttons {
  html body :is(.tt-info-hero, .tt-category-hero, .tt-contact-hero, .tt-cat-hero, .tt-search-hero, .tt-blog-single-hero) :is(a.arrow-link, a.tt-hero-quote-btn) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    min-height: 42px !important;
    height: auto !important;
    max-width: 100%;
    padding: 10px 22px !important;
    border: 2px solid #ffffff !important;
    border-radius: 5px !important;
    background: #ffffff !important;
    color: #12646c !important;
    -webkit-text-fill-color: #12646c !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: .3px !important;
    text-transform: none !important;
    text-decoration: none !important;
    white-space: normal !important;
    text-align: center;
    box-shadow: none !important;
    transform: none !important;
    translate: none !important;
  }
  html body :is(.tt-info-hero, .tt-category-hero, .tt-contact-hero, .tt-cat-hero, .tt-search-hero, .tt-blog-single-hero) :is(a.arrow-link, a.tt-hero-quote-btn) .arrow-icon {
    display: none !important;
  }
  html body :is(.tt-info-hero, .tt-category-hero, .tt-contact-hero, .tt-cat-hero, .tt-search-hero, .tt-blog-single-hero) :is(a.arrow-link, a.tt-hero-quote-btn):is(:hover, :focus-visible) {
    background: #12646c !important;
    border-color: #12646c !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
  html body :is(.tt-info-hero, .tt-category-hero, .tt-contact-hero, .tt-cat-hero, .tt-search-hero, .tt-blog-single-hero) :is(a.arrow-link, a.tt-hero-quote-btn):focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
  }
}

/* Shared CTA section buttons; existing hover and focus styles stay in control. */
@layer tt-storefront-typography {
  html body :is(.tt-about-cta, .tt-legal-cta, .tt-cta-box, .tt-blog-cta) .tt-info-btn {
    box-sizing: border-box;
    border-radius: 5px !important;
    transition: 0.3s all;
    min-width: 200px !important;
  }
  html body :is(.tt-about-cta, .tt-legal-cta, .tt-cta-box, .tt-blog-cta) .tt-info-btn:not(:hover):not(:focus-visible):not(:active) {
    background: #cd8c09 !important;
    border: 2px solid #cd8c09 !important;
    color: #071827 !important;
    -webkit-text-fill-color: #071827 !important;
  }
  html body :is(.tt-about-cta, .tt-legal-cta, .tt-cta-box, .tt-blog-cta) .tt-info-btn:not(:hover):not(:focus-visible):not(:active) * {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
  }
  @media (prefers-reduced-motion: reduce) {
    html body :is(.tt-about-cta, .tt-legal-cta, .tt-cta-box, .tt-blog-cta) .tt-info-btn {
      transition: none;
    }
  }
}
