.lm-modal {
  display: flex;
  position: fixed;
  overflow: scroll;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  text-align: left;
  font-size: 15px;
  color: var(--color-default-text);
  background-color: rgba(0, 0, 0, 0.3);
  z-index: var(--z-index-dropdown);
}

.lm-modal button {
  font-size: 14px;
  font-family: var(--lm-font-stack);
  color: var(--color-default-text);
  border: none;
  border-radius: 4px;
  background-color: transparent;
  cursor: pointer;
}

#lm-modal-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  /* min-height: 350px; */
  margin: 2%;
  background-color: var(--color-grey-bg);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
  height: fit-content;
  max-width: 1200px;
  max-height: 90%;
}

#lm-modal-header {
  display: flex;
  padding: 30px;
  line-height: 1em;
  text-transform: uppercase;
  background-color: white;
}

#lm-modal-header h1 {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: normal;
}

#lm-modal-header a {
  color: var(--color-default-text);
  cursor: pointer;
}

#lm-modal-header a:hover {
  color: black;
}

#lm-modal-footer {
  padding: 20px 30px;
  text-align: right;
  background-color: white;
  white-space: nowrap;
}

#lm-modal-footer button {
  padding: 0 30px;
  line-height: 40px;
  text-transform: uppercase;
}

.lm-modal button[title='Primary'] {
  color: white;
  font-weight: 600;
  background-color: var(--color-primary);
}

.lm-modal button[title='Primary']:hover {
  background-color: var(--color-primary-dark);
}

#lm-modal-footer button[title='Secondary']:hover {
  color: black;
}

#lm-modal-footer button[title='Primary']:disabled {
  background-color: var(--color-grey-lighter) !important;
}

#lm-modal-body {
  display: flex;
  height: fit-content;
  padding: 30px;
  font-size: 14px;
}

.lm-export #lm-modal-body {
  overflow: auto;
  scroll-behavior: smooth;
}

#lm-modal-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px 5px;
  background-color: white;
  height: fit-content;
  max-height: calc(100vh - 200px);
}
.lm-export #lm-modal-toggle-more {
  padding: 0 30px;
  width: 100%;
  line-height: 40px;
  text-transform: uppercase;
  background-color: white;
  display: block;
  font-size: 13px;
}

.lm-export #lm-modal-more {
  padding: 0 30px;
  width: 100%;
  line-height: 40px;
  text-transform: uppercase;
  background-color: white;
  display: block;
}

.rls-location-advanced-filters-modal #lm-modal-main {
  height: unset;
}

.rls-location-advanced-filters-modal #lm-modal-body {
  min-height: 400px;
}

.lm-export #lm-modal-body {
  flex-direction: column;
}

#lm-modal-main-scroll {
  flex: 1 1 auto;
  padding: 0 15px;
  /* height: 70%; */
  overflow: auto;
  scroll-behavior: smooth;
}

.lm-filter-rule-wrapper {
  padding: 20px;
  border-radius: 4px;
  background-color: var(--color-grey-bg);
}

.lm-input-select > button {
  position: relative;
  width: 100%;
  padding: 0 40px 0 15px;
  color: var(--color-default-text);
  line-height: 40px;
  font-family: var(--lm-font-stack);
  border: none;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.lm-input-select > button::after {
  content: '';
  display: block;
  position: absolute;
  top: calc(50% - 3px);
  right: 15px;
  width: 12px;
  height: 6px;
  background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBzdHJva2U9IiM0ZDRkNGQiIHdpZHRoPSIxMnB4IiBoZWlnaHQ9IjZweCIgdmlld0JveD0iMCAwIDEyIDYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8cGF0aCBkPSJNMy41LC0yLjUgTDguNDQ5NzQ3NDcsMi40NDk3NDc0NyBNMy41LDcuNDQ5NzQ3NDcgTDguNDQ5NzQ3NDcsMi41IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1Ljk3NDg3NCwgMi40NzQ4NzQpIHJvdGF0ZSg5MC4wMDAwMDApIHRyYW5zbGF0ZSgtNS45NzQ4NzQsIC0yLjQ3NDg3NCkiPjwvcGF0aD4KPC9zdmc+);
}

.lm-input-text {
  padding: 0 15px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--lm-font-stack);
  color: var(--color-default-text);
}
