.crm-payment-method-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 7px;
  color: #247bb5;
  background: #edf6fc;
}

.crm-payment-method-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.crm-payment-method-icon.is-cash { color: #26834e; background: #eaf7ef; }
.crm-payment-method-icon.is-sbp { color: #6751b8; background: #f0edfb; }
.crm-payment-method-icon.is-unpaid { color: #8b6670; background: #f7edef; }
.crm-payment-method-icon.is-split { color: #9a6712; background: #fff5dc; }

#nsWarehouseRoot .nsw-payment-method-card {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#nsWarehouseRoot .nsw-payment-method-card select { width: 100%; min-width: 0; }

#nsWarehouseRoot .nsw-payment-recipient {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding-left: 1px;
}

#nsWarehouseRoot .nsw-payment-recipient::before {
  content: "↳";
  color: #8192a2;
  text-align: center;
}

#nsWarehouseRoot .nsw-payment-recipient > span {
  display: grid;
  gap: 4px;
  color: #617486;
  font-size: 10px;
}

#nsWarehouseRoot .nsw-payment-recipient select { width: 100%; min-width: 0; }

#nsWarehouseRoot .nsw-shipment-payment-part,
#nsWarehouseRoot .nsw-retail-payment-part {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 140px auto;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid #e0e8ef;
  border-radius: 9px;
  background: #fbfdff;
}

#nsWarehouseRoot .nsw-retail-payment-part { grid-template-columns: minmax(0, 1fr) 112px auto; }

#nsWarehouseRoot .nsw-modal--nested { z-index: 1010; }

@media (max-width: 520px) {
  #nsWarehouseRoot .nsw-payment-method-card { grid-template-columns: 22px minmax(0, 1fr); }
  #nsWarehouseRoot .crm-payment-method-icon { width: 22px; height: 22px; }
  #nsWarehouseRoot .nsw-shipment-payment-part,
  #nsWarehouseRoot .nsw-retail-payment-part { grid-template-columns: minmax(0, 1fr) 28px; }
  #nsWarehouseRoot .nsw-shipment-payment-part > .nsw-money-input,
  #nsWarehouseRoot .nsw-retail-payment-part > .nsw-money-input { width: 100%; grid-column: 1 / 2; }
}
