/**
 * NMR Page Design Studio v1.4.4 - side arrows on compact homepage banner.
 * Controls remain the THEME'S original buttons; no duplicate handlers or markup.
 * Photo and copy keep the v1.4.3 sizing, cropping and multi-link overlays.
 */
body.nmrpd-compact-banner #nmr-highlights-2.nmr-hero {
  position: relative !important;
  overflow: visible !important;
  --nmrpd-side-arrow-y: 205px;
}

/* Let the two arrow buttons position relative to the whole carousel, rather
 * than the bottom control row. The Play button and dots stay in that row. */
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slider-controls:not([hidden]),
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-arrows {
  position: static !important;
}

body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-arrows button[data-nmr-prev],
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-arrows button[data-nmr-next] {
  position: absolute !important;
  top: var(--nmrpd-side-arrow-y, 205px) !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  box-sizing: border-box !important;
  width: 46px !important;
  min-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  border-radius: 50% !important;
  margin: 0 !important;
  background: #fff !important;
  color: #563167 !important;
  border: 1px solid #d6c9df !important;
  box-shadow: 0 3px 14px rgba(45, 26, 59, .13) !important;
  pointer-events: auto !important;
  cursor: pointer;
  z-index: 40 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  touch-action: manipulation;
}

body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-arrows button[data-nmr-prev] {
  left: -16px !important;
  right: auto !important;
}
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-arrows button[data-nmr-next] {
  right: -16px !important;
  left: auto !important;
}
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-arrows button[data-nmr-prev]:hover,
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-arrows button[data-nmr-next]:hover {
  background: #f5f0f8 !important;
}
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-arrows button[data-nmr-prev]:focus-visible,
body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-arrows button[data-nmr-next]:focus-visible {
  outline: 3px solid #168557 !important;
  outline-offset: 3px !important;
}

@media (max-width: 900px) {
  body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-arrows button[data-nmr-prev] {
    left: -9px !important;
  }
  body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-arrows button[data-nmr-next] {
    right: -9px !important;
  }
}

@media (max-width: 680px) {
  /* Mobile arrows are aligned to the PHOTO strip, not the text/CTA panel. */
  body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-arrows button[data-nmr-prev],
  body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-arrows button[data-nmr-next] {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    font-size: 21px !important;
  }
  body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-arrows button[data-nmr-prev] {
    left: 4px !important;
  }
  body.nmrpd-compact-banner #nmr-highlights-2 .nmr-slide-arrows button[data-nmr-next] {
    right: 4px !important;
  }
}
