/* NPXSHOP Staging P06 FIX5 — inbound logo and reseller form controls.
   CSS-only. Existing native select, checkbox names/values and API flow are untouched. */

/* Inbound logos fill their 43px tile, including rounded corners. Do not touch promo logos. */
#appView .npx-inbounds-page .npx-inbound-icon {
  padding:0!important;
  overflow:hidden;
}
#appView .npx-inbounds-page .npx-inbound-icon .npx-brand-image {
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
  border-radius:inherit;
}

/* Reuse the browser's native accessible picker: the real select fills the entire
   rounded shell so both icon and chevron areas open the menu on touch. */
#resellerDialog .npxrs-profile .npxrs-input {
  position:relative;
  cursor:pointer;
}
#resellerDialog .npxrs-profile .npxrs-input > svg:not(.npxrs-profile-chevron) {
  pointer-events:none;
}
#resellerDialog .npxrs-profile .npxrs-input select[name="profile_scope"] {
  position:absolute!important;
  inset:0!important;
  z-index:1;
  box-sizing:border-box!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  padding:0 42px 0 51px!important;
  margin:0!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  cursor:pointer;
  font-weight:400!important;
  background:transparent!important;
  text-overflow:ellipsis;
}
#resellerDialog .npxrs-profile .npxrs-input .npxrs-profile-chevron {
  width:19px;
  height:19px;
  position:absolute;
  right:16px;
  top:50%;
  transform:translateY(-50%);
  z-index:2;
  pointer-events:none;
  color:#777;
  transition:color 150ms ease;
}
#resellerDialog .npxrs-profile .npxrs-input:focus-within .npxrs-profile-chevron {
  color:#202020;
}

/* Native checkbox stays visible, focusable, and is still submitted using
   its existing name. Whole label retains click-to-toggle behavior. */
#resellerDialog .npxrs-permissions label {
  cursor:pointer!important;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
  transition:background-color 160ms ease,border-color 160ms ease;
}
#resellerDialog .npxrs-permissions input[type="checkbox"] {
  appearance:none!important;
  -webkit-appearance:none!important;
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  position:static!important;
  flex:0 0 21px!important;
  width:21px!important;
  height:21px!important;
  min-width:21px!important;
  margin:0!important;
  border:1.5px solid #b4b4b4!important;
  border-radius:6px!important;
  background:#fff!important;
  box-shadow:none!important;
  pointer-events:auto!important;
  cursor:pointer;
}
#resellerDialog .npxrs-permissions input[type="checkbox"]:checked {
  background-color:#282828!important;
  border-color:#282828!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4.2 4.1L19 6.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-size:16px 16px!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
}
#resellerDialog .npxrs-permissions label:has(input:checked) {
  background-color:#e9e9e9!important;
  border-color:#a5a5a5!important;
  color:#252525!important;
}
#resellerDialog .npxrs-permissions label:has(input:checked) > span {
  color:#252525;
  font-weight:500;
}
#resellerDialog .npxrs-permissions label:has(input:focus-visible),
#resellerDialog .npxrs-profile .npxrs-input:has(select:focus-visible) {
  outline:2px solid #737373!important;
  outline-offset:2px!important;
}
#resellerDialog .npxrs-permissions input[type="checkbox"]:disabled,
#resellerDialog .npxrs-permissions label:has(input:disabled) {
  cursor:not-allowed!important;
  opacity:.5!important;
}
@media (prefers-reduced-motion:reduce) {
  #resellerDialog .npxrs-permissions label,
  #resellerDialog .npxrs-profile .npxrs-profile-chevron {transition:none!important;}
}
