/*
 * PPStock v1.7.76.36
 * Keep the department switch reachable without covering the cart on short,
 * landscape touch screens. Desktop and portrait layouts are intentionally
 * unchanged.
 */
@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) {
  button[title="สลับแผนก"] {
    right: max(12px, env(safe-area-inset-right)) !important;
    width: 48px !important;
    min-width: 48px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  /* Keep the visible label compact while retaining it as the accessible name. */
  button[title="สลับแผนก"] > span:last-child {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  button[title="สลับแผนก"]:focus-visible {
    outline: 3px solid #ffffff !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 6px #0f766e, 0 12px 24px rgb(15 118 110 / 24%) !important;
  }
}
