/* H M Pharma Machines — shared accessibility improvements. */
:root {
  --hm-a11y-orange: #a84400;
  --hm-a11y-orange-hover: #7d3100;
  --hm-a11y-green: #0b713b;
  --hm-a11y-green-hover: #07562c;
  --hm-a11y-navy: #102a43;
  --hm-btn-orange: #a84400;
  --hm-btn-orange-hover: #7d3100;
  --hm-btn-green: #0b713b;
  --hm-btn-green-hover: #07562c;
  --hm-header-orange: #a84400;
  --hm-header-orange-dark: #7d3100;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  max-width: calc(100vw - 20px);
  padding: 12px 16px;
  border: 3px solid var(--hm-a11y-orange);
  border-radius: 6px;
  background: #fff;
  color: var(--hm-a11y-navy);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  color: var(--hm-a11y-navy);
  outline: 3px solid #fff;
  outline-offset: 2px;
  transform: translateY(0);
}

main[tabindex="-1"]:focus {
  outline: none;
}

/* White on #a84400 is 6.01:1, comfortably above WCAG AA. */
.button:where(:not(.button-green):not(.green):not(.whatsapp):not(.button-white):not(.white):not(.button-outline):not(.button-light):not(.video-button)),
.button-primary,
.button-orange,
.button.primary,
.btn:not(.btn-light):not(.btn-outline),
.nav-cta,
.modal button[type="submit"] {
  border-color: var(--hm-a11y-orange) !important;
  background: var(--hm-a11y-orange) !important;
  color: #fff !important;
}

body > header .header-inner > nav > .nav-cta,
body > .site-header .header-inner > nav > .nav-cta {
  border-color: var(--hm-a11y-orange) !important;
  background: var(--hm-a11y-orange) !important;
  color: #fff !important;
}

.button:where(:not(.button-green):not(.green):not(.whatsapp):not(.button-white):not(.white):not(.button-outline):not(.button-light):not(.video-button)):hover,
.button-primary:hover,
.button-orange:hover,
.button.primary:hover,
.btn:not(.btn-light):not(.btn-outline):hover,
.nav-cta:hover,
.modal button[type="submit"]:hover {
  border-color: var(--hm-a11y-orange-hover) !important;
  background: var(--hm-a11y-orange-hover) !important;
  color: #fff !important;
}

body > header .header-inner > nav > .nav-cta:hover,
body > .site-header .header-inner > nav > .nav-cta:hover,
body > header .header-inner > nav > .nav-cta:focus-visible,
body > .site-header .header-inner > nav > .nav-cta:focus-visible {
  border-color: var(--hm-a11y-orange-hover) !important;
  background: var(--hm-a11y-orange-hover) !important;
  color: #fff !important;
}

/* White on #0b713b is 6.11:1. Keep WhatsApp/direct-response actions AA. */
.button-green,
.button.green,
.button.whatsapp,
.floating,
.floating-whatsapp {
  border-color: var(--hm-a11y-green) !important;
  background: var(--hm-a11y-green) !important;
  color: #fff !important;
}

.button-green:hover,
.button.green:hover,
.button.whatsapp:hover,
.floating:hover,
.floating-whatsapp:hover {
  border-color: var(--hm-a11y-green-hover) !important;
  background: var(--hm-a11y-green-hover) !important;
  color: #fff !important;
}

/* Orange used as foreground text needs a darker token on light surfaces. */
.kicker,
.category,
.step,
.station-number,
.feature .icon,
.related::before,
.breadcrumbs a:hover,
.breadcrumb a:hover,
.directory-links a:hover,
.watch-link,
.card-body h2 a:hover {
  color: var(--hm-a11y-orange) !important;
}

.section-kicker,
.number,
.part-index,
.guide-number,
.model > strong,
.quick-answer strong,
.blog-card-meta span,
.section-heading > p,
.video-card .card-body > span {
  color: var(--hm-a11y-orange) !important;
}

.check {
  color: var(--hm-a11y-green) !important;
}

#products .section-kicker,
.dark-section .section-kicker,
.navy-section .kicker,
.process .kicker,
.process-section .kicker,
.process-section .section-kicker,
.factor-card .number,
.part-card .number {
  color: #ffc28e !important;
}

.guide-kicker {
  color: var(--hm-a11y-orange) !important;
}

