/* QR, public assistance and media cards: presentation only, scanner APIs unchanged. */
.home-redesign .home-hero-links [hidden] { display: none !important; }
.home-redesign .home-search { border: 2px solid #f7df22; padding: 6px; box-shadow: 0 10px 30px #0003; }
.home-redesign .home-search button { min-height: 50px; height: auto; min-width: 176px; padding: 12px 15px; gap: 10px; font-size: 14px; line-height: 1.4; }
.home-redesign .home-search button span { display: inline; }
.home-redesign .home-hero-links #openCatalogHero { min-height: 46px; padding: 10px 16px; border: 1px solid #ffffff60; border-radius: 4px; color: #fff; background: #ffffff0a; }
.home-redesign .home-hero-links #openContactHero { min-height: 46px; }
.home-redesign .home-qr-action { display: none; width: min(550px, 100%); margin-top: 12px; padding: 14px 16px; grid-template-columns: 40px minmax(0, 1fr) 22px; gap: 13px; align-items: center; border: 1px solid #f7df22; border-radius: 5px; background: #f7df22; color: #1a1d1b; text-align: left; cursor: pointer; }
.home-redesign .home-qr-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #1a1d1b35; border-radius: 4px; }
.home-redesign .home-qr-icon svg { width: 28px; height: 28px; }
.home-redesign .home-qr-copy { display: grid; min-width: 0; gap: 3px; }
.home-redesign .home-qr-copy strong { font-size: 16px; line-height: 1.35; font-weight: 800; }
.home-redesign .home-qr-copy small { color: #454622; font-size: 12px; line-height: 1.5; }
.catalog-redesign #machineHelpRescan { display: none; }

.catalog-redesign #machineHelpModal { --help-ink: #1a1d1b; --help-yellow: #f7df22; --help-paper: #f4f4ef; padding: 20px; }
.catalog-redesign #machineHelpModal [hidden] { display: none !important; }
.catalog-redesign #machineHelpModal .machine-help-backdrop { background: #151914b3; backdrop-filter: blur(5px); }
.catalog-redesign #machineHelpModal .machine-help-panel { display: flex; flex-direction: column; width: min(820px, 100%); max-height: calc(100dvh - 40px); height: auto; border: 1px solid #cdd2c6; border-radius: 7px; background: var(--help-paper); box-shadow: 0 25px 90px #080e0840; }
.catalog-redesign #machineHelpModal .machine-help-header { flex: none; align-items: start; gap: 18px; padding: 26px; border-bottom: 3px solid var(--help-yellow); background: var(--help-ink); color: #fff; }
.catalog-redesign #machineHelpModal .machine-help-header > div { min-width: 0; isolation: isolate; }
.catalog-redesign #machineHelpModal .machine-help-header .eyebrow { margin: 0 0 9px; color: var(--help-yellow); font-size: 10px; line-height: 1.5; letter-spacing: .14em; font-weight: 800; text-transform: uppercase; }
.catalog-redesign #machineHelpModal .machine-help-header h2 { margin: 0; color: #fff; font-size: clamp(24px, 3vw, 34px); line-height: 1.12; letter-spacing: -.04em; font-weight: 850; overflow-wrap: anywhere; }
.catalog-redesign #machineHelpModal [data-close-machine-help].icon-button { position: relative; z-index: 500; flex: 0 0 48px; width: 48px; height: 48px; min-height: 48px; padding: 12px; border: 1px solid #ffffff35; border-radius: 4px; background: #30362d; color: #fff; touch-action: manipulation; }
.catalog-redesign #machineHelpModal [data-close-machine-help].icon-button > * { pointer-events: none; }
.catalog-redesign #machineHelpModal .machine-help-body { flex: 1 1 auto; min-height: 0; max-height: none; padding: 24px; overflow-x: hidden; overscroll-behavior: contain; }
.catalog-redesign #machineHelpModal .machine-help-camera { border: 1px solid #4c5547; border-radius: 5px; background: #1a1d1b; }
.catalog-redesign #machineHelpModal .machine-help-scan-frame { border-width: 2px; border-radius: 4px; box-shadow: 0 0 0 999px #10161055; pointer-events: none; }
.catalog-redesign #machineHelpModal .machine-help-status { margin: 14px 0; padding: 12px 14px; border-left: 3px solid #d9c115; border-radius: 3px; color: #46503e; background: #eeefe6; font-size: 14px; font-weight: 550; line-height: 1.6; text-align: left; }
.catalog-redesign #machineHelpModal .machine-help-manual { padding: 20px; border-color: #dce0d5; border-radius: 5px; background: #fff; }
.catalog-redesign #machineHelpModal .machine-help-manual label { margin-bottom: 10px; color: #283222; font-size: 14px; font-weight: 750; }
.catalog-redesign #machineHelpModal .machine-help-manual input { border-color: #cfd7c5; border-radius: 4px; color: #202a1a; min-height: 48px; font-size: 16px; }
.catalog-redesign #machineHelpModal :is(.button, .machine-help-back) { min-height: 48px; border: 1px solid #cfd7c5; border-radius: 4px; padding: 12px 16px; gap: 10px; color: #26321e; background: #fff; font-size: 14px; line-height: 1.4; font-weight: 750; white-space: normal; transition: background 160ms ease, border-color 160ms ease; }
.catalog-redesign #machineHelpModal .button.primary { border-color: #ddc515; background: var(--help-yellow); color: #181d15; box-shadow: none; }
.catalog-redesign #machineHelpModal .button:disabled { opacity: .55; cursor: wait; }
.catalog-redesign #machineHelpModal .machine-help-rescan { justify-self: start; align-items: center; }
.catalog-redesign #machineHelpModal .machine-help-machine-card { padding: 22px; border-color: #dce0d5; border-radius: 5px; background: #fff; }
.catalog-redesign #machineHelpModal .machine-help-machine-card > span { width: 56px; height: 56px; border-radius: 4px; background: var(--help-ink); color: var(--help-yellow); }
.catalog-redesign #machineHelpModal .machine-help-machine-card > div { min-width: 0; }
.catalog-redesign #machineHelpModal .machine-help-machine-card .eyebrow { margin: 0 0 8px; color: #657158; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.catalog-redesign #machineHelpModal .machine-help-machine-card h3 { margin: 0; color: #20271c; font-size: 24px; line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.catalog-redesign #machineHelpModal .machine-help-machine-card small { color: #657158; font-size: 12px; font-weight: 650; }
.catalog-redesign #machineHelpModal .machine-help-portal-note { padding: 14px 16px; border: 1px solid #dce0d5; border-radius: 4px; background: #eaede3; color: #5c6751; font-size: 13px; font-weight: 500; line-height: 1.6; text-align: left; }
.catalog-redesign :is(#machineHelpModal, #productModal) :is(.machine-help-section-title, .machine-help-inline-heading) { color: #303b27; }
.catalog-redesign #machineHelpModal .machine-help-section-title { gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #d6ddce; }
.catalog-redesign #machineHelpModal .machine-help-section-title h3 { color: #27331e; font-size: 19px; font-weight: 800; letter-spacing: -.025em; }
.catalog-redesign :is(#machineHelpModal, #productModal) .public-video-card { grid-template-columns: 48px minmax(0, 1fr) 20px; gap: 14px; padding: 17px; border-color: #dce0d5; border-radius: 5px; background: #fff; color: #20271c; box-shadow: 0 2px 0 #20291b05; }
.catalog-redesign :is(#machineHelpModal, #productModal) .public-video-card-icon { width: 48px; height: 48px; border-radius: 4px; background: #1a1d1b; color: #f7df22; }
.catalog-redesign :is(#machineHelpModal, #productModal) .public-document-card .public-video-card-icon { border: 1px solid #e6e3bd; background: #faf6d6; color: #4c512a; }
.catalog-redesign :is(#machineHelpModal, #productModal) .public-video-card-icon svg { fill: none; }
.catalog-redesign :is(#machineHelpModal, #productModal) .public-video-card-copy { gap: 6px; }
.catalog-redesign :is(#machineHelpModal, #productModal) .public-video-card-copy strong { color: #20271c; font-size: 16px; line-height: 1.4; font-weight: 750; overflow: visible; overflow-wrap: anywhere; }
.catalog-redesign :is(#machineHelpModal, #productModal) .public-video-card-copy span { color: #626e58; font-size: 13px; line-height: 1.5; white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.catalog-redesign :is(#machineHelpModal, #productModal) .public-video-card-copy small { color: #6b745f; font-size: 11px; font-weight: 650; }
.catalog-redesign :is(#machineHelpModal, #productModal) :is(.machine-help-empty, .machine-help-loading) { min-height: 150px; padding: 24px; gap: 12px; border: 1px dashed #cdd4c4; border-radius: 5px; background: #fff; color: #606d54; font-size: 14px; line-height: 1.5; }
.catalog-redesign :is(#machineHelpModal, #productModal) .machine-help-empty.compact { min-height: 112px; }
.catalog-redesign #machineHelpModal .site-inline-spinner { border-top-color: #8b7e13; }
.catalog-redesign :is(#machineHelpModal, #productModal) :is(.public-video-card, .button, .machine-help-back, input, .icon-button):focus-visible { outline: 3px solid #48799a; outline-offset: 3px; }
.catalog-redesign #publicVideoPlayer .public-video-close { z-index: 500; width: 48px; height: 48px; min-height: 48px; border: 1px solid #ffffff55; border-radius: 4px; background: #30362ded; color: #fff; }
.catalog-redesign #publicVideoPlayer .public-video-close > * { pointer-events: none; }
.catalog-redesign #publicVideoPlayer .public-video-caption strong { color: #fff; font-size: 18px; font-weight: 750; }
.catalog-redesign #publicVideoPlayer .public-video-caption span { color: #d0d6c9; }

/* Responsive mobile/tablet UI, including large touch tablets in landscape. */
@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  .home-redesign .home-qr-action { display: grid; }
  .catalog-redesign #machineHelpRescan:not([hidden]) { display: inline-flex; }
}
@media (max-width: 540px) {
  .home-redesign .home-search { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 5px 0; padding: 7px; }
  .home-redesign .home-search > svg { margin: 0 4px; }
  .home-redesign .home-search input { width: 100%; height: 42px; }
  .home-redesign .home-search input::placeholder { font-size: 12px; }
  .home-redesign .home-search button { grid-column: 1 / -1; width: 100%; min-width: 0; min-height: 48px; justify-content: space-between; }
  .home-redesign .home-qr-action { padding: 12px; gap: 10px; }
  .home-redesign .home-qr-copy strong { font-size: 15px; }
  .home-redesign .home-qr-copy small { font-size: 11px; }
  .home-redesign .home-hero-links { align-items: center; gap: 10px 16px; }
  .home-redesign .home-hero-links #openCatalogHero { padding: 10px 12px; font-size: 12px; }
}
@media (max-width: 820px) {
  .catalog-redesign #machineHelpModal { padding: 10px; }
  .catalog-redesign #machineHelpModal .machine-help-panel { width: 100%; height: auto; max-height: calc(100dvh - 20px); border: 1px solid #cdd2c6; border-radius: 6px; }
  .catalog-redesign #machineHelpModal .machine-help-header { padding: 20px; gap: 14px; }
  .catalog-redesign #machineHelpModal .machine-help-header h2 { font-size: 26px; }
  .catalog-redesign #machineHelpModal .machine-help-body { padding: 16px 16px max(20px, env(safe-area-inset-bottom)); }
  .catalog-redesign #machineHelpModal .machine-help-manual { padding: 16px; }
  .catalog-redesign #machineHelpModal .machine-help-camera { max-height: 46dvh; }
  .catalog-redesign :is(#machineHelpModal, #productModal) .public-video-card { padding: 14px; gap: 10px; grid-template-columns: 42px minmax(0, 1fr) 18px; }
  .catalog-redesign :is(#machineHelpModal, #productModal) .public-video-card-icon { width: 42px; height: 42px; }
}
@media (hover: hover) and (pointer: fine) {
  .home-redesign :is(.home-qr-action, .home-search button):hover { background: #ffe744; }
  .home-redesign .home-hero-links #openCatalogHero:hover { border-color: #f7df22; background: #f7df2212; }
  .catalog-redesign #machineHelpModal :is(.button.secondary, .machine-help-back):hover { background: #e9ede1; border-color: #a5af99; }
  .catalog-redesign #machineHelpModal .button.primary:hover { background: #ffe744; }
  .catalog-redesign :is(#machineHelpModal, #productModal) .public-video-card:hover { border-color: #bba917; box-shadow: 0 6px 20px #1a231312; }
  .catalog-redesign #machineHelpModal [data-close-machine-help].icon-button:hover { background: #454d3f; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-redesign :is(#machineHelpModal, #publicVideoPlayer),
  .catalog-redesign :is(#machineHelpModal, #productModal) :is(.public-video-card, .button, .machine-help-back, .site-inline-spinner) { animation: none; transition: none; }
  .catalog-redesign :is(#machineHelpModal, #productModal) .public-video-card:hover { transform: none; }
}
