.kbd-mp {
  position: relative;
  overflow: hidden;
  background: var(--paper, #f5f2e8);
}

.kbd-mp__heading {
  margin-bottom: 38px;
}

.kbd-mp__viewport {
  position: relative;
  width: 100%;
  max-width: none;
  overflow: hidden;
  padding-top: 4px;
  padding-bottom: 4px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.kbd-mp[data-kbd-mp-dragging="1"] .kbd-mp__viewport {
  cursor: grabbing;
}

.kbd-mp__track {
  display: flex !important;
  align-items: stretch;
  width: max-content !important;
  max-width: none !important;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.kbd-mp__group {
  display: flex !important;
  flex: 0 0 auto;
  flex-wrap: nowrap !important;
  align-items: stretch;
  justify-content: space-evenly !important;
  gap: 16px !important;
  width: max-content !important;
  min-width: 100vw;
  padding: 0 8px;
  box-sizing: border-box;
}

.kbd-mp__group--clone {
  display: flex !important;
}

.kbd-mp__item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 210px !important;
  width: 210px !important;
  min-width: 210px !important;
  max-width: 210px !important;
  height: 112px !important;
  padding: 22px 26px !important;
  box-sizing: border-box !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line, #dde5e1);
  color: var(--ink, #153d2c);
  text-decoration: none !important;
  -webkit-user-drag: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.kbd-mp__logo,
.kbd-mp__item img.kbd-mp__logo {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 62px !important;
  object-fit: contain !important;
  pointer-events: none;
  -webkit-user-drag: none;
}

.kbd-mp__item:focus-visible {
  outline: 3px solid var(--lime, #b7ea58);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .kbd-mp__item:hover {
    transform: translateY(-2px);
    border-color: rgba(21, 61, 44, .30);
    background: #fff;
    box-shadow: 0 5px 16px rgba(21, 61, 44, .06);
  }

  .kbd-mp[data-kbd-mp-dragging="1"] .kbd-mp__item:hover {
    transform: none;
  }
}

@media (max-width: 700px) {
  .kbd-mp__heading {
    margin-bottom: 28px;
  }

  .kbd-mp__group {
    gap: 12px !important;
    padding: 0 6px;
  }

  .kbd-mp__item {
    flex-basis: 158px !important;
    width: 158px !important;
    min-width: 158px !important;
    max-width: 158px !important;
    height: 92px !important;
    padding: 17px 20px !important;
  }

  .kbd-mp__logo,
  .kbd-mp__item img.kbd-mp__logo {
    max-height: 52px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kbd-mp__item {
    transition: none;
  }
}
