/* Responsive corrections layered over the original B-Tec theme. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.btec-topbar {
  position: relative;
  z-index: 998;
  min-height: 44px;
  background: #f5f5f5;
}

.btec-topbar .topbar-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.btec-topbar .contact-info {
  min-width: 0;
  flex-wrap: wrap;
  row-gap: 4px;
}

.top-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 10px;
  padding: 4px 2px;
}

.top-social a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #47536e;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.top-social a i {
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}

.top-social a:hover,
.top-social a:focus-visible {
  color: #fff;
  background: #5777ba;
  border-color: #47536e;
  outline: 3px solid rgba(87, 119, 186, .3);
  outline-offset: 2px;
  transform: translateY(-1px);
}

#header {
  top: 52px;
  margin-top: 0 !important;
}

#header.header-scrolled {
  top: 0;
}

#header .container {
  min-width: 0;
  gap: 20px;
}

#header .logo,
#header .logo a {
  flex: 0 0 auto;
}

#header .logo img {
  width: auto;
  max-width: 100%;
  height: auto;
}

#main,
#main section,
#main .container,
#main .container-fluid,
#main .row,
#main [class*="col-"] {
  min-width: 0;
}

#main img,
#main video,
#main iframe,
#main svg {
  max-width: 100%;
  height: auto;
}

#hero {
  padding-top: 118px;
}

#hero .container-fluid,
#hero .row,
#main-slider,
#main-slider .flex-viewport,
#main-slider .slides,
#main-slider .slides > li {
  width: 100%;
  max-width: 100%;
}

#hero .row {
  margin-left: 0;
  margin-right: 0;
}

#main-slider .slides img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

#main-slider .flex-direction-nav a {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: none;
  background-color: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 30px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-indent: 0;
  text-decoration: none;
}

#main-slider .flex-direction-nav a::before,
#main-slider .flex-direction-nav a::after {
  content: none;
  display: none;
  background-image: none;
}

#main .content,
#main .content * {
  max-width: 100%;
  overflow-wrap: anywhere;
}

#main .content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.features .row,
.details .row {
  align-items: center;
}

.features img,
.details img,
.gallery img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.mobile-nav-toggle {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  border-radius: 6px;
  touch-action: manipulation;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus-visible {
  background: rgba(87, 119, 186, .12);
  outline: 3px solid rgba(87, 119, 186, .3);
  outline-offset: 2px;
}

.navbar-mobile .mobile-nav-toggle:hover,
.navbar-mobile .mobile-nav-toggle:focus-visible {
  background: rgba(255, 255, 255, .18);
}

.navbar-mobile ul {
  max-width: calc(100vw - 30px);
}

.navbar-mobile a,
.navbar-mobile a:focus {
  min-height: 44px;
}

.navbar-mobile .dropdown ul,
.navbar-mobile .dropdown ul li {
  min-width: 0;
}

body.mobile-menu-open {
  overflow: hidden;
}

.product-page {
  padding-top: 118px;
}

.product-breadcrumb-section,
.product-menu-section,
.product-catalog-section {
  padding-top: 0;
}

.product-breadcrumbs {
  padding-left: 10px;
}

.product-menu-section .table a {
  display: block;
  min-height: 44px;
  padding: 10px 8px;
}

.product-group {
  align-items: stretch;
}

.ribbon-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.details .content .ribbon-heading-row h3 {
  margin-bottom: 0;
}

.ribbon-brand-mark {
  flex: 0 1 200px;
  min-width: 0;
  padding: 0;
}

.ribbon-brand-logo {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: invert(1);
  mix-blend-mode: multiply;
  margin-block: max(-38px, -8.5vw);
}

.product-card {
  margin-bottom: 30px;
}

.product-card table {
  width: 100%;
  table-layout: fixed;
}

.product-card td,
.product-spec,
.product-spec * {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.product-card .product-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.honeywell-scanner-page .honeywell-scanner-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.honeywell-scanner-page .honeywell-scanner-cards > .product-card {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  height: 100%;
  margin-top: 0;
  padding-top: 0;
  transform: none !important;
}

.honeywell-scanner-page .honeywell-scanner-cards > .product-card > h3 {
  display: flex;
  align-items: flex-start;
  min-height: clamp(48px, 5vw, 64px);
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
}

.honeywell-scanner-page .product-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(260px, 30vw, 460px);
}

.honeywell-scanner-page .product-image-container .product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-page .product-spec a[download],
.product-page .product-spec a[href*=".pdf" i],
.product-page .product-spec [class*="download" i],
.product-page .product-spec [id*="download" i] {
  display: none !important;
}

.software-page .product-breadcrumb-section {
  padding-bottom: 8px;
}

.software-page .product-catalog-section {
  padding-bottom: 8px;
}

.details .software-programs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start !important;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.software-program-column {
  align-self: flex-start !important;
  min-width: 0;
  padding-top: 0;
}

.software-batender-card {
  width: 100%;
  margin-bottom: 16px;
}

.pos-stock-section {
  margin: 0;
  padding: 0;
}

.details .content .software-program-title {
  padding-top: 0;
  margin-top: 0;
  margin-bottom: 8px;
  line-height: 1.3;
}

.pos-stock-description {
  margin-bottom: 10px;
  color: #444;
  line-height: 1.55;
}

.software-main-image-link {
  display: block;
  width: 100%;
}

.software-main-image-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #ddd;
  background: #fff;
}

.software-main-image-box img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.software-thumbnail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.software-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(100px, 9vw, 140px);
  min-width: 0;
  padding: 3px;
  overflow: hidden;
  border: 1px solid #cdd3dd;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.software-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.software-thumbnail:hover,
.software-thumbnail:focus-visible {
  border-color: #5777ba;
  box-shadow: 0 0 0 2px rgba(87, 119, 186, .2);
  outline: none;
}

.software-thumbnail.is-active {
  border: 2px solid #0d164c;
  box-shadow: 0 0 0 2px rgba(13, 22, 76, .15);
}

.software-service-bar {
  margin-top: 10px;
  padding: 10px 14px;
  width: 100%;
  max-width: none;
  background: #0d164c;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.software-main-image-link:focus-visible {
  outline: 3px solid #50d8af;
  outline-offset: 3px;
}

@media (max-width: 991px) {
  .software-thumbnail {
    height: clamp(88px, 18vw, 130px);
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  #header {
    padding: 10px 0;
  }

  #header .container {
    max-width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  #hero {
    padding-top: 110px;
  }

  .product-page {
    padding-top: 110px;
  }

  .features .content,
  .details .content {
    padding: 20px 0;
  }

  .features .row,
  .details .row {
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  section {
    padding: 24px 0;
  }

  #main .container,
  #main .container-fluid {
    padding-left: 16px;
    padding-right: 16px;
  }

  #hero .container-fluid {
    padding-left: 0;
    padding-right: 0;
  }

  #hero .row,
  #main .row {
    margin-bottom: 16px;
  }

  .features .content,
  .details .content {
    width: 100%;
    padding: 16px 0;
  }

  .features h3,
  .details .content h3 {
    font-size: 24px;
    line-height: 1.3;
  }

  .gallery .swiper-slide img {
    width: 100%;
  }

  #footer .footer-top {
    padding-top: 36px;
  }
}

@media (max-width: 575px) {
  .btec-topbar {
    min-height: 104px;
  }

  .btec-topbar .topbar-inner {
    min-height: 104px;
    padding: 6px 16px;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }

  .btec-topbar .contact-info {
    width: 100%;
    justify-content: center;
    font-size: 12px;
  }

  .btec-topbar .contact-info .ms-4 {
    margin-left: 12px !important;
  }

  .top-social {
    width: 100%;
    justify-content: center;
    padding: 2px 0;
  }

  #header {
    top: 104px;
  }

  #header.header-scrolled {
    top: 0;
  }

  #header .logo img {
    max-height: 42px;
  }

  #hero {
    padding-top: 110px;
  }

  .product-page {
    padding-top: 110px;
  }

  .navbar-mobile ul {
    top: 64px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-width: calc(100vw - 20px);
  }

  .navbar-mobile .dropdown ul {
    margin: 6px 10px;
  }

  .navbar-mobile a,
  .navbar-mobile a:focus,
  .navbar-mobile .dropdown ul a {
    padding: 10px 14px;
  }
}

@media (max-width: 380px) {
  .btec-topbar,
  .btec-topbar .topbar-inner {
    min-height: 118px;
  }

  #header {
    top: 118px;
  }

  .btec-topbar .contact-info {
    flex-direction: column;
  }

  .btec-topbar .contact-info .ms-4 {
    margin-left: 0 !important;
  }

  #main .container,
  #main .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }

  #main-slider .flex-direction-nav .flex-prev {
    left: 4px;
  }

  #main-slider .flex-direction-nav .flex-next {
    right: 4px;
  }
}

.legacy-content-page {
  padding-top: 118px;
}

.legacy-content-page img,
.legacy-content-page iframe,
.legacy-content-page video {
  max-width: 100%;
  height: auto;
}

.legacy-content-page table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.legacy-content-page .contact-form .form-group {
  margin-bottom: 14px;
}

.legacy-content-page .about-download {
  width: 191px;
  height: auto;
}

.legacy-content-page .about-download-label {
  color: #f00;
  font-family: Arial, Helvetica, sans-serif;
  font-size: small;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .legacy-content-page {
    padding-top: 110px;
  }

  .legacy-content-page .content {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .legacy-content-page .pt-5 {
    padding-top: 1.5rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-social a,
  #header {
    transition: none;
  }
}
