.buyer-info-modal {
  width: min(360px, calc(100vw - 32px));
  overflow: visible;
}

.buyer-info-modal .modal-header {
  padding-bottom: 0;
}

.buyer-info-modal .modal-header::after {
  bottom: 10px;
}

.buyer-info-modal .modal-body {
  padding-top: 0;
  gap: 10px;
  overflow: visible;
}

.buyer-info-modal__header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.buyer-info-modal__paste-btn[disabled] {
  opacity: 0.5;
}

.buyer-info-modal__reset-btn {
  color: rgba(245, 245, 247, 0.72);
}

.buyer-info-modal__reset-btn .ui-icon {
  width: 14px;
  height: 14px;
}

.buyer-info-modal__identity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 12px;
  align-items: end;
}

.buyer-info-modal__social-drop {
  width: 110px !important;
  min-width: 110px !important;
  max-width: 110px !important;
}

.buyer-info-modal__social-drop .menudrop-btn {
  width: 100% !important;
  min-width: 0;
}

.buyer-info-modal__social-drop .menudrop-popover {
  min-width: 110px;
  width: max-content;
  max-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 3px;
}

.buyer-info-modal__social-drop .menudrop-item {
  min-height: 22px;
  padding-top: 3px;
  padding-bottom: 3px;
  font-size: 12px;
  line-height: 1.15;
}

.buyer-info-modal__social-drop.menudrop--selectable .menudrop-item {
  padding-left: 22px;
}

.buyer-info-modal__social-drop.menudrop--selectable .menudrop-item::before {
  left: 7px;
  width: 10px;
  height: 10px;
  line-height: 10px;
  font-size: 10px;
}

.buyer-info-modal__bank-grid {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px 12px;
}

.buyer-info-modal [data-role="buyer-social-other-field"] {
  min-width: 0;
}

.buyer-info-modal__identity-grid .input-field,
.buyer-info-modal__bank-field {
  min-width: 0;
}

.buyer-info-modal__bank-field--name {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .buyer-info-modal__identity-grid {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 10px;
  }

  .buyer-info-modal__bank-grid {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
  }

  .buyer-info-modal__social-drop {
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
  }
}