.process-section .step strong,
.video-card .play {
  background: var(--hm-a11y-orange) !important;
  color: #fff !important;
}

.breadcrumbs,
.breadcrumb {
  color: #526475 !important;
}

.gallery-guide-links a,
.video-library-links a,
.detail-actions a:not(:last-child),
.deferred-video-error a,
.deferred-video-play-icon {
  border-color: var(--hm-a11y-orange) !important;
  background: var(--hm-a11y-orange) !important;
  color: #fff !important;
}

.gallery-guide-links a:hover,
.video-library-links a:hover,
.detail-actions a:not(:last-child):hover,
.deferred-video-error a:hover {
  border-color: var(--hm-a11y-orange-hover) !important;
  background: var(--hm-a11y-orange-hover) !important;
  color: #fff !important;
}

.quote-band .button,
.cta-band .button {
  border-color: #fff !important;
  background: #fff !important;
  color: var(--hm-a11y-orange-hover) !important;
}

.quote-band .button:hover,
.cta-band .button:hover {
  border-color: #fff !important;
  background: #fff8f1 !important;
  color: #622600 !important;
}

.modal .modal-card {
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}

.table-wrap[tabindex="0"]:focus-visible {
  outline: 3px solid var(--hm-a11y-orange);
  outline-offset: 3px;
}

