/* Shared ezRx destination in the primary menu and above the existing TOP link. */
:root {
  --order-gradient: linear-gradient(135deg, #0b0d10c9 6%, #43101dcc 48%, #ae1230d9 100%);
  --order-gradient-hover: linear-gradient(135deg, #111216e6 6%, #641327df 48%, #c41a3aeb 100%);
}
.site-header .header-inner {
  grid-template-columns: minmax(360px, 1fr) repeat(6, auto);
}
#primary-navigation > .order-nav {
  grid-column: 7; grid-row: 1; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px;
  border: 1px solid #db526c80; border-radius: 4px; color: #fff;
  background: var(--order-gradient); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: 0;
  white-space: nowrap; text-decoration: none;
  transform: scale(.9); transform-origin: right center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.order-link svg { display: block; width: 20px; height: 20px; flex-shrink: 0; }
.order-link .external-arrow { font-size: 14px; font-weight: 400; }
#primary-navigation > .order-nav:hover {
  background: var(--order-gradient-hover); border-color: #ef728aab; color: #fff;
}
.corporate-footer .order-float {
  position: fixed; z-index: 20; right: 28px; bottom: 119.4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; width: 75.4px; height: 75.4px; padding: 6px 2px; margin: 0;
  border: 1px solid #e7607b80; border-radius: 50%; background: var(--order-gradient);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; box-shadow: 0 4px 18px #940e2938, inset 0 1px 0 #ffffff1f;
  font-size: 12.6px; font-weight: 700; line-height: 1.3; letter-spacing: 0;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.corporate-footer .order-float svg { width: 25px; height: 25px; }
/* Override the generic footer span style so the label stays as bright as TOP. */
.corporate-footer .order-float > span { color: inherit; font: inherit; }
.corporate-footer #back-top { width: 75.4px; height: 75.4px; font-size: 14.04px; color: #fff; }
.corporate-footer .order-float:hover {
  background: var(--order-gradient-hover); box-shadow: 0 5px 20px #ae12304d, inset 0 1px 0 #ffffff26;
}
.order-link:focus-visible { outline: 2px solid #b91f3d; outline-offset: 4px; }
.film-controls { right: max(140px, 5%, calc((100% - 1200px) / 2)); }
@media (min-width: 901px) and (max-width: 1280px) {
  .site-header .header-inner { grid-template-columns: repeat(6, auto); }
  #primary-navigation > .order-nav { grid-column: 6; grid-row: 2; }
}
@media (max-width: 900px) {
  .site-header #primary-navigation { height: auto; }
  #primary-navigation > .order-nav { width: fit-content; margin-top: 8px; }
  /* Reserve the right corner so the order link cannot cover film controls. */
  .home-page .film-controls {
    left: 5%; right: auto; bottom: 40px; max-width: calc(90% - 100px); row-gap: 4px;
  }
}
@media (max-width: 600px) {
  .corporate-footer .order-float {
    right: 16px; bottom: 86px; width: 58px; height: 58px; gap: 3px; padding: 3px 1px;
    font-size: 10.8px; line-height: 1.25;
  }
  .corporate-footer .order-float svg { width: 20px; height: 20px; }
  .corporate-footer .order-float > span { white-space: nowrap; }
  .corporate-footer #back-top { width: 58px; height: 58px; font-size: 11.7px; }
  .home-page .film-controls { max-width: calc(90% - 100px); }
}
@media (prefers-reduced-motion: reduce) {
  #primary-navigation > .order-nav, .corporate-footer .order-float { transition: none; }
}
