/* vendingexchange.com (main site): one header and one footer for every page.
   Linked after each page's own styles. Header and footer rules only, so it is
   safe on the older article pages as well as the rebuilt ones. */
:root {
  --hx-navy: #014F81;
  --hx-blue: #01568C;
  --hx-cyan: #0699d4;
  --hx-cyan-dark: #0271b0;
  --hx-ink: #1f2a33;
  --hx-muted: #4a5a68;
  --hx-line: #d5e0e8;
  --hx-soft: #eef4f7;
  --hx-chat-clear: 104px;
}

/* Header */
.hx-top { position: relative; z-index: 5; }
.hx-top .hx-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 18px;
}
.hx-top .hx-bar .navbar-brand { margin: 0; flex: 0 0 auto; }
.hx-top .main-nav { float: none; }
header.hx-top nav.main-nav { padding-bottom: 0; } /* older pages reserve 40px for the old operator link */
header.hx-top .main-nav > ul { display: flex; align-items: center; flex-wrap: nowrap; margin: 0; padding: 0; }
header.hx-top .main-nav > ul > li { padding-left: 14px !important; list-style: none; white-space: nowrap; }
header.hx-top .main-nav > ul > li > a { font-weight: 300; }
header.hx-top .main-nav .vending-btn { font-weight: 400; }
/* Between 1,220 and 1,379px, tighten the menu. */
@media (min-width: 1220px) and (max-width: 1379px) {
  header.hx-top .main-nav > ul > li { padding-left: 11px !important; }
  header.hx-top .main-nav > ul > li > a { font-size: 14px; }
  header.hx-top .main-nav .vending-btn { font-size: 13px; padding-left: 14px; padding-right: 14px; }
}
/* Below 1,220px (small laptops, landscape tablets) use the phone menu instead of a cramped bar. */
@media (min-width: 992px) and (max-width: 1219px) {
  header.hx-top .main-nav { display: none !important; }
  .mobile-nav-toggle.d-lg-none, .mobile-nav.d-lg-none { display: block !important; }
}
/* Operator links: small line at the top right of the bar on desktop,
   ordinary items in the phone menu (main.js clones .main-nav for it). */
.main-nav .hx-ops a { color: #3a4a58; font-weight: 600; }
@media (min-width: 992px) {
  .hx-top .hx-bar { position: relative; padding-top: 16px; }
  .hx-top .main-nav > ul > li.hx-ops { position: absolute; top: 2px; right: 0; bottom: auto; padding-left: 0 !important; }
  .hx-top .main-nav > ul > li.hx-ops a { display: inline-block; padding: 0; margin-left: 18px; font-size: 13px; text-transform: none; text-decoration: underline; }
}
/* vendingservice.css drops the phone menu button and its overlay to z-index
   1 and 0, which puts them under the header. Restore style.css's own values;
   the request popup (99999) still sits above. */
/* "body" prefix: one page sets these again in a later inline style block. */
body .mobile-nav-toggle { z-index: 9998 !important; }
body .mobile-nav-overly { z-index: 9997 !important; }
@media (max-width: 574px) {
  .mobile-nav-toggle i { margin: 18px 10px 0 0; }
}

/* Footer */
#footer.hx-footer {
  background: #0f2f47;
  color: #d6e4ee;
  padding: 44px 0 0;
  margin-top: 24px;
  font-size: 15px;
  text-align: left;
}
.hx-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 768px) {
  .hx-footer-inner { grid-template-columns: 1.2fr 2fr; gap: 48px; }
}
.hx-footer-brand img { background: #fff; border-radius: 8px; padding: 6px 10px; width: 132px; height: auto; }
.hx-footer-brand p { margin: 14px 0 0; font-size: 15px; line-height: 1.55; color: #d6e4ee; }
.hx-footer-phone a { color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; }
.hx-footer-cta {
  margin-top: 14px;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 6px;
  background: #0699d4;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.hx-footer-cta:hover { background: #0271b0; }
.hx-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 768px) {
  .hx-footer-cols { grid-template-columns: repeat(3, 1fr); }
}
.hx-footer-cols .hx-footer-h {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9fd7f2;
  margin: 0 0 12px;
}
.hx-footer-cols ul { list-style: none; margin: 0; padding: 0; }
.hx-footer-cols li { margin: 0 0 8px; }
.hx-footer-cols a { color: #fff; font-size: 15px; text-decoration: none; display: inline-block; padding: 2px 0; }
.hx-footer-cols a:hover, .hx-footer-cols a:focus { text-decoration: underline; }
.hx-footer a:focus, .hx-footer button:focus { outline: 3px solid #9fd7f2; outline-offset: 2px; }
.hx-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 16px calc(16px + var(--hx-chat-clear));
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #b8cad8;
}
.hx-footer-bottom p { margin: 0; color: #b8cad8; }
.hx-footer-bottom a { color: #fff; text-decoration: underline; }
.hx-footer-bottom > div { flex: 1 1 100%; }
.hx-footer-bottom > div p { margin: 6px 0 0; }
/* Phone and tablet: taller tap targets for the footer links. */
@media (max-width: 991px) {
  .hx-footer-cols a { display: block; padding: 10px 0; }
  .hx-footer-cols li { margin: 0; }
}
