.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: 1001;
}

.settingsModal label, .settingsModal button, .settingsModal select {
  cursor: pointer;
}

.settingsModal button {
  text-transform: capitalize;
}

.settingsModal input[type='text'] {
  outline: none;
  border: var(--reply-modal-field-input-border, revert);
  padding: 2px 4px 3px;
}

.settingsModal textarea {
  border: var(--reply-modal-field-input-border, revert) !important;
}

.settingsModal input[type="text"]:focus, .settingsModal textarea:focus {
  border: var(--reply-modal-field-input-border-focus, revert) !important;
}

.settingsModal {
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 395px;
  height: auto;
  max-height: 80%;
  overflow-y: auto;
  position: fixed;
  z-index: 1002;
  padding: 2px;
  font-size: var(--settings-modal-font-size);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
  background-color: var(--settings-modal-background-color);
  border-top: var(--settings-modal-border-top);
  border-right: var(--settings-modal-border-right);
  border-bottom: var(--settings-modal-border-bottom);
  border-left: var(--settings-modal-border-left);
}

.settingsModal textarea {
  resize: vertical;
}

.settingsModal select, .settingsModal button, .settingsModal textarea, .settingsModal input[type='text'] {
  filter: var(--filter80);
}

.header {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
  margin-top: 5px;
  padding-bottom: 5px;
  text-align: center;
  line-height: 14px;
  border-bottom: var(--settings-modal-header-border-bottom);
}

.title {
  text-transform: capitalize;
}

.closeButton {
  right: 5px;
  width: 18px;
  height: 18px;
  display: block;
  position: absolute;
  top: 5px;
  image-rendering: pixelated;
  background-image: var(--settings-modal-close-button-background-image);
  background-position: center;
  background-repeat: no-repeat;
}

.expandAllSettings {
  text-align: center;
  text-transform: capitalize;
}

.expandAllSettings span {
  color: var(--button-desktop-text-color);
}

.expandAllSettings span:hover {
  color: var(--button-desktop-text-color-hover);
  cursor: pointer;
}

.setting {
  margin-bottom: 8px;
  text-transform: capitalize;
}

.hideButton, .showButton {
  vertical-align: text-bottom;
  margin-right: 5px;
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  image-rendering: pixelated;
}

.hideButton {
  background-image: var(--settings-modal-hide-button-background-image);
}

.showButton {
  background-image: var(--settings-modal-show-button-background-image);
}

.category {
  margin-bottom: 10px;
}

.category label {
  font-weight: 700;
}

.subSectionHeader {
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  margin: 15px 10px 10px;
  padding-top: 10px;
  border-top: var(--settings-modal-header-border-bottom);
  text-transform: capitalize;
}

.checkForUpdatesButton {
  text-transform: capitalize;
}

.setting, .category {
  margin-left: 5px;
}

@media (max-width: 640px) {
  .settingsModal {
    width: 351px !important;
    max-height: 60% !important;
    left: calc(50% - 2px) !important;
  }
}
