.modal-search-bar-wrap {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 16px;
}

.modal-search-bar {
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: 38px;
  border: 1px solid var(--border-header-button);
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.modal-search-bar__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.modal-search-bar__placeholder {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-secondary);
}

.modal-title-row {
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-row__close {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  border-radius: 40px;
  border: 1px solid var(--border-header-button);
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title-row__close--start {
  background-color: rgba(255, 255, 255, 0.04);
}

.modal-title-row__close--end {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Kept in the layout (not display:none) so the title stays centered via the
   row's own space-between, matching Figma's opacity-0 spacer button —
   pointer-events:none so the invisible button isn't a dead-tap-trap. */
.modal-title-row__close--hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-title-row__close-icon {
  width: 16px;
  height: 16px;
  background-color: var(--text-invert-white);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.modal-title-row__label {
  font-family: "Ubuntu", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 16px;
  line-height: 24px;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
}

.modal-select-all {
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-select-all__label {
  flex: 1 0 0;
  min-width: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-primary);
}

.modal-select-all__checkbox {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-select-all__checkbox-icon {
  width: 26px;
  height: 26px;
  background-color: var(--text-secondary);
  transition: background-color var(--transition-standard);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.modal-select-all--checked .modal-select-all__checkbox-icon {
  background-color: var(--text-primary);
}