.table-swipe-hint {
  display: none;
  margin: 0 0 10px;
  color: #40566a;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

@media (max-width: 720px) {
  .table-swipe-hint:not([hidden]) {
    display: block;
  }

  .menu-toggle,
  .nav-dropdown-toggle,
  .nav-cta,
  .button,
  .btn,
  button,
  summary,
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
  select,
  textarea,
  .modal-close,
  .close,
  .lightbox-close,
  .gallery-open,
  .floating,
  .floating-whatsapp {
    box-sizing: border-box;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  nav a,
  .site-nav a,
  .topbar a,
  footer a,
  .footer-links a,
  .footer-contact a,
  .contact-links a,
  a[href^="tel:"] {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    min-height: 44px !important;
  }

  /* Inline navigation links also need a dependable touch area on small screens. */
  .breadcrumbs a,
  .breadcrumb a,
  .product-card li > a,
  .directory-links > a,
  .card-body h2 a,
  .watch-link,
  main p > a,
  article a,
  aside a,
  td a,
  th a,
  .blog-card-body a,
  .hm-privacy-notice a,
  .compact-links a,
  a[href^="mailto:"] {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    min-width: 44px !important;
    min-height: 45px !important;
  }

  .gallery-home-card > a {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-home-card h3 {
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .directory-links > a,
  .watch-link,
  .card-body h2 a {
    width: 100%;
  }

  .nav-dropdown-menu a {
    width: 100%;
  }

  body > header .header-inner > nav > a,
  body > .site-header .header-inner > nav > a,
  body > header .nav-dropdown-toggle,
  body > .site-header .nav-dropdown-toggle {
    min-height: 44px !important;
  }
}

/* Secure inquiry forms, optional upload and submit-adjacent privacy notice. */
.hm-file-field {
  margin-top: 14px;
}

.hm-file-field label,
.hm-upload-label {
  display: block;
  margin: 0 0 6px;
  color: var(--hm-a11y-navy);
  font-weight: 700;
}

.hm-file-field input[type="file"],
input.hm-upload-input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 10px;
  border: 1px solid #a9b8c4;
  border-radius: 6px;
  background: #fff;
  color: #183042;
  font: inherit;
}

.hm-file-field input[type="file"]:focus-visible,
input.hm-upload-input[type="file"]:focus-visible {
  border-color: var(--hm-a11y-orange);
  outline: 3px solid rgba(168, 68, 0, 0.22);
  outline-offset: 1px;
}

.hm-form-help {
  margin: 6px 0 0 !important;
  color: #40566a !important;
  font-size: 0.84rem;
  line-height: 1.45;
}

.hm-privacy-notice {
  margin: 14px 0 12px !important;
  color: #334e63 !important;
  font-size: 0.86rem;
  line-height: 1.55;
}

.hm-privacy-notice a,
.footer-privacy a {
  color: #7d3100;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hm-form-status {
  min-height: 1.4em;
  margin: 8px 0 0 !important;
  color: #40566a !important;
  font-size: 0.86rem;
  line-height: 1.45;
}

.hm-form-status:empty {
  display: none;
}

.hm-form-status-error {
  color: #8b1d1d !important;
  font-weight: 700;
}

form button[type="submit"]:disabled,
form input[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.68;
}

.hm-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.footer-privacy {
  padding: 0 16px 18px;
  text-align: center;
  font-size: 0.9rem;
}

footer .footer-privacy a {
  color: inherit;
}

.hm-consent-settings {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  margin-left: 12px;
  padding: 10px 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hm-consent-settings:focus-visible,
.hm-consent-button:focus-visible,
.hm-map-load:focus-visible {
  outline: 3px solid #193b56;
  outline-offset: 3px;
}

.hm-consent-panel {
  position: fixed;
  z-index: 10000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #9bacb8;
  border-radius: 12px;
  background: #fff;
  color: #183042;
  box-shadow: 0 14px 44px rgba(16, 42, 67, 0.28);
}

.hm-consent-panel[hidden] {
  display: none;
}

.hm-consent-copy {
  max-width: 720px;
}

.hm-consent-copy h2 {
  margin: 0 0 7px;
  color: #102a43;
  font-size: 1.18rem;
}

.hm-consent-copy p {
  margin: 0;
  color: #334e63;
  font-size: 0.92rem;
  line-height: 1.55;
}

.hm-consent-copy a {
  color: #7d3100;
  font-weight: 700;
  text-decoration: underline;
}

.hm-consent-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.hm-consent-button {
  min-height: 44px;
  border: 2px solid #9d3e00;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 15px;
}

.hm-consent-reject {
  background: #fff;
  color: #7d3100;
}

.hm-consent-accept {
  background: #9d3e00;
  color: #fff;
}

.hm-map-consent {
  overflow: hidden;
  border: 1px solid #c8d3dc;
  border-radius: 12px;
  background: #f3f7f9;
}

.hm-map-intro {
  padding: 24px;
  text-align: center;
}

.hm-map-consent > h3,
.hm-map-consent > p,
.hm-map-consent > .hm-map-load {
  margin-left: 24px;
  margin-right: 24px;
}

.hm-map-consent > h3 {
  margin-top: 24px;
  margin-bottom: 8px;
}

.hm-map-consent > p {
  margin-top: 0;
  margin-bottom: 15px;
  color: #40566a;
  line-height: 1.55;
}

.hm-map-consent > .hm-map-load {
  margin-bottom: 24px;
}

.hm-map-intro h3 {
  margin: 0 0 8px;
  color: #102a43;
}

.hm-map-intro p {
  margin: 0 auto 15px;
  max-width: 650px;
  color: #40566a;
  line-height: 1.55;
}

.hm-map-load {
  min-height: 44px;
  border: 2px solid #9d3e00;
  border-radius: 6px;
  background: #9d3e00;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 17px;
}

.hm-map-fallback {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: 10px;
  color: #7d3100;
  font-weight: 800;
  text-decoration: underline;
}

.hm-map-status {
  margin: 10px 0 0;
  font-size: 0.88rem;
}

.hm-map-frame iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

.hm-map-consent.is-loaded .hm-map-intro {
  padding-bottom: 16px;
}

.hm-map-summary {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 28px;
  background: #edf4f7;
}

.hm-map-summary h3 {
  margin: 0 0 9px;
  color: #102a43;
}

.hm-map-summary p {
  margin: 0 0 18px;
  color: #40566a;
  line-height: 1.55;
}

/* Keep article-card links large enough for touch and switch users. */
.read-more {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

@media (max-width: 760px) {
  .hero .hero-visual {
    padding-bottom: 72px;
  }

  .hero .hero-visual > .hero-badge {
    box-sizing: border-box;
    width: max-content;
    max-width: calc(100% - 16px);
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
    text-align: center;
  }

  .hm-consent-panel {
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: block;
    max-height: calc(100vh - 20px);
    overflow: auto;
    padding: 17px;
  }

  .hm-consent-actions {
    justify-content: stretch;
    margin-top: 15px;
  }

  .hm-consent-button {
    flex: 1 1 210px;
  }

  .hm-map-fallback {
    display: flex;
    justify-content: center;
    margin: 8px 0 0;
  }

  .hm-map-frame iframe {
    min-height: 340px;
  }
}
